Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-24-2003, 08:25 PM   #1
retrotron
thinking is design
 
retrotron's Avatar
 
Join Date: Apr 2003
Location: UK
Posts: 1,292
Default how to get the query string?

Can somebody tell me how to get the query string? this._url always returns the value at compile time, which of course is my local file:///....myMovie.swf. I'd love to get everything after the question mark, e.g.

mydomain.com?test=test

Any ideas?

<edit>I know that you have to try this from a webserver, in which case it does the same thing, except http://... rather than file:///...</edit>

<edit>Is the only way to do this via javascript?</edit>

Last edited by retrotron; 07-24-2003 at 08:31 PM.
retrotron is offline   Reply With Quote
Old 07-24-2003, 11:21 PM   #2
nunomira
Senior Member
 
nunomira's Avatar
 
Join Date: Mar 2003
Location: portugal
Posts: 305
Default

hi,

here's a similar post
nunomira is offline   Reply With Quote
Old 07-25-2003, 12:24 AM   #3
retrotron
thinking is design
 
retrotron's Avatar
 
Join Date: Apr 2003
Location: UK
Posts: 1,292
Default

Cool, thanks, so you're saying I do need to use js or flashvars.
retrotron is offline   Reply With Quote
Old 07-25-2003, 12:31 AM   #4
freddycodes
Master of Nothing
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
Default

Are you looking to get the GET variables that are in the query string of the page that contains the flash movie?
freddycodes is offline   Reply With Quote
Old 07-25-2003, 12:40 AM   #5
nunomira
Senior Member
 
nunomira's Avatar
 
Join Date: Mar 2003
Location: portugal
Posts: 305
Default

hi freddycodes,

Is there any other way to do it?
nunomira is offline   Reply With Quote
Old 07-25-2003, 01:16 AM   #6
retrotron
thinking is design
 
retrotron's Avatar
 
Join Date: Apr 2003
Location: UK
Posts: 1,292
Default

I'm just trying to come up with some system to direct the user to a particular section of a Flash movie based on the url. Something like

mydomain.com?page=section01
mydomain.com?page=section02

which would direct to frame "_section01" or "_section02" or whatever.

I'm thinking javascript/flashvars would be the easiest way to do that. Know a better way?
retrotron is offline   Reply With Quote
Old 07-25-2003, 01:44 AM   #7
freddycodes
Master of Nothing
 
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
Default

Nope, FLASHVARS would be the easiest, as the variables are available as soon as the movie loads. But if you want to change the FLASHVARS variables based on a query string, you could use PHP to do it easily. Is this an option. Like if the page loads as

http://www.mydomain.com/index.php?myVar=foo


<param name="FLASHVARS" value="myVar=<?php print $_GET['myVar']; ?>">
freddycodes is offline   Reply With Quote
Old 07-25-2003, 02:08 AM   #8
retrotron
thinking is design
 
retrotron's Avatar
 
Join Date: Apr 2003
Location: UK
Posts: 1,292
Default

Yeah, PHP will be an option in the future, though not at the moment, so maybe some javascript will accomplish the task until that time.
retrotron is offline   Reply With Quote
Old 07-25-2003, 08:31 AM   #9
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

You mean these, retrotron???

How to Get the URL typed in the Address Bar of the Web Browser
http://www.actionscript.org/forums/...&threadid=25815
http://www.actionscript.org/forums/...&threadid=25686
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 07-25-2003, 11:55 PM   #10
retrotron
thinking is design
 
retrotron's Avatar
 
Join Date: Apr 2003
Location: UK
Posts: 1,292
Default

hmm... I get a 404 on those links . . .
retrotron 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 11:25 AM.

///
Follow actionscriptorg on Twitter

 


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