Skip to main content
Participating Frequently
September 28, 2010
Question

how to show swf and videos in TLF Editor

  • September 28, 2010
  • 1 reply
  • 609 views

hey frnd,

is any sample thr to show swf and movie in TLF Editor like we can see image in it ?

thx in advanced,

abhishekchess1@gmail.com

This topic has been closed for replies.

1 reply

Inspiring
September 28, 2010

You would need to use InlineGraphicElement (ILG) to render a SWF and video into a textflow.  If you are going to embed a SWF into a texflow, you can use a <img> tag in your data and for its source property and assign it a reference or an url to the SWF.  Loading a SWF in the textflow is the same process as loading an image.  Here is more info:

http://help.adobe.com/en_US/flex/using/WS02f7d8d4857b1677-165a04e1126951a2d98-7ff4.html

I notice the second line in this article fails to mention about using ILG for SWFs, however it can.

Now in order to play video into a textflow, you will need to load a SWF that will act as a videoplayer, and assign the videoplayer a path to the video.  You can read up on how I did it here:

http://forums.adobe.com/thread/690126?tstart=30

You may need to insert a videoplayer in at runtime since TLF cant directly load a flv or f4v.  The alternative, is to have the SWF contain a hardcoded path that will load in the flv or f4v on its own.  The latter makes the SWF less reusable.