i have a swf in an html page called main.htm - is it possible for the flash to read a variable in the page's url. Eg. main.htm?myVars=here_is_some_text
thanks
"Today, a young man on acid realized that all matter is merely energy condensed to a slow vibration - that we are all One Consciousness, experiencing itself subjectively. There's no such thing as death, life is only a dream and we're the imagination of ourselves. Here's Tom with the weather..."
That's works well but it's not quite what i need - i need the swf to read in from the URL of the html page: eg. index.html?message=hello!
I suspect i need to find a bit a javascript
"Today, a young man on acid realized that all matter is merely energy condensed to a slow vibration - that we are all One Consciousness, experiencing itself subjectively. There's no such thing as death, life is only a dream and we're the imagination of ourselves. Here's Tom with the weather..."
"Today, a young man on acid realized that all matter is merely energy condensed to a slow vibration - that we are all One Consciousness, experiencing itself subjectively. There's no such thing as death, life is only a dream and we're the imagination of ourselves. Here's Tom with the weather..."
I do need javascript because i need to read the HTML PAGE query string.
actually, if you just want to push a variable into a flash file it's more browser/version friendly to simply go "myflash.swf?variable1=blah"
"Today, a young man on acid realized that all matter is merely energy condensed to a slow vibration - that we are all One Consciousness, experiencing itself subjectively. There's no such thing as death, life is only a dream and we're the imagination of ourselves. Here's Tom with the weather..."
except your calling the .swf......and not the HTML page... sometimes you have hybrid sites...or multiple movies embeded in a page that need to 'feed' of the VAR passed in the URL string.
if i need to read the query string of the page your solution is perfect (tnx again).
i was just pointing out to moagrius that if you merely want to get a variable value into a swf you don't need the 'flashVars' function, just append the name of the swf with the variable name and value, i've used this since flash 4
"Today, a young man on acid realized that all matter is merely energy condensed to a slow vibration - that we are all One Consciousness, experiencing itself subjectively. There's no such thing as death, life is only a dream and we're the imagination of ourselves. Here's Tom with the weather..."
im having trouble makeing the connection from my one swf to tell it to go to another swf and play a certain frame.
this is the code im using
on(press) {
getURL("http://www.callkarl.ca/main.html?frameName=home");
}
since i have to now fix the embeded issue im using this script and trying to edit it with no luck
<script type="text/javascript" src="flashobject.js"></script>
thanks for ur help, but i still can't get it to work. as u can prolly tell by now im a huge rook andno very little AS. i made a bare-bones example of what im trying to do. can u look at it and tell me what im doing wrong?