Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




[F8] Dynamic Query String & Pass Variables To And Fro Php



Hi!

I have a webpage that needs to load a variable from query string and then the swf sends this variable to php to search it in databse and return respective entries.

My trouble is the page where the swf is placed in an HTML page whose URL is something like this : http://www.mysite.com/variableName=dynamicValue

Actually this is a link thats sent in an email. When clicked it loads this page. Here http://www.mysite.com/variableName= is static, but dynamicValue is a 15 letter randomly generated code.

I wanted to know is it possible to pass this dynamic value of the variable into my swf. If so, how to do that.

My second query is I wanted to send this variable from flash to a php file which will search it in a database and return related entries to flash. Now, I've done this seperately, that is, send variables to php by post method and get variables from php by get method. But I dont know how to do these two operations in one single call.

I am using Flash 8, though i'm exporting the movie to flash 6 player compatible and actionscript 2. Any help is welcome. Please let me have the feedback.

thanks

ashwin.



FlashKit > Flash Help > Flash ActionScript
Posted on: 10-01-2006, 09:36 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Pass Variables Into Flash Via Query String
I used to do this all the time to pass in simple values to Flash but with Flash 8 it doesn't seem to be working properly. I've stripped it down to it's most basic and it still doesn't seem to be working. I've got a test page here:
http://icglink.com/flashtest/

The top set uses the standard object/embed method, the left one passing in a 0, the right passing in a 1. Both use the variable named previousvisitor.

The bottom set use the same variable and value structure, but with the swfobject javascript call instead of the object/embed method.

I've got a case statement on the 5th frame that tests the incoming variable and directs the playhead to one frame label or another. The idea is that if someone has come to the site for the first time, they'll get to see a video. If not, they'll get a still frame with a "play video" button.

I'm also including a link to the FLA (version 8 remember).

http://icglink.com/flashtest/cookieTEST.fla

So does anyone have ANY idea why this isn't working correctly? I really need to get this working and it should be dead simple.

Pass Variable Via Query String
i'll try to explain this the best I can.

I have a flash header that I need included in a shopping cart site that will have nav and the header descriptions for each site page. It has 2 navigations, top and side. Side nav only controls the flash itself to display stuff that won't be in the rest of the site, like an about us section. The top nav controls what page the shopping cart goes to AND the flash header display. For example, when I click on my top nav button 'systems' I need it to go the 'systems page' and change the flash header to display info about the systems. Now when the 'system' button is clicked the page changes to the 'systems' page but since its a header the flash just pops up on the new page reloaded to its original state. So how would I fix this? could flash pass a variable via the query string to determine what frame it should be on when going to a new page?

Can You Still Pass Vars Through A Query String?
I'm trying to pass variables in through a query string appended to my url like so,

http://www.mydomain.com?myVar1=value1&myVar2=value2

From what i've read am i correct in thinking that i should be able to access these properties through 'this.loaderinfo.parameters'?

I don't seem to be able to get this to work for some reason? I'm able to get it tworking when passing in Flashvars through my html and then accessing them through the loaderinfo.parameters object, but not through a query string? Anyone got any ideas? Should this be possible?

Also i was wondering it there's any foreseeable issue passing in values both through Flashvars and a query string or should the loaderinfo.parameters object be populated with all the values?

cheers.

Pass Frame Variable Via Query String Bettween 2 Swf In 2 Different Html Files
Hello, I have an swf movie embedded in an HTML. One of the links calls to another HTML with a different SWF embedded. I need to link back to the original HTML/SWF but to a certain frame within that SWF using HTTP query. I understand that I can do this with Javascript and by parsing the HTTP query. Can anyone direct me to a tutorial or give me some help?

Thank you

maknenoiz

Query String Variables
I know I've done this before, but I can't find the file that had it.

I'm trying to simply load a variable from the URL into flash as a variable.

eg.
"http://www.mywebsite.com/index.html?page=home"
Would send Flash a variable "page" with value "home"

I remember only having to change the embed code to get this to work.

I've seen countless examples of this, but where the variable is in the source code of the page, which is not what I need. The variable must be dynamic, and therefore in the URL.

Reading Variables From The Query String?
Does anyone know how to write the code to get a Dynamic Text Box to display variables that have been passed through the query string?

Pulling Variables From The Query String
Does any one know how I would go about pulling variables from the query string (URL) and post them in a dynamic text box? My overall goal is to have an animated Flash 5 card that will display the name of the person who sent the card and the name of the person recieving the card.

Thanks

Pulling Variables From A Query String?
alright I've fidgured some things out and this is what I am currently doing.

I am attempting to load variables placed into the query sting (url) into a dynamic text field with the same variable name. Currently it is effecting the variable but it is not putting the values into the text field
Here is my code:

loadVariablesNum ("void", 0, "POST");
to = "0";
from = "0";

I have attempted sending the variables using "GET" as well as "Don't send" with the same results

the page is
http://www.familyties.com/dogDaystes...=josh&from=bob

If you remove the "to" and "from" on the query string the default value of "0" appears in each variable

What am I doing wrong?

[CS3] Passing Variables From Query String
Hi there,

i'm trying to pass a variable from a web page to a flash file. The flash file has a dynamic text box with the var value set to formError.

In the webpage i have the following code:

<script type="text/javascript">
var so = new SWFObject("flash/index_030308.swf?t=150", "mymovie", "938", "305", "8", "#FFFFFF");
so.addParam("allowScriptAccess", "sameDomain");
so.addParam("quality", "high");
so.addVariable("formError", "<%=request.QueryString("formError")%>");
</script>

to test i am typing in the address bar default.asp?formError=woteva, hoping to see "woteva" displayed in my dynamic text box in the flash file, but this isn't the case. Where am i going wrong?

Getting Variables From The Query String, SWFObject
I need to pass my swf a value through the query string. I can't seem to figure this out with AS3.

More specifically I need to pass a value from the HTML that embeds the swf to the movie.

Below is sampling of the HTML code. The example code below wants to create a variable named test and assign it a value of 12. How do access this variable from inside my SWF with AS3? In AS2 and earlier this variable would have been accessible from the main timeline. I can't seem to Access this from my document class, what am I missing?

PHP Code:



<param name="movie" value="MOMA_Box_Motion.swf?test=12" /> 




I'd also like to do this with SWFObject. The SWFObject docs show this exmaple. But again I can't seem to access these variables from the document class.


PHP Code:



<script type="text/javascript">
   var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
   so.addVariable("variable1", "value1");
   so.addVariable("variable2", "value2");
   so.addVariable("variable3", "value3");
   so.write("flashcontent");
</script> 

Passing Variables Via Query String
i am trying to load different xml that get generated through .net when I am trying to pass varibels i am getting undefined. Can someone give me a heads up on what i might be doing wrong. from what I have read and learned I can pull via-

Code:
xmlData.load("/family/galleryimage.xml.aspx?pid=" + _root.loaderInfo.parameters.pid.toString());

Then I am defining pid in within the object class.

Code:
<param name="pid" value='<% =Request.QueryString["pid"] %>'>
However I am getting undefined. Any help is much appreciated, thanks.
MT

Can I Pass Variables In The URL String?
I am trying to get some variables into a loaded swf at runtime. The variables will carry information so the swf can load the correct xml file. I thought we could pass them through the URL string like so:

new URLRequest("testing.swf?myVar=varOne

but it just throws an URL cannot be found error. How can I get variables into my swf at runtime?

Loading Variables Into Flash From A Query String....
Is it possible?

Basicaly im making an e-Card type thing. so far, what happens is a person is emailed telling them theyve got a card and to click a link. this link contains ?id=4723473218947312 where the id number is a big random one, that corrrresponds to an id number in a txt file, which contains the message to be shown. I need to tell flash what id number to look up, from that link in the email, if you see what im getting at... how can i pass this data into flash?

Variables & Button Action Via URL Query String
Hi,
I have 2 variable textbox named 'box1' and 'box2' and a button named 'enter' in Flash. When the enter button is clicked, it calls up an file. Here is my problem:

I need the user to go to a URL:
http://www.something.com/form.swf?box1=john&box2=smith ...?

How do i write the query string so that the Enter button will perform it's onClick action with the loaded variables?
Can anyone help me please? Thanks.

Calling Variables From Query String Into Flash
Hi, any help given is much appreciated

Ive got multiple html pages with the same flash file embedded, with a different query string on the end for each page

eg.
home.html, myflash.swf?flashid=home
contact.html, myflash.swf?flashid=contact
support.html, myflash.swf?flashid=support

I want my flash to listen to the query string upon loading the page, and depending on the flashid, gotoAndPlay(frame)

Ive tried numerous methods to get it to work, but its just not reading my query string...

Any thoughts?
thanks!

How Do I Pass Variables Into String Object?
Hi,

Im trying to count the number of characters in a string using the string object. I can do this OK when I count the number of chars in a form field but I need to count the number of chars in a variable. Someone told me to use the code "+test+" below to count the variable named 'test', but all this does is return "6". This seems to be just counting the string +test+ (i.e. 6 chars.) rather than a variable

on (release) {
test = "ThisShouldDisplay19";
result = "+test+".length;
}

Can anyone help?

Cheers...John

Dynamically Populating SetRGB Variables From Query String?
anyone know if it's possible to populate setRGB variables dynamically from a query string using loadvariables?

thanks,
dg

Passing Variables From HTML To Flash Using Query String
Am using query strings in HTML to pass variables to my flash movie so I can use the same movie but different title on each page. See www.gogojuicebars.com

Works fine when I test locally, but when uploaded the movie seems to display only the first "welcome" title on each page until you have clicked all of them. Then it works correctly???? Is almost like the flash movie is loading before the varaibles can be passed, but how can this be??

Any ideas on how to fix this?

Load Query String Variables Into Flash Movie
I am trying to load a variable from an HTML query string into my flash movie to load the appropriate movieclip. However, everything I've tried to do is not working... I must be doing something wrong.

My query string in the HTML file looks like this:
<param name="movie" value="components/flash/Navi.swf?navi=home" />
<embed src="components/flash/Navi.swf?navi=home"></embed>

Now, I placed a dynamic text field (temporarily) to make sure my variable was loading- which it does; I just can't seem to use the variable the way I want to.

My goal is for the variable 'navi' holding the data 'home' to control a movieclip in my movie. So if it was "Navi.swf?navi=about" then the movieclip would goto the "About Us" section of the movie.

I tried using this Actionscript:
if(navi == home){
_root.movieclipMC.gotoAndPlay("home");
}
}

if(navi == about){
_root.movieclipMC.gotoAndPlay("about");
}
}

if(navi == home){
_root.movieclipMC.gotoAndPlay("contact");
}
}

What am I doing wrong? Thanks!

Load Query String Variables Into Flash Movie
I am trying to load a variable from an HTML query string into my flash movie to load the appropriate movieclip. However, everything I've tried to do is not working... I must be doing something wrong.

My query string in the HTML file looks like this:
<param name="movie" value="components/flash/Navi.swf?navi=home" />
<embed src="components/flash/Navi.swf?navi=home"></embed>

Now, I placed a dynamic text field (temporarily) to make sure my variable was loading- which it does; I just can't seem to use the variable the way I want to.

My goal is for the variable 'navi' holding the data 'home' to control a movieclip in my movie. So if it was "Navi.swf?navi=about" then the movieclip would goto the "About Us" section of the movie.

I tried using this Actionscript:
if(navi == home){
_root.movieclipMC.gotoAndPlay("home");
}
}

if(navi == about){
_root.movieclipMC.gotoAndPlay("about");
}
}

if(navi == home){
_root.movieclipMC.gotoAndPlay("contact");
}
}

What am I doing wrong? If anyone is able to IM I would appreciate the help... my AIM is barabics. Thanks!

Append Variables On A Query String In HTML Tags
Hi.

Okay, I have a single navigation swf that I want to be able to use over several html pages. I want my swf to be able to react to whichever html page it is on so that dependant on page one button will always be frozen to synchronize with the page title.

The easiest way I could think of (and most browser compatible) was simply to append a variable into the tags on each html page in the way that is defined in this Macromedia technote:

technote: Different approaches to setting variables in a Flash movie

Sounds simple.

But... I followed the directions (thrice) and it no workee! Nothing appears in my cursed test textfield.

