-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
To example i have complex flash app built with usage of stablexUI.
From there i load specific document
package;
import ru.stablex.ui.widgets.Box;
import cocktail.api.CocktailView;
import flash.display.Sprite;
class BrowserWindow extends Box
{
var cv:CocktailView;
var loaded_content:Box = new Box();
override public function onCreate():Void
{
super.onCreate();
...
this.addChild(loaded_content);
}//This function called from outside right after element was created
public function initCocktail()
{
cv = new CocktailView();
cv.viewport ={ x:0, y:0, width:640, height:480 };
cv.loadURL("embed2.html");
//cv.rende
cv.window.onload = function(e)
{
loaded_content.addChild(cv.root);
//flash.Lib.current.addChild(cv.root);
};
}
It loads it to lib.current just fine, but i see nothing when i load it as child of box which itself is child of the multiple object tree. (tried attaching it to both Box and just Sprite.)
(tree looks like something like this desktop:Box > basicWindow:Box > thisOne:Box > cv.root)
Metadata
Metadata
Assignees
Labels
No labels