Professional Web Applications Themes

Make a button load text into a scrolling text field? - Macromedia Flash Actionscript

Hello I've got a problem here and I hope some friendly soul out there would spare a minute to help me out... I'm creating a rather simple site and just for the fun of it I would like to do it in flash... The problem is as following. I've got a couple of buttons which schould only load text into a scrolling text field, how do I make them do that? I've figured out how to create the scrolling text field and the buttons, but now I'm stuck, I assume that you will need Action Scripting to make them load ...

  1. #1

    Default Make a button load text into a scrolling text field?

    Hello

    I've got a problem here and I hope some friendly soul out there would spare a minute to help me out...

    I'm creating a rather simple site and just for the fun of it I would like to do it in flash...

    The problem is as following.

    I've got a couple of buttons which schould only load text into a scrolling text field, how do I make them do that? I've figured out how to create the scrolling text field and the buttons, but now I'm stuck, I assume that you will need Action Scripting to make them load the text.. but since i'm new to flash I've got no idea how to link a button to do this, if someone could just give me an example on how this is done I'm sure I can figure it out.

    Thank you for your time...

    Best regards, SuicidalSanta


    ®SuicidalSanta® webforumsuser@macromedia.com Guest

  2. #2

    Default Re: Make a button load text into a scrolling text field?

    Hi,

    loadVariablesNumb("scrollText.txt",0);

    scrollText=the variable name u assigned to the variable section of the Dynamic Text Box........


    Take care and God Bless....
    [url]www.ymisitio.com[/url]




    MINGUITO webforumsuser@macromedia.com Guest

  3. #3

    Default Re: Make a button load text into a scrolling text field?

    Hi,

    Maybe I schould tell you that I'm using Flash MX 2004 Professional


    I can see in my help text here besides me that there is a difference (TechNote: 16142) or use this link to view it [url]http://www.macromedia.com/support/flash/ts/doents/scrolling_text_mx.htm[/url]

    I qote "In Macromedia Flash 5 and earlier, data from an external text source was loaded using the loadVariables command. The dynamic text field is given a variable name and the text file contains text that sets that variable name. for example, if the text field variable name is myText, the text file may look like this (spaces have been URL incoded):"

    myText=this%20is%20a%201lenghty%20variable.

    "Loading text into a dynamic text field in Flash MX is done differently. Text is an action script object, so a text field can have both a variable name and an instance name blah blah blah..."

    I guess you are wondering why I even asked if I already had the answer from above mentioned TechNote, But you see, that TechNote dosen't match with MX 2004 Professional it only matches for Flash MX (Not that I know what the difference is since I'm just a newb) if I follow it step by step it dosen't work either... maybe I schould just aquire an older version of flash...

    Best regards, SuicidalSanta (Denmark*)

    *funny looking country up north the size of a football field >;)


    ®SuicidalSanta® webforumsuser@macromedia.com Guest

Similar Threads

  1. Help: Text Field Color & Scrolling
    By Ocie in forum Macromedia Director Basics
    Replies: 1
    Last Post: February 18th, 09:34 AM
  2. load external text to dynamic text field in levels
    By GaiHo in forum Macromedia Flash Actionscript
    Replies: 0
    Last Post: February 10th, 01:29 AM
  3. Automatically highlight text in a text field using a button?
    By FlashAsh99 webforumsuser@macromedia.com in forum Macromedia Flash Actionscript
    Replies: 2
    Last Post: February 5th, 05:04 PM
  4. Load external text into scrolling text field
    By ®SuicidalSanta® webforumsuser@macromedia.com in forum Macromedia Flash Actionscript
    Replies: 1
    Last Post: January 27th, 03:41 PM
  5. Dynamic text in smooth scrolling text field - help
    By ROKKSTAR in forum Adobe Flash, Flex & Director
    Replies: 1
    Last Post: August 5th, 06:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139