You never added the 3d wall to the stage.

addChild(wall);

On Wed, Feb 4, 2009 at 5:27 AM, Grant Davies <[email protected]> wrote:

>    Hey guys,
>
>
>
> I have the 3d wall pro component from :
>
>
>
> http://www.flashloaded.com/flashcomponents/3dwall/
>
>
>
> I successfully created a flex component from it, added it to a view
> component and initialized its instance with code
>
>
>
> Like :
>
>
>
> *var* wall : com.flashloaded.Wall3DPro.Wall3DPro = mainView.wall;
>
>
>
>                   wall.setMediaPaths(*"/assets/img/portfolio/"*, *
> "/assets/img/portfolio/"*);
>
>
>
>                   *var* obj:Object = *new* Object();
>
>                   obj.type = *"image/jpeg"*;
>
>                   obj.src =*"aso-calendar-200x150.jpg"*;
>
>                   obj.width=*"200"*;
>
>                   obj.height=*"150"*;
>
>
>
> *var* objArray : Array = *new* Array();
>
>
>
>                   objArray.push(obj);
>
>                   wall.addElements( objArray, *"array"*);
>
>
>
> wall.init();
>
>
>
>
>
> I then run my app in the debugger and I do see the wall loading the jpegs
> correctly but the wall is "never" visible.
>
>
>
> If I check the instance in the debugger its visible is true, its width and
> height look good, its parents width/height/visible all look good too.
>
>
>
>
>
> I then used an fla and published a swf instead and embedded the swf with
> the same code and it works and displays.  I'd prefer to use it as a flex
> component but I can't figure out why its "running" but isn't visible.
>
>
>
> Flashloaded just say they don't support flex if you google their forums.
>
>
>
>
>
> Cheers
>
> Grant
>
>
>
> ...........................................
>
> › b l u e t u b e i n t e r a c t i v e.
>
> .: Development solutions for creatives :.
>
> .: grant davies
>
> .: 404.428.6839 (c)
>
> .: 404.921.9550 (F)
>
> › [email protected]
>
> http://www.bluetubeinteractive.com
>
>
>  
>



-- 

Cheers,
Nate
----------------------------------------
http://blog.natebeck.net

<<image001.png>>

Reply via email to