Home  |  About  | Last |  Submit  |  Contact
AllQuests.com




Previous Question:  [ubuntu] where can install cinelerra  Installation UpgradesNext Question:  MC Depths  Flash ActionScript
Question undeclare variables error MX ( Flash Kit Community Forums Flash ActionScript )
Updated: 2010-07-21 05:55:08 (3)
undeclare variables error MX

Is it possible to somehow make MX give errors (or at least warnings) when you use undeclared variables or properties, or at least methods!!!

The amount of time I lose (and hair I pull out!) trying to debug something not working and find out whats wrong, only to realize hours later that there isnt anything wrong with the logic or algorithms etc. but it turns out its just a little typo error in the name of a variable or method etc.... e.g. MovieClip.Coutner instead of MovieClip.Counter.....

I want it to say immediately (as soon as I press ctrl+enter or debug etc.) that there is no such property instead of immediately creating one and initing it to zero!!
the "option explicit " statement in VB was perfect....I wanna have to explicitly declare all my variables and properties and methods.
thx

Answers: undeclare variables error MX ( Flash Kit Community Forums Flash ActionScript )
undeclare variables error MX

No, just look in the debugger to see if any variables are set as "undefined". Sometimes, that can take a while to run doan.

NCD

NCD

undeclare variables error MX

debugger even with that you are limited to find the UNDEFINED, I'd say hope less !

dingoflash

undeclare variables error MX

bugger!
thx anyways

I also posted on kirupa and got an interesting reply....it doesnt exactly solve the whole problem but kinda solves half of it, if anyone is interested you can check out the thread here...

http://www.kirupaforum.com/forums/sh...886#post257886

high1memo

Previous Question:  [ubuntu] where can install cinelerra  Ubuntu Forums  Installation UpgradesNext Question:  MC Depths  Flash Kit Community Forums  Flash ActionScript

- Source: undeclare variables error MX Flash Kit Community Forums Flash ActionScript
- Previous Question: [ubuntu] where can install cinelerra Ubuntu Forums Installation Upgrades
- Next Question: MC Depths Flash Kit Community Forums Flash ActionScript