Yeah, thanks for that!! I basically changed the text component to a label one, as it's a DisplayObject type, and it works fine!!
Cheers! --- In [email protected], "greg h" <[EMAIL PROTECTED]> wrote: > > K, > > Flex 2's default layout management is flat, just x and y coordinates. With > layout="horizontal" when you add a child it is laid out to the right (at a > greater x coordinate). With layout="vertical" when you add a child it is > laid out below (at a greater y coordinate). > > If I understand your question correctly, you would like to layer the text > above the video. Design environments often refer to this as a z-index or > z-order. Essentially a 3rd coordinate. In Flex this requires you using a > container specifying layout="absolute". When layout="absolute", the last > child added to the display list is on top. > > In your case I think this will mean adding both the VideoDisplay and a Label > or TextArea to a container providing layout="absolute". You can then set > the x and y coordinates of the text control overlapping the coordinates of > the VideoDisplay. Since the last child added to the display list is on top, > you would first add the VideoDisplay with your text control added last. > > Following are some notes from the training course: > Flex 2: Programming the Visual > Experience<http://www.adobe.com/support/training/instructor_led_curriculum/program_visual_experience.html> > > -- - - - - - > > Layering content using absolute layout > > Three Flex layout containers allow the use of absolute positioning: > > - Application container with the layout property set to absolute. > - Panel container with the layout property set to absolute. > - Canvas container only allows absolute positioning. > > You can create overlapping child components by setting your x and y > properties appropriately. > > If you have overlapping child components, the component MXML tag that is > lower in the code will appear on top of the components whose tags are higher > in the code. > > -- - - - - - > > Please post back if this helps. > > g > > On 9/22/06, kristian_wright2002 <[EMAIL PROTECTED]> wrote: > > > > I have an FLV video which I can play using the VideoDisplay component. > > I want to be able to interlace some text across this video when > > playing it (but not have it recorded on the video itself, so I can > > change it when required). > > > > I can't seem to see how this is done. Adding the text as a child of > > the VideoDisplay fails, as it's trying to add a DisplayObject, and not > > a string. > > > > This leads me to think that I'll have to create the text as a > > DisplayObject, but I'm not sure how... > > > > Any suggestions on how to achieve this? > > > > Cheers, > > K. > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