I was hoping that someone might be able to pull me into the light, or suggest any other options? Can anyone else get this to work?

Thanks.

pinK

Dynamic Text Based Off Query String
I just need a a dynamic text box to display whats in the query string like putting:

Code:
http://ww.mysite.com/flash/header.swf?MY TEXT HERE
Will make the .swf display dynamically, MYTEXT HERE. How is this done?

Can I Pass A Dynamic String To A URLRequest
I am wanting to use a button to change the value of a String variable, which is stored in a URLRequest, to dynamically change content loaded below the button based on which button is pressed.

Here is some AS 3.0:

var roomID:String = new String("default.swf");

var roomURL:URLRequest = new URLRequest(roomID);

var roomLoader:Loader = new Loader();

roomA10Button.addEventListener(MouseEvent.CLICK, onA10Click);

function onA10Click(event:MouseEvent):void
{
var roomID:String = String("roomA10.swf");
roomLoader.load(roomURL);
addChild(roomLoader);
}


I know some of my syntax is likely screwed up, specifically the "function onA10Click(event:MouseEvent):void" line, but I'm not in front of my code at the moment, so I'm just writing that stuff by memory. Anyway, the idea is to be able to define the String roomID a different value every time you click a button, which in turn updates the URLRequest, before the Loader kicks in and loads the content. Every time I try to do this, though, I get a URL Unknown error. I have traced the roomID String as well, and it seems to change fine with the clicking of buttons, but something's up with the URLRequest.

Any ideas?

Error 2101: The String Passed To UrlVariables.decode() Must Be Url-encoded Query String
I am trying to make a flash contact form which will submit the firstname, lastname, email and comments to an asp.net page.

I am have having the following error:

Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs

I am using the following action script code as pasted below. This action script is communicating with an asp.net file to send the email out. In the end it responds back with response=passed or failed.

I have already spent around 3 hours figuring it out.. and looking through the internet for resolution but no luck. Any help will be appreciated.

stop();
submit_btn.addEventListener(MouseEvent.CLICK, submit);

function submit(e:MouseEvent):void
{
var variables:URLVariables = new URLVariables();
variables.firstname = firstname_txt.text;
variables.lastname = lastname_txt.text;
variables.email = email_txt.text;
variables.comments2 = comments_txt.text;

var req:URLRequest = new URLRequest(”emailacount.aspx”);
req.method = URLRequestMethod.POST;
req.data = variables;

var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE, sent);
loader.addEventListener(IOErrorEvent.IO_ERROR, error);
loader.load(req);

status_txt.text = “Sending…”;

}

function sent(e:Event):void
{
status_txt.text = “Your email has been sent.”;
firstname_txt.text = “”;
lastname_txt.text = “”;
email_txt.text = “”;
comments_txt.text = “”;
}

function error(e:IOErrorEvent):void
{
status_txt.text = “There was an error. Please try again later.”;
}

and the following asp.net code:

<%@ Page Language="VB" %>
<%@ Import Namespace="System.Net.Mail" %>
<script language="VB" runat="server">
Sub Page_Load(Sender As Object, E As EventArgs)
Try
Dim fromEmailAddress = "paul@lancierinc.com"
Dim toEmailAddress = "rizwandar@gmail.com"

Dim firstName = Request.QueryString("firstname_txt")
Dim lastName = Request.QueryString("lastname_txt")
Dim comments = Request.QueryString("comments_txt")
Dim userEmail = Request.QueryString("email_txt")

'create the mail message
Dim mail As New MailMessage()

'set the addresses
mail.From = New MailAddress(fromEmailAddress)
mail.To.Add(toEmailAddress)

'set the content
mail.Subject = "Email from" & firstName & " " & lastName
mail.IsBodyHtml = True
Dim strBody As String = "<b>Email from</b>" & " " & firstName & " " & lastName & "<br><b>Email Address:</b> " & userEmail & "<br><b>Comments:</b> " & comments
mail.Body = strBody

'send the message
Dim smtp As New SmtpClient("mail.lancierinc.com")
smtp.Send(mail)
Dim urltoencodestring2 = "response=passed&err=0"
'Response.Write(urltoencodestring2)


