Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-16-2004, 01:24 AM   #1
amymeyers
Registered User
 
Join Date: Jul 2004
Posts: 3
Unhappy Reading URL Querystring

Please help me

I have been working on this issue for an embarrassing amount of time.

I am trying to figure out how to get flash to read parameters that are passed through a url as a query string.

For example, I may send an email to a client with a link such as:
<a href="http://www.yourdomian.com?id=20034"> so that they can view a particular product on my flash website.

When the user clicks the link, the url is correctly displaying the querystring above. But, I cannot get the flash file to get the parameter.

What code do I need to put into flash in order to be able to capture the id=20034 ?

Please save me
amymeyers is offline   Reply With Quote
Old 07-16-2004, 01:57 AM   #2
Billy T
Oops I did it again
 
Billy T's Avatar
 
Join Date: Oct 2001
Location: Melbourne
Posts: 8,578
Default

use php or something to get it out of the query string and insert it into FLASHVARS

a quick search will find you the details

cheers
__________________
Billy
Online Galleries
Free Flash Video Tutorials
Photo Website Template

Don't email or PM me questions...
Billy T is offline   Reply With Quote
Old 07-16-2004, 02:05 AM   #3
amymeyers
Registered User
 
Join Date: Jul 2004
Posts: 3
Default

Thank you so much for your quick reply...

I have seen a lot of posts that say that flash automatically creates variables consistent with what is passed in the query string. I have been able to successfully test that the variable has been passed using LoadVars.

My problem is that I am having trouble with the syntax to use to get the value of the passed variables. Can you provide any sample actionscript?

Thanks again!
amymeyers is offline   Reply With Quote
Old 07-16-2004, 02:51 AM   #4
Billy T
Oops I did it again
 
Billy T's Avatar
 
Join Date: Oct 2001
Location: Melbourne
Posts: 8,578
Default

hmm I'm not sure what you mean

in your example you mentioned emailing a client with a link that contained a variable...to get that variable into flash you need to use the method I mentioned above

flash will automatically create the variables if they are included in the embed code

<param name="movie" value="somefile.swf?somevar=cool">

but that's not what you are wanting...
__________________
Billy
Online Galleries
Free Flash Video Tutorials
Photo Website Template

Don't email or PM me questions...
Billy T is offline   Reply With Quote
Old 07-16-2004, 03:10 AM   #5
oldnewbie
Banned by AS.org Staff
 
Join Date: Mar 2002
Posts: 10,534
Default

Maybe...
http://www.macromedia.com/support/fl...htm#javascript
oldnewbie is offline   Reply With Quote
Old 07-16-2004, 03:42 AM   #6
amymeyers
Registered User
 
Join Date: Jul 2004
Posts: 3
Default

It seems that I have made a mess of this site

My product catalog is set up in flash. So, I am unable to email a particular product to clients. Instead, I am only able to direct them to the home page. Now, I would like to change that so that I can pass a product id into the flash file to direct clients to individual products.

Do you have any suggestions on how to accomplish that?

Thanks so much for your help.
amymeyers is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:42 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.