Ah, i see what you are trying to do now!

The CoverFlow component dispatches the following mouse events for each
> Cover: over, out and down. So I thought it maybe possible to setup a
> function in the main application which positions and scale the
> CoverInformation (UIComponent) in the exact position of the selected
> Cover.
>

this is probably the simplest solution, if you grab screenvertex information
for the selected cover, you can gather enough to know what posiiton and
scale to use on the overlay. This has the disadvantage of not working on
anything that isn't directly facing the camera, so component overlays would
have to be disabled on all non-selected coverflow items

Another thing I tried a few days back, was using the using the
> MovieClipSprite class to store the text etc and it came out really
> clear but I had problems getting the correct scaling! the positioning
> was OK though.
>

someone else reported problems with scaling movieclipsprites a few days ago
- will try and look into that


Rob

On Thu, Feb 5, 2009 at 1:45 PM, FlawedKid <[email protected]> wrote:

>
> Thanks for the advice Rob!
>
> What you said makes sense although the part about "flex components are
> tricky to integrate into a 3d scene" has me a little confused. Let me
> try and rephrase the ideas mentioned in my initial post.
>
> At the moment my application is structured like this:
>
> Application ->
> -------------> CoverFlowAnimator ->
> -------------> CoverFlowLayout ->
> -------------> CoverFlow ->
> --------------------------> Cover (Item Renderer)
>
> Here is a brief explanation of what does what.
> The CoverFlow component extends UIComponent and contains the VIEW,
> CAMERA and SCENE. The CoverFlowAnimator and CoverFlowLayout are
> attached to the CoverFlow component by reference. The
> CoverFlowAnimator controls the camera movements, position and add()
> remove() effects. The CoverFlowLayout is used for measuring the
> component, positioning items, angles and invoking animator methods.
> The Cover is a custom class used as an item renderer for each item in
> the CoverFlow components data provider.
>
> What I thought maybe a good solution as far as performance and ease of
> use is concerned, was to create a custom UIComponent (so it can
> contain any other flex components, labels, combo's etc) and have it
> outside of the CoverFlow component completely so the applications
> structure would look something like.
>
> Application ->
> -------------> CoverFlowAnimator ->
> -------------> CoverFlowLayout ->
> -------------> CoverInformation ->
> -------------> CoverFlow ->
> --------------------------> Cover (Item Renderer)
>
> The CoverFlow component dispatches the following mouse events for each
> Cover: over, out and down. So I thought it maybe possible to setup a
> function in the main application which positions and scale the
> CoverInformation (UIComponent) in the exact position of the selected
> Cover.
>
> Another thing I tried a few days back, was using the using the
> MovieClipSprite class to store the text etc and it came out really
> clear but I had problems getting the correct scaling! the positioning
> was OK though.
>
>


-- 
Rob Bateman
Flash Development & Consultancy

[email protected]
www.infiniteturtles.co.uk
www.away3d.com

Reply via email to