• home
  • forum
  • my
  • kt
  • download
  • Text Scroller in Flash MX 2004

    Author: 2007-06-12 12:36:57 From:

    Picture 1

    Step Start off by starting a new movie: File>New. Then go to Modify>Movie and change the width and height to whatever your prefference might be. The one I'm making is Width: 550 Height: 400. Then create the up and down arrows as it is on the left. Then select the Up Arrow and choose Insert>Convert to Symbol.Name the up arrow, "Arrow 1" and the bottom arrow, "Arrow 2", both as behavior button.


    Picture 2
    Step Alright, next you want to Start a new layer and call it "Text". Then create a new blank keyframe in the first four frames by clicking on each frame and selecting Insert>Blank Keyframe. You also want to extend the frames of the arrow layer by right clicking on the fourth frame in the tipline and selecting Insert Frame so it looks like the figure to the left.


    Picture 3
    Step Right Click on the first frame on the "Text" layer in the timeline and select Actions. Copy and paste the following line:
    loadVariablesNum ("./text.txt", 0);
    where text.txt is the text or HTML file you want to call. (You must keep the ./ however). Remember your text file needs to begin with "text=".

    Go back to the timeline and rightclick the second frame on the "Text" layer and select Actions. On this frame Copy-Paste the following lines:
    if (text ne "") {
        gotoAndStop ("end");
    }
    Do the same for the third frame with the following line:
    gotoAndPlay ("load");
    And finally have the fourth and last frame say:
    stop ();


    Picture 4
    Step Alright, on the second frame in the timeline on the "Text" layer, go to the Frame box and name it "load" as it is displayed on the figure on the left. Do the same thing for the fourth frame, except name is "end".


    Picture 5


    Picture 6


    Picture 7


    Picture 8


    discuss this topic to forum

    relation tutorial

    No relevant information

    Category

      3D (20)
      Math Physics (14)
      3rd Party (5)
      Navigation (60)
      Actionscripting (26)
      Optimization (16)
      Animation (32)
      Projector (9)
      Audio (46)
      Special Effects (112)
      Backend (25)
      Text Effects (65)
      Drawing (18)
      Tips and Techniques (41)
      Dynamic Content (25)
      Tricks (6)
      Games (66)
      Utilities (19)
      Getting Started (71)
      Video (10)
      Interactivity (21)
      Web Design (22)

    New

    Hot