• home
  • forum
  • my
  • kt
  • download
  • Creating scroll text

    Author: 2007-06-12 10:30:57 From:

    1. Launch Flash Designer and choose "Blank document" from the startup screen.
    2. Choose "HTML Text tool" and draw a rectangle to create blank HTML text object. This will be the text to scroll.

    3. Type some text in the "HTML Text" edit dialog:

    4. Create scroll button. Choose "Button tool" and draw a button under the text.

    5. Rename the button. After the button appears choose "Item" > "Edit Properties". Change button text to "Down".

    6. Find out what is the name of HTML text. Select HTML text object and choose "Item" > "Placement Properties". Make sure the item name is "HTMLText1". If it's not change it to "HTMLText1" and click OK.

    7. Specify the action script code to execute when the button is pressed. Select "Down" button and choose "Item" > "Actions" > "On Click". Select "ActionScript", type the following code and click OK:

    8. You have to initialize HTMLText1.scroll value. Choose "Frame" > "ActionScript", type the following code and click OK. The code is execute before the frame is displayed.

    9. Change the frame to static so the animation will not loop. Change "Delay" value to "Stop"

    Now you can press F9 to preview the document in Flash player. Click "Down" button to scroll the text.

    Hit "Alt+F4" to close preview. Create antoher button to allow scrolling up. Draw the button using "Button" tool. Use the following actionscript for button's "On Click" action:

    HTMLText1.scroll = HTMLText1.scroll - 1;

    To export Flash file choose "File" > "Export Flash SWF File". Type the file name and click OK. To insert Flash in your web page choose "File" > "View HTML Code". Select entire HTML code, right click mouse button and choose "Copy" from the popup menu. Click Close. Paste the code to your HTML page.

    Download Flash Designer source project: t1001.zip (1kb)

    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