Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<EMBED src="url.swf?<%=Request.QueryString()%>"

Status
Not open for further replies.

2cxc

Programmer
Aug 29, 2003
245
CA
the html code is as follows
<PARAM NAME=movie VALUE=&quot;url.swf?<%=Request.QueryString()%>&quot;>
......
<EMBED src=&quot;url.swf?<%=Request.QueryString()%>&quot;

I get URLs like url.swf?bb=3

in the movie on 3rd frame, level 1, i have these actions:

if (bb==1) {
getURL(&quot; &quot;_self&quot;);
} else if (bb==2) {
getURL(&quot; &quot;_self&quot;);
} else if (bb==3) {
getURL(&quot; &quot;_self&quot;);
} else if (bb==4) {
getURL(&quot; &quot;_self&quot;);


any ideas why the getURL aren't working?
 
i have no ideas why when i posted these were added to the getURL --> ;

just ignor them please, any suggestions as to the problem
 
When posting code, either uncheck the &quot;Process TGML&quot; box on the bottom of the post window, or surround your code part with (code)&(/code) tags, replacing the &quot;( )&quot; with &quot;[ ]&quot;.
 
Hi,

Here is the Key.

In your flash movie your actionscript should be:
if(_root.variableName == 1){
your code here;
}else if (_root.variableName == 2){
your code here;
}

and so on.

I would advise you to define your variables at the top of your ASP file. For example at the top of the page:
<%variableName = Request.Querystring(&quot;strName&quot;)%>

Then your embed code would be:

<PARAM NAME=movie VALUE=&quot;url.swf?<%=variableName%>&quot;>
......
<EMBED src=&quot;url.swf?<%=variableName%&quot;>

That would reduce round trips to your server.

Good luck!

Wow JT that almost looked like you knew what you were doing!
 
pixl8r, I did everything you memtioned and with the if code below the contidional statement of _root.variableName == 1 is always true regardless of what number the variableName is.

if(_root.variableName == 1){
your code here;
}else if (_root.variableName == 2){
your code here;
}

this is what i'm trying to do:

if (_root.bb == 1) {
loadVariablesNum(&quot; 1);
} else if (_root.bb == 2) {
loadVariablesNum(&quot; 1);
} else if (_root.bb == 3) {
loadVariablesNum(&quot; 1);
} else if (_root.bb == 4) {
loadVariablesNum(&quot; 1);
} else if (_root.bb == 5) {
loadVariablesNum(&quot; 1);
}

I don't know why the _root.bb is always using the first if statement..... any thoughts on this?
 
also i failed to mention that the url string is of proper format and contains the number that bb was set to and I response wrote the bb value to the page and everthing checks out.
 
Perhaps you should start by making sure that your variable is getting into the movie as expected. Before your &quot;If&quot; in actionscript statment place trace(_root.bb);

When rendered your ASP should be look like:<EMBED src=&quot;url.swf?bb=1&quot;>. How you get it that way is up to you :)

You could also just hard code it as above and change it to make sure that the Flash movie is getting the different values.

I might be able to help more if I could see the whole picture.

Good luck,


Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top