Catch smtpEx As SmtpException
'A problem occurred when sending the email message
'ClientScript.RegisterStartupScript(Me.GetType(), "OhCrap", String.Format("alert('There was a problem in sending the email: {0}');", smtpEx.Message.Replace("'", "'")), True)
Response.Write(smtpEx.Message)
Dim urltoencodestring = "response=failed&err=1"
'Response.Write(urltoencodestring)

Catch generalEx As Exception
'Some other problem occurred
'ClientScript.RegisterStartupScript(Me.GetType(), "OhCrap", String.Format("alert('There was a general problem: {0}');", generalEx.Message.Replace("'", "'")), True)
Dim urltoencodestring3 = "response=failed&err=1"
'Response.Write(urltoencodestring3)
End Try
End Sub
</script>

String Passed To URLVariables.decode() Must Be A URL-encoded Query String...
I really don't understand why this won't work? I've made a test which sends some POST data to a script on my page which works fine. But why does not this work?


Code:
var mapsize = _cmap.fieldx.toString(16) + _cmap.fieldy.toString(16);
var names = "Zomis_AI6";
var description = "descr";
var result = "gameresult";
var upldata: String = "mapsize="+mapsize+"&names="+names+"&description="+description+"&result="+result;
trace(upldata);
var variables:URLVariables = new URLVariables(upldata);
var request2:URLRequest = new URLRequest();
request2.url = "http://www.zomis.net/record.php";
request2.method = URLRequestMethod.POST;
request2.data = variables;
var loader2:URLLoader = new URLLoader();
loader2.dataFormat = URLLoaderDataFormat.VARIABLES;
loader2.addEventListener(Event.COMPLETE, uploadcomplete);
try {
loader2.load(request2);
trace("Loaded");
}
catch (error:Error) {
trace("Unable to load URL");
}
Tracing gets:

Code:
mapsize=1010&names=Zomis_AI6&description=descr&result=gameresult
Loaded
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
at Error$/throwError()
at flash.net::URLVariables/decode()
at flash.net::URLVariables$iinit()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()

Pass URL String From External File To AS Variable (dynamic File Names)
I have a movie player that works fine when i hard-code the url value in the video function, but when i try to pass that url/file path from an external file, the video doesn't load. I suspect that there is something i'm doing wrong with the quotes. What am i doing wrong?


Code:
var vfile:String = string("path");

supervideo = function () {
var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream (netConn);
video.attachVideo(netStream);
netStream.setBufferTime(10);
netStream.play(vfile);

};

loadText.load(_global.text_url1);
loadText.onLoad = function(success) {
if(success){
showtitle.text = this.title1;
vfile = this.flv_name;
supervideo();
}
}
The value in the php file looks like this:

PHP Code:



&flv_name="elements/flv/superape.flv"& 




So ultimately i want to end up with netStream.play("elements/flv/superape.flv");. I know the value of vfile is being passed from the php file and getting into the supervideo(); function because i have a textbox echoing vfile. I have tried defining the variable with and without the ":String". Please let me know if you can see any errors. Thanks!

Pass A String, Return Object With Name String
I feel like this should be pretty easy, but I 'm not quite sure how to do this...

I've got a string that is the name of a movieclip which is on the stage. I'd like to write a function which I can pass that string and have it return the object which has the instance name of that string.

Any hints?

Thanks.

John

AMFPHP - Can't Pass Variable Into SQL Query
Hey guys,

Yeah, I know there's a Flash Remoting forum, but the last post there is months old and gathering dust. So here goes...

Just getting to grips with AMFPHP but I've run into an annoying problem tat I can't seem to work out.

OK, this works, no problem:

PHP Code:



/**
    *queries Moodle FlashMod DB table only if logged on as user
    *@returns recordset (array) of Word Search activity records
    */
    public function get_wordsearch_records()
    {
        return mysql_query('SELECT * FROM `mdl_flashmod_results` WHERE `swfname` = 'Word Search' ');
    } 




But this just returns false:

PHP Code:



/**
    *queries Moodle FlashMod DB table only if logged on as user
    *@returns recordset (array) of input activity records
    */
    public function get_wordsearch_records($activity_type)
    {
        return mysql_query('SELECT * FROM `mdl_flashmod_results` WHERE `swfname` = $activity_type ');
    } 




