Professional Web Applications Themes

tricky disable button problem - Macromedia Flash Actionscript

Ok, I need to know a little actionscript and hope you will be able to help - I have always found replies here. I have my main movie with home, contact and links buttons (in fact they are movie clips with buttons in them - I intend to animate these buttons eventually) - my home button movie clip has an instance name of home_mc and the button inside this has an instance name of home_button These buttons have simple actionscript to load external swf files at level 1 What i need is some actionscript code that I can put on ...

  1. #1

    Default tricky disable button problem

    Ok, I need to know a little actionscript and hope you will be able to help - I
    have always found replies here.

    I have my main movie with home, contact and links buttons (in fact they are
    movie clips with buttons in them - I intend to animate these buttons
    eventually) - my home button movie clip has an instance name of home_mc and the
    button inside this has an instance name of home_button

    These buttons have simple actionscript to load external swf files at level 1

    What i need is some actionscript code that I can put on my home fla that tells
    the home button in my main FLA to disable. This will stop the home movie
    reloading if I press the button again - you see, the home movie loads itself
    with actionscript at the final frame of my main fla and I don't want it to load
    again if I press the home button. Am I making sense?

    In fact I have uploaded a file to my server that contains some very simple fla
    files with these buttons and associated fla files. They were done for another
    person on the forum but I got no reply.
    Many thanks. I have great confidence in this forum and await your reply.

    [url]http://www.galaxymusic.co.uk/oldnewbie.html[/url]

    sid vishus Guest

  2. #2

    Default Re: tricky disable button problem

    to disable home_button that's in home_mc from the _root timeline you can use:

    home_mc.home_button.enabled=0;
    kglad Guest

Similar Threads

  1. A tricky query problem
    By quiero mas in forum Coldfusion Database Access
    Replies: 2
    Last Post: November 12th, 07:17 AM
  2. Tricky SOAP input problem; need help with cfinvokesyntax
    By afrinl in forum Coldfusion - Advanced Techniques
    Replies: 3
    Last Post: April 6th, 02:36 AM
  3. Tricky problem with WebControl vs. Panel
    By Ovidiu Birladeanu via .NET 247 in forum ASP.NET Building Controls
    Replies: 1
    Last Post: September 20th, 10:02 AM
  4. Tricky problem with classes!
    By Lars Plessmann in forum PHP Development
    Replies: 13
    Last Post: May 15th, 12:08 PM
  5. Disable the tab button
    By Thyrecktorr webforumsuser@macromedia.com in forum Macromedia Director Basics
    Replies: 1
    Last Post: November 3rd, 01:12 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