flash news scroller
flash news scroller HOME News scroller using external text file FLASH TUTORIALS News scroller using external text file ARTICLES News scroller using external text file SEARCH

 

flash news scroller
 
 
 

 

flash news scroller

News scroller using external text file

 

 

 

News scroller is important for media websites and even others. This news scroller can be accomplished via javascript also But javascripts didn't gives flashy and smart look. So making the news scroller in flash is the good choice.

This flash news scoller will load news text from an external text file. So updating the news text is very simple and only need to change the text file.

Steps:

  • Open a new flash document of size 360x90 pixels with a background colour of white.
  • Name the first layer as "news" and place a dynamic text box with multiple line type which you can change this at properties window.
  • By selecting the text box press F8 and conert it in to a movie clip. And double click the movie clip.
  • Create a new layer over the existing layer and name as "action". Name the below layer as "text".
  • Select the text box at " text " layer. Open the properties window and give instance name as " content " and var name as " txt ".
  • By selecting the "action" layer open the actions panel and paste the below code.

content.autoSize = "center"
message = new LoadVars()
message.onData = function(data){
txt = data
trace(data)
}
message.load("msg.txt")

  • Now get back to scene 1.
  • Create a new layer over " news " and name it as " mask " in which the fading effect have to be created.
  • Create a rectangle box with linear color fill style of size 360x90 pixels, So it fully cover the document size.
  • Now set the color positions as shown below.
  • Alpha value for the two middle poiters should be at zero. Otherwise the text cannot seen.

 

linear color setting

 

 

Amazing Secret System Reveals How You Can Easily Generate TONS Of FREE Traffic, Signups And Sales On Complete Autopilot!

flash buttons and navigations

Make Upto $3,500 and More Weekly with Google & Clickbank Using a Simple System Which I Will Perform for You For $7 Only

load external swf files

Police & Government Cars from $200. Get access to nationwide seized database. All makes and models!

free macromedia Flash 8 tutorials

   
 

 

  • Create a new layer with " header " and type the word " TODAY'S NEWS " at top left corner.
  • On the layer " news " select 100th frame and press F6. Now move up the movie clip so it does not visible at the window.
  • Now select the first frame of the same layer, right click your mouse and select " create motion tween ".
  • Don't forget to extend the frames of the other two layers upto 100.
  • The last thing you have to do is make your text file with the file name " msg.txt "
  • Fill contents you want to show on your news scroller and make sure to place this file at the directory where web page with this scroller present.

Download source

   
 
  flash news scroller BACK
 

 

   

 
[ 1 ]
Print Page

Home | Contact Us | Recommended Links

© 2007 EYESITES MEDIA