Hi Northmantif,

Setting cubeMaterial.interactive = true does the opposite of what you
think. From the Away3D Docs: "Indicates whether the material will pass
mouse interaction through to the movieclip"
So if you want the user to be able to interact with children of the
MovieMaterial's Sprite you must set it to true.

It gets tricky when you try to debug nested loaders. If you don't get
any errors and you don't see the loaded content then either the
loading is not happening or the material is not updating
(MovieMaterial.autoUpdate). Unless you have to do it with nested
loaders, I would recommend handling all the loading of assets via
something like Bulk-Loader, initialising the accordeon menus and then
passing it to a MovieMaterial.

ath,

J.

On Dec 29 2010, 12:19 am, northmantif <[email protected]> wrote:
> Hello!
> In a nutshell:
> 1. Can I load .swf as MovieMaterial which contains Loaders and
> URLLoaders to load its data first?
> 2. Can I use .swfs with nested movieClips as MovieMaterials?
> 3. Can I use interactivity used in that .swf in the away3d scene?
> (quess no)
>
> Explanation of the problem:
> On my scene I have a Cube(actually cuboid), and have .swf attached as
> MovieMaterial to front side. Well, .swf is an accordion menu and loads
> well to cube's front side, I can see the main graphics, but this .swf
> has main movieClip with many others mcs inside (every accordion tab is
> inside the main accordionMc, and has two frames with this.stop() to
> avoid problems away3D can generate).Those nested movieClips  doesn't
> appear on the stage. To be more messy, that content of every single
> nested accordion movieClip( accordionComponent.accordion1tab,
> accordionComponent.accordion2tab etc...) loads via loader(images) and
> before this happens,
> setup.xml with paths to the images is loaded, and finally that .swf
> has masks itself, and I dont know if that has any impact to whole
> thing ( In flash IDE playing with .z property and making any 3d
> rotation or so, brokes masks - flash doesnt support them in that
> case).
> In fact I do not even know if away3D can handle such .swfs. If I move
> setup.xml file to unseen (by swf) location I even don't see any
> IOError from Flash Player.
> And is there a chance to move interactivity from this loaded swf
> ( clicking on tabs of accordion to shift them) in the away3d scene, or
> to address it somehow from main class? I know I could make
> cubeMaterial.interactive = true, but I think It would obviously treat
> the face of the cube as a whole, so it could not be possible to click
> on each specific accordion's tab.
> Thanks for ideas:)

Reply via email to