FORUMS: list search recent posts

dynamic text + XML

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
dynamic text + XML
on Jun 20, 2007 at 4:18:33 am

Hi, I'm building a flash video gallery using an XML list. I need to make a piece of dynamic text that reflects the currently playing video clip's name for a "Now Playing" text. I have successfully made labels for each thumbnail in the list component using XML, but can't figure this one out. Anyone?


Return to posts index

Sher Ali
Re: dynamic text + XML
on Jun 20, 2007 at 8:35:06 pm

If you have managed to populate a list from the xml data source and if clicking an item in the list plays the selected video then it should be very easy to display the video title in the dynamic text field. Just make a dynamic text field either just placing a text field on the stage using the text tool or create through actionscript using the createTextField() method.

and then just refer to the text field and set its text value to the selected video title.

let say the video_title contains the title for the selected video:

video_title_text_field.text = video_title;

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved