« Return to Thread: interactivity and VirtualMouse coordinates with MC's set off stage

interactivity and VirtualMouse coordinates with MC's set off stage

by John Grden-2 :: Rate this Message:

Reply to Author | View in Thread

sorry for the wordy subject line, but i wanted to not waste anyone's time who didn't really care about this ;)

ok, well, I was doing some tests with using UI components as there's been some questions about using the etc.  One of the issues to tackle is that the movieclip you use for the material has to be on stage somewhere or else the components will never light up.  So, there are a few ways to do this:

1.  put on stage and set blendMode = ERASE.  This works, but of course, your clip is still interactive to 2D interaction since the movieclip is at 0,0 on stage
2.  hide / show the clip when you need to get objects under point for VirtualMouse - the problem with this is, you can see that the flash player is still redrawing any region of a hidden clip that is animating despite the parent visibility being set to false.  I haven't confirmed it with adobe, but seems that means there's some rendering consideration for that area of the screen and well, that sucks.
3.  coordinate conversion using localToLocal or globalToLocal or localToGlobal.  CPU intensive - not terribly, but more so that option 4
4.  move target container to 0,0, get objects under point, move back to original coordinates.

in running a side by side speed test, moving the clip and getting the array of objects was faster than coordinate conversion AND the coordinate conversion seemed to never work quite right with UI components or some other objects i was testing with.  Even if it had worked properly, moving the object first, then back is faster, so I'm inclined to push this out for people to try.

can anyone see any glaring issue with this method that i'm totally overlooking?

Thanks for your help,

John

PS> I have a blog post I'm working on with regards to using UI components in movie materials, i'll ping the list later on about that

--
[ JPG ]

_______________________________________________
Papervision3D mailing list
Papervision3D@...
http://osflash.org/mailman/listinfo/papervision3d_osflash.org

 « Return to Thread: interactivity and VirtualMouse coordinates with MC's set off stage

LightInTheBox - Buy quality products at wholesale price!