Hello,
I have written my own component (please see Bubble.*
in http://preferans.de/flash/ ) which works ok - but only
if I pull its instance onto the stage manually.
If I try to instantiate it during runtime with -
bubble_mc = createClassObject(Bubble,
'bubble_mc', 10, { _width: 80, _x: 20, _y: 20 } );
trace(bubble_mc + ': ' + bubble_mc.bgcolor);
then nothing is visible on the stage and trace() prints:
null: undefined
I've searched numerous web pages, can't find what is
wrong here. Any hints please?
And my actual problem is that I have 2 own components:
I want to display that comics-like Bubble chat component
inside (on top of) another own component representing a player
( please see User.* in http://preferans.de/flash/ and click
the cards list on the right to update the text in bubble_mc )
private function createChildren():Void {
...
createClassObject(Loader, 'avatar_ldr', depth++, {contentPath:
'Unknown'});
createClassObject(Bubble, 'bubble_mc', depth++, {bgcolor:
0xFF0000});
}
The problem is that while bubble_mc is displayed,
it isn't drawn correctly. I see the text, but the background
color isn't solid. I can't find why is this happening.
Adding an explicit bubble_mc.draw() inside the player component:
private function draw():Void {
super.draw();
bubble_mc.draw();
}
doesn't help. Any suggestions are very welcome
Regards
Alex
_______________________________________________
[email protected]
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