[Papervision3D] How to capture events from a MXLM component in a MovieMaterial?
Strange Loop Studios
info at strangeloopstudios.com
Thu Aug 6 03:06:37 PDT 2009
Hi Aaron,
It's as simple as this (in my experience). If you take Xero's demo and use
his custom components it is possible to receive rollovers and clicks no
matter how many planes you have in your scene because he doesn't use nested
components any deeper than 1 child. I have an updated version and can prove
this but when you change to using normal flex components which I assume most
would eventually want - it just doesn't work. If you have one component
everything works great but the moment you add more you lose pretty much all
the events except for top level button clicks - it's very weird!
I have tried porting Doug McCunes excellent component to PV2 but I just
can't suss it. However I have a new version that works in a very similar way
- i.e. bitmap draws all components and continuously updates their ui to a
plane and exactly like doug's example the only way I have been able to get
this to work is to overlay the actual component over the centre plane when
it's active. My concept works except it cannot be resized onced initialised
because the planes scale while the components don't - so an overlay looks
wrong. I have an idea how to fix this by sizing the components to match the
planes on enter frame and continuosly redrawing but I'm not completely sure
it's possible.
It would be great if between all of us we could get it done so if anyone has
any suggestions please let us know.
cheers
-----Original Message-----
From: papervision3d-bounces at osflash.org
[mailto:papervision3d-bounces at osflash.org] On Behalf Of aboteler
Sent: 05 August 2009 18:13
To: papervision3D at osflash.org
Subject: Re: [Papervision3D] How to capture events from a MXLM component in
a MovieMaterial?
Xero,
I took your example from
http://forum.papervision3d.org/viewtopic.php?f=14&t=30 and moved the Panel
and associated event handlers to a separate MXML file. From there, I
instantiated it in init3D and the events were not handled.
Thanks,
Aaron
--
View this message in context:
http://www.nabble.com/How-to-capture-events-from-a-MXLM-component-in-a-Movie
Material--tp24812045p24832488.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
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Papervision3D
mailing list