PDA

View Full Version : [AS2] weird _level thing


LHR
10-29-2009, 08:03 PM
I will try to make this simple and clear although it is sooooo mysterious to me.

Here:
I have built an online flash application in wich I use a popup window function (that I created, in as2) to show different kind of informations. I have a function that opens popups and a function who closes them. Everything goes well untill, I don't know what and I don't know why, but my app's _level0 is suddenly changed into _level23684. After that everything goes wrong...

I wish someone had heard or seen something about this and could have an idea of what is causing it.

Thanks for any help

squadjot
10-29-2009, 09:27 PM
I will try to make this simple and clear although it is sooooo mysterious to me.

Here:
I have built an online flash application in wich I use a popup window function (that I created, in as2) to show different kind of informations. I have a function that opens popups and a function who closes them. Everything goes well untill, I don't know what and I don't know why, but my app's _level0 is suddenly changed into _level23684. After that everything goes wrong...

I wish someone had heard or seen something about this and could have an idea of what is causing it.

Thanks for any help

are you using any of the Flash V2 components? (or have them in libriary)

LHR
10-29-2009, 09:42 PM
Yes I do have some... but since I don't use getNextHighestDepth() anywhere, I thought I was OK. But I use a lot getDepth(), swapDepths() and getInstanceAtDepth(). Is there any known troubles with those too ?

LHR
10-29-2009, 10:48 PM
Btw, my script never references _level0 anywhere and I do not have any actions of any sort apllied to a level.

CyanBlue
10-30-2009, 04:49 AM
Howdy and Welcome... :)

I believe Flash automatically sets the level that high for the components...

LHR
11-04-2009, 10:41 PM
Hi and thank you! member since 2006 but not visiting so much ;)
For my question, i found the problem... and i feel soooooo embarassed ! It was my error, just a bad reference in a swapDepth() and voilą! _level0 went straight to hell !

anyway thanks a lot.

btw, I don't think _level0 could in any case be swaped automatically... ;)