Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / November 2007



Tip: Looking for answers? Try searching our database.

Variables Not Working correctly..

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MikeM2 - 11 Nov 2007 08:34 GMT
Im loading variables via loadvariablesnum and im checking the debug and they
successfully getinto the _level0

now for some reason in the next frame its not reading that vari .. IE Below
if(_level0.FID != "")
{
    _root.gotoAndPlay(6);
}

in the debug tho under _level0 it chose FID correctly in... doesnt make sense
rezzkilla - 22 Nov 2007 01:24 GMT
Not sure if this helps but sometimes I can't make an equality comparison with
an empty imported variable. Seems in the past i could use an if statement with
empty quotations to check for an empty variable, but the last few projects
using Flash 8 I've had to use undefined.
if(_level0.FID != undefined)
{
_root.gotoAndPlay(6);
}

However, I would write it like
if (_root.FID == undefined) {
//throw an error
gotoAndStop(5);
alert.text = "Please provide an FID";
} else {
//continue on
gotoAndStop(6);
alert.text = "Hello";
}

Are you loading an empty variable and what does your flash movie do (ie goto
frame 6 or not?)?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.