I've also tried all sorts of other combinations of quotes, re-setting the variable in the PHP file, etc. but I always get false unless I hard code the SQL query.

Any help?

Pass Variable To Swf To Query Database
I am trying to create a page that lets a user preview mp3’s. The mp3s file locations are stored in a database and there is an <cfoutput query > that takes say the mp3 file ids and places it in the swf file. The swf file trys to call the database and loads the file.

I am having major difficulty as I am not an actionscript programmer.









Attach Code

HTML PAGE:
<cfoutput query =”myQueryName”>

<object …>
<param name="movie" value="mp3player.swf?fileID=#myQueryName.fileIDnumber#" />
…othercode.
</object>

</cfoutput>


ActionScriptPage:

var musicPlays:Boolean = false;
var theSound:String = LoadVars(URL.s);
var loopTune:Sound = new Sound();


loopTune.onLoad = function(success:Boolean) {
if (success) {
loopTune.start(0, 999);
musicPlays = true;
_root.musicPlayer.gotoAndStop("playing");
}
};
loopTune.loadSound("s", false);
musicPlayer.playStop.onPress = function ():Void {
if (musicPlays) {
this._parent.gotoAndStop("stopped");
loopTune.stop();
musicPlays = false;
} else {
this._parent.gotoAndStop("playing");
loopTune.start(0, 999);
musicPlays = true;
}
};

Can't Pass String To Nc.connect(string)
hey guys. fairly new to flash, but I've managed to throw together a player with info and tutorials from here and other places. I've got everything just how I want it save for one problem. I've got an XML file that I get the URL for my server from and also get the names of videos to populate a list. Here's the problem:
I can get the URL into a string in my program (it traces fine). However, when i try to pass that string in my nc.connect(string) it doesn't work. Everything loads fine, but when you click a video, it can't connect to it. If I manually enter the URL into the connect field like this: nc.connect("rtmp://url") it works fine.
So am I missing something? Why can it take the URL manually entered and not from a string?

Use Form To Query MySQL DB, Then Pass Data To Flash File?
Say I have a form (form.html) that asks for a login name and password.
It then queries a mysql db via php (login.php) and if there's a match, then the user is taken to a page (welcome.php) with an embedded flash file (hello.swf) in which it says Hello [username].

If I could get just that far, it would be great. I'm getting confused on a number of things but most notably what kind of text box I'd use in the flash file (dynamic or input) and what method to use pass the variable. I mean if I were doing this as a regular php page (Hello [username]) then I know how to print the name in the new page but I'm clueless when flash comes into play

Query String
in the src parameter in my html file I've got

http://www.myDomain.com/myMovie.swf?var=val

What is the best way to extract the values in this query string...I do have a method, but it is longer than i think it needs to be...any ideas?

Query String
How to read Query String for example:
test.swf?test=1&id=23&line=23,
how to read the values of test, id and line inside the flash move in script?

Query String
I want to pass variables into a flash movie using a query string... How can I do it?

i.e myPage.htm?id=4

I want to be able to get the id variable from the query string into flash

String Query
how can i change the font color using string query?
so other people can use the file with their own text and font color.

sample:
myflash.swf?text=Hello World!&fontcolor=0xFF0000

i also want to load a pic using string query,
sample
myflash.swf?text=Hello World!&fontcolor=0xFF0000&image=mypic

thanks, hope you can help me.

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>

URL Query String
How can I get the document URL and query into a variable in actionscript?

I tired using the method below, but this does not work in IE.
http://actionscript.org/forums/showthread.php3?p=561688

Here is an example you can try in both Firefox and IE.
http://hombrefeo.com/fla/?foo1=bar1&foo2=bar2

AS2:: String Query
I have a string that looks something like this:

TestString - "1,0,0,0,0,0,1,0"

I need to create some sort of loop (I think) to search though the string and look to see if it contains any 1's.

How was I go about this?

Any help would be great thanks.

Query String ?
a client is asking me for this:
is this possible?

We would like to present our visitor with a different scene within the
movie depending on the location. For example:

