A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: button

Hybrid View

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    2

    button

    Hello
    Well i've gotts prob here..maybe couz i dont know flash very much..i've got 4 buttons..if i click anyone of them diff msgs get displayed on the bottom of my page..now what i've done is using the down part of the button..I want that once 1 button is clicked the msg should remain there until the next button is clicked..each & every button has diff msgs to b displayed..
    deeku

  2. #2
    Left-Handed Flash User mickbrit55's Avatar
    Join Date
    Nov 2003
    Location
    NJ USA
    Posts
    1,375
    Hiya

    Hard to tell without seeing it. Can you upload the fla here? Or send it to me email?

    Mick

  3. #3
    See-n-reMember azwaldo's Avatar
    Join Date
    Mar 2003
    Location
    Sonoran Desert
    Posts
    745
    Hi deeku,

    Use a dynamic text box for the display of the msg. Assign the variable for the dynamic text box to something like myText. In each button you simply change the value of myText. If you want something to display at the start of the movie - even before the user clicks a btn - just initialize the variable in frame 1
    ( myText = "Start-up msg"; )

    Info in this page should help.
    __azwaldo__

  4. #4
    See-n-reMember azwaldo's Avatar
    Join Date
    Mar 2003
    Location
    Sonoran Desert
    Posts
    745

    Check it out...

    Here is an example .fla ('dynTextBtns' - attachment) to demonstrate the use of a variable and dynamic text to change a message that stays until the next button is pressed.

    Download the .fla, open it in Flash, and then select Test Movie [ ctrl-enter ] to try it out. Then, in the .fla, click on the text box to select it. In the text options panel (Flash5) or in the properties panel (FlashMX), you'll find that "myText" has been entered as the variable for the text box.
    Last edited by azwaldo; 04-03-2004 at 02:58 AM.
    __azwaldo__

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center