Solved

Send Parameters to Swishmax

Posted on 2004-10-20
5
1,752 Views
Last Modified: 2008-02-01
In flash, there are several ways to pass variables to the movie and use them, like Flashvars . But I did not find a way to pass a parameter to swishmax from an HTML tag, or URL querystring.

only point me to an example and you have the points
;)
0
Comment
Question by:emiliodabdoub
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:xakem
ID: 12365432
0
 
LVL 1

Author Comment

by:emiliodabdoub
ID: 12365928
hi, those links does not answer my question..

My problem is that I need to pass the value depending on the page I'am..

For example, if I'm at the page:   flashbanner.aspx?variable=1

I want to pass in some way the value 1 to swishmax.

I could do it with HTML tags, like reading the querystring and using response.write to write it as a HTML param (tag).

This is the process:

1. The page will load the banner, but the page will receive an URL parameter.
2. I will pass the value of that parameter to swish.
3. I will use that value in swish
0
 
LVL 1

Expert Comment

by:Gregsy
ID: 12367621
the variables passed in are in the query string are made available to you in your app if you add them to the swf src

PARAM NAME='Src' VALUE='yourswish.swf?myvariable=1
and
PARAM NAME='Movie' VALUE ='yourswish.swf?myvariable=1

'myvariable' is then available in your swish code for use.

Cheers
Alan



0
 
LVL 1

Author Comment

by:emiliodabdoub
ID: 12374270
Hi Alan. or Gregsy?

I think this is what I was looking for.

How I would access the variable from swish?
0
 
LVL 1

Accepted Solution

by:
Gregsy earned 125 total points
ID: 12378556
just as you would with any other variable

I pass a gallery path into a swish swf with

PARAM NAME='Src' VALUE='gallery.swf?GalleryPath=/images/gallery1
and
PARAM NAME='Movie' VALUE ='gallery.swf?GalleryPath=/images/gallery1


Inside the swi I use

ImageList='getGallery.aspx?GalleryPath='+GalleryPath;

to return to aspx to get a list of images in a specific path.

You will need to test this in the browser not a preview for obvious reasons.

Cheers
Alan
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now