Re: [Flashcoders] Beware of depth 9876

2006-03-27 Thread Eskil Janson
That is right, and you could add that he problem will disappear in AS3 
with the new depth managing system.
I still think it might be good to know that a Component Class occupies 
and erases clips in a specific depth in root.


Thanks anyway

/Eskil

Michael Bedar skrev:
In general it is a good idea not to work on the root level for 
anything making movieclips...  much better to create a container clip 
first on root and play in that.



On Mar 24, 2006, at 2:53 PM, Eskil Janson wrote:


I suppose this has been discussed a few times already, but if not:

When you use the Tween class, an Instance of the Class 
mx.transitions.OnEnterFrameBeacon is

created if not already existing.

In that Class the following line is executed:

var mc = _root.createEmptyMovieClip (__OnEnterFrameBeacon, 9876);

which means that if you have anything at that depth (9876) already, 
it will disappear.
You can confirm this by  a simple test like pasting the following 
code in the first frame of your movie:

(change the depth to 9875 or 9877 and see the difference..)
---
import mx.transitions.Tween;
this.createEmptyMovieClip(square_mc, 9876);
square_mc.beginFill(0xFF);
square_mc.moveTo(10, 10);
square_mc.lineTo(100, 10);
square_mc.lineTo(100, 100);
square_mc.lineTo(10, 100);
square_mc.lineTo(10, 10);
square_mc.endFill();
var myTween:Tween = new Tween(square_mc, _x, 
mx.transitions.easing.Elastic.easeOut, 0, 300, 3, true);
 



So if you are in a large dynamic project swapping depths a lot and 
using Tweens, and been experiencing strange problems,

this may be worth to know...

All cred to Robert Penner (obviously the genius behind the Tween 
Class), but I think this detail could have been improved on before 
shipping with Flash 8.


Sorry if this has been discussed already...

Regards

/Eskil


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com






___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Beware of depth 9876

2006-03-24 Thread Eskil Janson

I suppose this has been discussed a few times already, but if not:

When you use the Tween class, an Instance of the Class 
mx.transitions.OnEnterFrameBeacon is

created if not already existing.

In that Class the following line is executed:

var mc = _root.createEmptyMovieClip (__OnEnterFrameBeacon, 9876);

which means that if you have anything at that depth (9876) already, it 
will disappear.
You can confirm this by  a simple test like pasting the following code 
in the first frame of your movie:

(change the depth to 9875 or 9877 and see the difference..)
---
import mx.transitions.Tween;
this.createEmptyMovieClip(square_mc, 9876);
square_mc.beginFill(0xFF);
square_mc.moveTo(10, 10);
square_mc.lineTo(100, 10);
square_mc.lineTo(100, 100);
square_mc.lineTo(10, 100);
square_mc.lineTo(10, 10);
square_mc.endFill();
var myTween:Tween = new Tween(square_mc, _x, 
mx.transitions.easing.Elastic.easeOut, 0, 300, 3, true);



So if you are in a large dynamic project swapping depths a lot and using 
Tweens, and been experiencing strange problems,

this may be worth to know...

All cred to Robert Penner (obviously the genius behind the Tween Class), 
but I think this detail could have been improved on before shipping with 
Flash 8.


Sorry if this has been discussed already...

Regards

/Eskil


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Beware of depth 9876

2006-03-24 Thread Michael Stuhr

Eskil Janson schrieb:

I suppose this has been discussed a few times already, but if not:


  
hadn't heard of that, and i'm sure it wasn't already discussed on this 
list.


thanks for the info.

micha
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Beware of depth 9876

2006-03-24 Thread Michael Bedar
In general it is a good idea not to work on the root level for  
anything making movieclips...  much better to create a container clip  
first on root and play in that.



On Mar 24, 2006, at 2:53 PM, Eskil Janson wrote:


I suppose this has been discussed a few times already, but if not:

When you use the Tween class, an Instance of the Class  
mx.transitions.OnEnterFrameBeacon is

created if not already existing.

In that Class the following line is executed:

var mc = _root.createEmptyMovieClip (__OnEnterFrameBeacon, 9876);

which means that if you have anything at that depth (9876) already,  
it will disappear.
You can confirm this by  a simple test like pasting the following  
code in the first frame of your movie:

(change the depth to 9875 or 9877 and see the difference..)
---
import mx.transitions.Tween;
this.createEmptyMovieClip(square_mc, 9876);
square_mc.beginFill(0xFF);
square_mc.moveTo(10, 10);
square_mc.lineTo(100, 10);
square_mc.lineTo(100, 100);
square_mc.lineTo(10, 100);
square_mc.lineTo(10, 10);
square_mc.endFill();
var myTween:Tween = new Tween(square_mc, _x,  
mx.transitions.easing.Elastic.easeOut, 0, 300, 3, true);
-- 
--


So if you are in a large dynamic project swapping depths a lot and  
using Tweens, and been experiencing strange problems,

this may be worth to know...

All cred to Robert Penner (obviously the genius behind the Tween  
Class), but I think this detail could have been improved on before  
shipping with Flash 8.


Sorry if this has been discussed already...

Regards

/Eskil


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com