all groups > flash actionscript > february 2004 >
You're in the

flash actionscript

group:

loadVariablesNum Flash 5 problem


Re: loadVariablesNum Flash 5 problem www.flashforabuck.com
2/9/2004 8:30:02 PM
flash actionscript: Hye LV_Rob,

You are on the right track.
Try the code bellow.

myBar.gotoAndStop(Number(value1))

If this doesn't work email me at admin@flashforabuck.com

-Max
www.flashforabuck.com

[quoted text, click to view]
loadVariablesNum Flash 5 problem LV_Rob
2/9/2004 8:48:05 PM
I am using Flash 5 and loadVariblesNum to load a txt file that looks like

title=My Title&value1=25&value2=50&value3=75&urlLink=www.domain.co

The file loads and my text boxes display the title properly and the button url
takes on the urlLink variable and works fine. The problem is with the values
(value1, value2, value3) which are numbers. Even though they will display in a
text box - I cannot use them in a TellTarget as in the following

tellTarget ("myBar")
gotoAndStop (/:value1)


where myBar is a clip that i want to gotoAndStop at frame value1 (which should
be 25). Is this a Flash 5 issue or is there something I am doing wrong. It
almost seems as though the values are coming in as Strings instead of integers.
I have tried Number(value1) to no avail

Thanks for your help

Rob.
AddThis Social Bookmark Button