"Ben Dewey" <AspiringMVP@hotmail.com> wrote in message
news:cnj4uq$70q$1@forums.macromedia.com...
> In order to load from a text file
> ------------------------------------------------------------------
> [data.txt]
> myVarA=123&myVarB=Something
>
> then in the script you could use:
> loadVariablesNum("data.txt", 0);
> _root.myVarA // is not available
>
>
> If you are using HTML you can also use
> ----------------------------------------------------------------------
> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
> codebase="
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
> width="100%" height="100%" id="gallery" align="middle">
> <param name="allowScriptAccess" value="sameDomain" />
> <param name="movie" value="gallery.v3.swf" />
>
> <param name="FlashVars" value="myVarA=123&myVarB=something" />
>
> <param name="quality" value="high" />
> <param name="bgcolor" value="#9cc76d" />
> <embed src="mySwf.swf" quality="high" bgcolor="#9cc76d" width="100%"
> height="100%" name="mySwf" align="middle" allowScriptAccess="sameDomain"
> type="application/x-shockwave-flash"
> pluginspage="
http://www.macromedia.com/go/getflashplayer" />
> </object>
>
> If you use this one you don't have to call any loadVariablesNum commands:
> _root.myVarA // is there by when loaded.
>
>
> usually a good idea on frame one to say:
> if (_root.myVarA == undefined) _root.myVarA = defaultVal;
>
> Hope this helps! njoy!
>
>
> "goodcookn" <webforumsuser@macromedia.com> wrote in message
> news:cnj3et$5db$1@forums.macromedia.com...
>> Hi all, I?m sure this is super easy but i couldn't find the awsner so
>> here
>> goes. I?m trying to load a variable from a text file that will control
>> the
>> position of my movie clip. Right now I have an array with MC to make a
>> slider
>> and buttons controlling the position of the MC. I want to be able to
>> change
>> which section you see first on loading. Here?s a link to what it looks
>> like
>> now so you get any idea of what I'm talking about. Many thanks!
>>
http://13tenths.com/xposed/my_slidemenu.html >>
>
>