View Full Version : how to scroll images and videos?
iflashyou
03-23-2006, 03:31 AM
i know how to make a scrolling text, but how do you insert images and videos into the scrolling text?
guiltfilter
03-24-2006, 01:20 AM
You would do this by loading html into your scrolling TextField. Have your html file (My_Content.html) and your image (My_Image.jpg) in the same directory as your swf file.Your My_Content.html code might be:
<p>An image can be inserted into a text field.</p>
<p>Here is the image.</p>
<p><img src="My_Image.jpg" width="150" height="100" border="0"></p>
<p>Here is my footer text.</p>
Your actionscript on frame 1 of your swf:
this.createTextField("myArticle", this.getNextHighestDepth(), 50, 50, 200, 200);
myArticle.multiline = true;
myArticle.wordWrap = true;
myArticle.html = true;
myArticle.condenseWhite = true;
var myArticleContent:LoadVars = new LoadVars();
myArticleContent.onData = function(myHTMLData:String):Void {
myArticle.htmlText = myHTMLData;
};
myArticleContent.load("My_Content.html");
I have tested and it works fine.
You will have to create the scrolling on the text field yerself.
Weevil4555
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.