PDA

View Full Version : Window component fails!! BUG? MOTH? BEHMOTH BUG?


fenin
01-12-2006, 07:36 AM
I am experiecing a very weird problem with window component.
There are two movieclips on stage.One with an instance name "mymov"
,and another one with an instance name "dummy".
"dummy" has a class file ButtonManager.as attached to it through
library.

On root timeline i have the following code:

import mx.utils.Delegate;
function logincall() {
mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window,
true);
}

mymov.onPress = Delegate.create(this, logincall);

The class file is a basic one with no functionality.It just contains:

class ButtonManager{

}

As it is evident,the code in root timeline should create an instance of
Window on stage,if mymov is pressed.
But this never happens as long as ,"dummy" instance resides on the
stage.
As you can see,the "dummy" instance has nothing in common with the code
in root time line or "mymov" instance.
I do have the window component in library.
When mymov is pressed,a modal behaviour is created(see the value true passed).But the component doesnt showup!!!
Why is it like this?Is this a bug?

fenin
01-12-2006, 12:24 PM
I am experiecing a very weird problem with window component.
An innocent movieclip,which has nothing to do ,is ruining my day!
My stage setup goes like this...
There are two movieclips on stage.One with an instance name "mymov"
,and another one with an instance name "dummy".
"dummy" has a class file ButtonManager.as attached to it through
library.

On root timeline i have the following code:

import mx.utils.Delegate;
function logincall() {
mx.managers.PopUpManager.createPopUp(_root, mx.containers.Window,
true);
}

mymov.onPress = Delegate.create(this, logincall);

The class file is a basic one with no functionality.It just contains:

class ButtonManager{

}

As it is evident,the code in root timeline should create an instance of
Window on stage,if mymov is pressed.
But this never happens as long as ,"dummy" instance resides on the
stage.
As you can see,the "dummy" instance has nothing in common with the code
in root time line or "mymov" instance.
I do have the window component in library.
When mymov is pressed,a modal behaviour is created(see the value true passed).But the component doesnt showup!!!
Why is it like this?Is this a bug?
[Yes! this is the second time im posting this today.Im doing this because no one seem to be interested in this !! But just take a look! This is "officially weird"!!]

fenin
01-13-2006, 03:34 AM
To see the very interesting solution to this "issue" ,check out:
this (http://flashmx2004.com/forums/index.php?showtopic=8453)