http://www.xxx.com/links.asp?cat=52&Dest=Malta

Would load a scene with a backround picture of Malta

http://www.xxx.com/links.asp?cat=44&Dest=Greece

Would load a scene with a backround picture of Greece

The image file is located in the root and is called greece.jpg

If no picture is found then a default picture is displayed.

In/Out Query String
I am working on parsing a query string from an html doc to flash. It comes into flash but won't come back out to the link I have. I don't know if what I'm trying to do is possible or if I need to use another method. I can't server side .

Thank you

here are the files : http://www.joshspoon.com/js_queryString.rar

Get A URL Query String ID
Is it possible to request a url query string ID in flash mx?

Query String With %D8
Dear everybody

I have changed from Flash 5 to Flash MX. In Flash 5 it was possible to call a flash movie with a query string containing the danish letters , and , which all have numbers beyond 127.

The same query strings write nonsense in my flash movie text fields.

I have also tried to use FlashVars as documented on

http://www.macromedia.com/flash/ts/...s/flashvars.htm

but it gives the same error.

Have I forgotten something? How can I transfer letters like %D8 to the flash 6 player?

Torben

Pulling From A Query String
alright I've fidgured some things out and this is what I am currently doing.

I am attempting to load variables placed into the query sting (url) into a dynamic text field with the same variable name. Currently it is effecting the variable but it is not putting the values into the text field
Here is my code:

loadVariablesNum ("void", 0, "POST");
to = "0";
from = "0";

I have attempted sending the variables using "GET" as well as "Don't send" with the same results

the page is
http://www.familyties.com/dogDaystes...=josh&from=bob

If you remove the "to" and "from" on the query string the default value of "0" appears in each variable

What am I doing wrong?

Sending Query String To ASP
I've tried to send a query string to an ASP page using loadVariablesNum as belows:

loadVariablesNum ("http://www.domain.com/test.asp?type=1", 0, "GET");

But, I can only see that Request("type") from ASP return null value. What's is the problem?

Thank you for your help.

Sending Query String
Hi all!!

I am using Flash 5.. doing a CD presentation in flash projector or exe..

on click of a link I want to send a query string:

pagename.html?Firstname=Joe

but when it opens the page I am not getting "?Firstname=Joe" in the addressbar of the browser..

pls help..

Load Swf Into Swf (specifying In Query String)
Hi I have the following problem (I am not too experiences with flash AS, but trying to learn).

Basically I have the following model:

player.swf (interface that looks like winamp for instance)
song01.swf (swf with imported mp3)

What ends up happening is song01.swf is loaded into player swf. The way it works right now is I have to hardcode the name of the song to load into each player.swf. But what I'd like to do is to specity which song I want to add in a query string and player.swf will pick it up. For instance:

www.mysite.dom/player.php?song=song01.swf

then player.swf in player.php will pick up the variable song01.swf and laod it into itself.

Can anyone give a quick hint? Thanks much guys.

And lastly, I am doing it all in Flash 5.

Vladislav Kulchitski

GetURL With Query String And Asp
kay. i've got a variable in my asp page keeping track of user preferences. i'm making a link graphic in flash 5 that needs to grab this variable, and redirect to another page within the site... so, in plain jane asp, the link goes:

response.write "<a href=""description.asp?" & strQSMin & "&pid=90210"">"

easy enough, but when i try the matching string in actionscript:

on (release) {
getURL ("description.asp" & strQSMin & "&pid=90210", "", "GET");
}

it's a no go...
i've tried a dozen variations here, none of which have resolved anything.

any hints as to what's up here?

cheers
staceass

Query String In Flash
I have a dynamic text field and the variable name for it is "name". I want to change this text field using query string.

I have two pages.
1) Where there is a link to the flash page called "Click here"

2) The second page is flash html page and the name of the page is "hello.html".

Both the files are in the same folder and I am using the following code as a hyperlink with "Click here".

<a href="hello.html?name=John">Click here</a>

I want the name field to print "John" but it does not work.

Please help

Read The Query String
Is there any way to read the querystring? or if not is there a way to pass it in to the movie using asp?

Copyright 2005-08 www.BigResource.com, All rights reserved