Skip to content

Cannot child it to anything other than flash.Lib.current #415

@smoketh

Description

@smoketh

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions