Solved

Send Parameters to Swishmax

Posted on 2004-10-20
5
1,782 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Read about why website design really matters in today's demanding market.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
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…

829 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