Craig
Try this
//////////////////////////////////////////////////////////
// Get the url parameters
qStrings =
this._url.substring(this._url.lastIndexOf("?")+1,this._url.length);
function getQueryString()
{
// Create the object to hold the structure
var _root.qStringVals = new Object();
// Split the valuepairs into an array of its own
var qStrings = qStrings.split("&");
// Loop over the pairs
for (a=0; a < qStrings.length; ++a)
{
// If the pair has a value
if (qString[a].indexOf("=") != -1)
{
// Break the value pair into a var and a value
thisQString = qStrings[a].split("=");
// Set the value for the var into the object
_root.qStringVals[thisQString[0]] = thisQString[1];
}
}
}
//////////////////////////////////////////////////////////
With this code you will be able to pass values into the flash movie via the
src param of the flash embed.
<param name="src" value="myMovie.swf?varialble=value">
It will then break it up into a new object called qStringVals and assign the
variable and value to this object so you can call them like
qStringVals.variable
see how you go
Regards
Steve Onnis
Domain Concept Designs
+61 422 337 685
+61 3 9444 7504
http://www.domainconceptdesigns.com <http://www.domainconceptdesigns.com>
("If you think it can't be done, you haven't asked me!") - Steve Onnis
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Craig Riley
Sent: Monday, January 20, 2003 12:42 PM
To: CFAussie Mailing List
Subject: [cfaussie] Loading FlashVars? $%^&?
Hi guys, last Q honest!
I'm using the new FlashVars parameter but I am having difficulty loading
the data into flash, for some reason I can find lots of data on passing
variables to flash using this new parameter but absolutely didley on how to
access it in flash!
All I want to do is pas a yes or no using flashvars and then access that
data in flash?
Love some help :-)
Cheers
At 12:01 PM 1/20/2003 +1100, you wrote:
>"J�rgen Sundvor Smith" <[EMAIL PROTECTED]> wrote in message
>news:22034@cfaussie...
> > *) see comments on
> >
>http://livedocs.macromedia.com/cfmxdocs/Developing_ColdFusion_MX_Applicatio
n
> > s_with_CFML/CFScript3.jsp
>
>Or:
>http://makeashorterlink.com/?J28834623
>
>j
>// who would have thought that the ability to understand that something
long
>beginning with http:// doesn't need word wrapping should have made it into
>even such a crappy newsreader as Outlook Express by now. Sigh, I miss using
>Agent --- it should be out in multiple news accounts version later this
year
>though, so mayhap there's hope yet - http://forteinc.com/ .
>
>
>
>---
>You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
>To unsubscribe send a blank email to
[EMAIL PROTECTED]
>
>MX Downunder AsiaPac DevCon - http://mxdu.com/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/