LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-21-2008, 02:41 AM
kippy kippy is offline
Registered User
 
Join Date: Dec 2007
Posts: 6
Rep Power: 0
kippy is on a distinguished road
variable issue

I am having problems with a variable that I am loading using loadVariablesNum("vars.php", 0, "POST"); to bring in variables from an outside file source. The problem is that when I use an IF statement outside a function the variable(s) are not recognized inside the IF statements, but the variables are rcognized inside functions, for example
Actionscript:
loadVariablesNum("vars.php", 0, "POST");
 
  if(waVar == 1){
   _root.map.state1.gotoAndStop(2);
  }
****The variable waVar is not recognized in the usage above, but is recognized in the function below, both are saved on the same frame's actions.

Actionscript:
_root.map.state1.onRollOver = function(){
  if(waVar == 1){
  this.gotoAndPlay(3);
  this.swapDepths(10);
  }
 }
Any thoughts on how to get the waVar variable recognized in the top usage?

Thanks in advance for any help!

Last edited by m. allen west : 01-21-2008 at 03:48 AM Reason: [AS]tag your it[/AS]
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[CS3] Linestyle, user drawing and issue with variable floody123 ActionScript 3.0 1 02-26-2009 02:14 AM
Editing Template error(convert from .fla to .swf) Travi$18 Flash CS3 / Flash 9 2 09-03-2008 06:43 PM
2D Physics Engine Scottae Members Cafe 11 07-24-2008 04:36 PM
variable issue bober911 Flash 8 1 10-30-2006 11:57 PM
Simple Variable Issue parasight Flash MX 2 09-27-2005 03:17 PM




All times are GMT. The time now is 03:11 PM.