Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Send Parameters to Swishmax

Posted on 2004-10-20
5
Medium Priority
?
1,823 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
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 500 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

610 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