[Papervision3D] is it possible loading an interactive swf file into a plane papervision 2.0
Dwayne Neckles
dwayneneckles at hotmail.com
Fri May 2 05:40:13 PDT 2008
Micheal I figured out what you were saying...
Now if I have a onClick for the cube
and then an onClick for a button inside the plane..
is there anyway to say
not set off the onclick for the plane and just the onclick only?
(The cube will FLIP to the other side, but i want it to NOT flip when the
button ( in the texture) is flipped
On Fri, May 2, 2008 at 8:08 AM, Dwayne Neckles <dwayneneckles at hotmail.com>
wrote:
> Ok so I dont need to mess with ISM and set facelevel mode to true?
>
>
> On Fri, May 2, 2008 at 7:01 AM, Michael Cronin <mxc at moozeek.com> wrote:
>
> > Hi,
> > The button works fine, just add an event listener and all is well.
> > It is the built in button rollover which is not working and I never use
> > that so I can't help you there.
> > But I imagine its a path problem in the button base class so either
> > check out the base code or as I prefer roll-your-own
> >
> > Michael
> >
> > On May 2, 2008, at 2:46 AM, Dwayne Neckles wrote:
> >
> > Out of the box? Really?
> > Anyone mind taking a look at my code..
> > by download or reading below
> > dnecklesportfolio.com/transfer/coverflow/LoadSWFDwayne.zip
> >
> > viewport = new Viewport3D(550, 400, false, true);
> >
> > addChild(viewport);
> >
> > //instantiates a Scene3D instance
> > scene = new Scene3D();
> >
> > //instantiates a Camera3D instance
> > camera = new Camera3D();
> >
> > //renderer draws the scene to the stage
> > renderer = new BasicRenderEngine();
> >
> >
> > l.load(new URLRequest("loadMe.swf"));
> > frontReflectionClip.addChild(l);
> >
> > l.contentLoaderInfo.addEventListener( Event.COMPLETE, finish
> > );
> >
> >
> >
> >
> > function finish(e:Event):void
> > {
> >
> > movieAssetMaterial = new MovieMaterial(frontReflectionClip,
> > true);
> > movieAssetMaterial.smooth = true;
> > movieAssetMaterial.animated = true;
> > movieAssetMaterial.interactive = true;
> > movieAssetMaterial.doubleSided = false
> >
> > primitive1 = new Plane(movieAssetMaterial, 500, 500, 3,
> > 3);
> > scene.addChild(primitive1);
> >
> > //set up enterFrame event
> > addEventListener(Event.ENTER_FRAME, onEnterFrame);
> >
> > }
> >
> > function onEnterFrame(e:Event):void
> > {
> > primitive1.rotationY += 2;
> > renderer.renderScene(scene, camera, viewport);
> > }
> >
> >
> >
> > On Thu, May 1, 2008 at 8:23 PM, Ralph Hauwert <r.hauwert at gmail.com>
> > wrote:
> >
> > > Should work out of the box.
> > > Ralph.
> > >
> > > On 2 mei 2008, at 01:34, Dwayne Neckles wrote:
> > >
> > > Does anyone know?
> > >
> > > Just to be clear
> > >
> > > and interactive swf has its own buttons and interactive...
> > > I have already tested it out and so far it doesnt work, is there
> > > something im doing wrong.. OR
> > >
> > > OR
> > >
> > > is just not possible..
> > >
> > > Thanks alot..
> > >
> > > Dwayne
> > >
> > > On Thu, May 1, 2008 at 7:04 PM, dwayneneckles <
> > > dwayneneckles at hotmail.com> wrote:
> > >
> > > >
> > > > ** Comes back up for air **
> > > > ** Finds another related post? ***
> > > >
> > > > tpokrajcic - Can I do this even if my project isnt flex?
> > > >
> > > > ** Discouraged, wonders if PV really cant allowed loaded swf
> > > > interactivity
> > > > ****
> > > > ** Believes in the team and keeps digging Nabble Nabble***
> > > >
> > > >
> > > > try this:
> > > >
> > > > - export fla as swc, not swf (don't forget to select "export for
> > > > actionscript" for the symbol you need)
> > > > - make sure swc is included in yout flex project path
> > > > - use this code:
> > > >
> > > > var mc:MovieClip=new MySymbol();
> > > > var cm:MovieMaterial = new MovieMaterial(mc);
> > > >
> > > > cheers,
> > > > tomislav
> > > >
> > > >
> > > > charlierun wrote:
> > > > >
> > > > >
> > > > > Hi richard I The MovieAssetMaterial class creates a texture from a
> > > > > MovieClip library symbol,which is not m case I want to use an
> > > > embeded swf
> > > > > I have done this with papervision 1.5 but I dont see what Im doing
> > > > wrong
> > > > > now.
> > > > > cheers
> > > > >
> > > > >
> > > >
> > > > --
> > > > View this message in context:
> > > > http://www.nabble.com/problem-loading-a-swf-file-into-a-plane-papervision-2.0-tp14927921p16995310.html
> > > > Sent from the Papervision3D mailing list archive at Nabble.com.
> > > >
> > > >
> > > > _______________________________________________
> > > > Papervision3D mailing list
> > > > Papervision3D at osflash.org
> > > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > > >
> > > >
> > > _______________________________________________
> > > Papervision3D mailing list
> > > Papervision3D at osflash.org
> > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >
> > >
> > >
> > > _______________________________________________
> > > Papervision3D mailing list
> > > Papervision3D at osflash.org
> > > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> > >
> > >
> > !DSPAM:918,481a660c96911888418203!
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
> > !DSPAM:918,481a660c96911888418203!
> >
> >
> >
> > _______________________________________________
> > Papervision3D mailing list
> > Papervision3D at osflash.org
> > http://osflash.org/mailman/listinfo/papervision3d_osflash.org
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080502/6a9242e6/attachment-0001.html
More information about the Papervision3D
mailing list