CyanBlue
11-06-2005, 04:41 PM
Howdy... :)
Got a question...
I've got this script...
var p_mc = this.attachMovie("MC_Pause", "pause_mc", 999999, {_x:400, _y:300});
p_mc._alpha = 0;
import mx.transitions.Tween;
import mx.transitions.easing.*;
var tween_handler:Object = new Tween(p_mc, "_alpha", Strong.easeIn, 0, 50, 1, true);
tween_handler.onMotionFinished = function()
{
trace("onMotionFinished triggered this = " + this);
for (var i in this)
{
trace("\t" + i + " : " + this[i] + " : " + typeof(this[i]));
}
// this[obj].removeMovieClip();
// removeMovieClip(this[obj]);
p_mc.removeMovieClip();
trace("_level0.pause_mc.getDepth() = " + _level0.pause_mc.getDepth());
_level0.pause_mc.removeMovieClip();
trace("_level0.pause_mc.getDepth() = " + _level0.pause_mc.getDepth());
}
The output from that script is...
onMotionFinished triggered this = [Tween]
prevTime : 0.968 : number
onMotionFinished : [type Function] : function
isPlaying : false : boolean
_startTime : 25 : number
_time : 1 : number
broadcastMessage : [type Function] : function
_listeners : [Tween] : object
change : 50 : number
func : [type Function] : function
useSeconds : true : boolean
_duration : 1 : number
_pos : 50 : number
prevPos : 42.4958764662784 : number
begin : 0 : number
prop : _alpha : string
obj : _level0.pause_mc : movieclip
_level0.pause_mc.getDepth() = undefined
_level0.pause_mc.getDepth() = undefined
As you can see we have 'obj' in the Tween object but my attempt to access that is not working...
// this[obj].removeMovieClip(); // NOPE
// removeMovieClip(this[obj]); // NOPE
p_mc.removeMovieClip();
Can anybody explain why I am not able to access the _level0.pause_mc when I say 'this[obj]'???
Thanks... :)
Got a question...
I've got this script...
var p_mc = this.attachMovie("MC_Pause", "pause_mc", 999999, {_x:400, _y:300});
p_mc._alpha = 0;
import mx.transitions.Tween;
import mx.transitions.easing.*;
var tween_handler:Object = new Tween(p_mc, "_alpha", Strong.easeIn, 0, 50, 1, true);
tween_handler.onMotionFinished = function()
{
trace("onMotionFinished triggered this = " + this);
for (var i in this)
{
trace("\t" + i + " : " + this[i] + " : " + typeof(this[i]));
}
// this[obj].removeMovieClip();
// removeMovieClip(this[obj]);
p_mc.removeMovieClip();
trace("_level0.pause_mc.getDepth() = " + _level0.pause_mc.getDepth());
_level0.pause_mc.removeMovieClip();
trace("_level0.pause_mc.getDepth() = " + _level0.pause_mc.getDepth());
}
The output from that script is...
onMotionFinished triggered this = [Tween]
prevTime : 0.968 : number
onMotionFinished : [type Function] : function
isPlaying : false : boolean
_startTime : 25 : number
_time : 1 : number
broadcastMessage : [type Function] : function
_listeners : [Tween] : object
change : 50 : number
func : [type Function] : function
useSeconds : true : boolean
_duration : 1 : number
_pos : 50 : number
prevPos : 42.4958764662784 : number
begin : 0 : number
prop : _alpha : string
obj : _level0.pause_mc : movieclip
_level0.pause_mc.getDepth() = undefined
_level0.pause_mc.getDepth() = undefined
As you can see we have 'obj' in the Tween object but my attempt to access that is not working...
// this[obj].removeMovieClip(); // NOPE
// removeMovieClip(this[obj]); // NOPE
p_mc.removeMovieClip();
Can anybody explain why I am not able to access the _level0.pause_mc when I say 'this[obj]'???
Thanks... :)