dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Too easy but I can't figure it out - trace

Hybrid View

  1. #1
    Member
    Join Date
    Jul 2002
    Posts
    72
    Hello,

    I'm very new to flash but what seems to be the easiest of things I can't figure out.

    I've created buttons before but I can't get this one to work - maybe the issue is how I created the variable. I just don't know.

    In the first frame of the movie I declared a variable.
    _root.servsub=1;

    In the second frame, I created a button with the following script

    on (press) {
    trace(_root.servsub);
    }

  2. #2
    Senior Member
    Join Date
    Apr 2002
    Posts
    682
    It may be because you have the _root path there. Try:

    servsub=1



    on (press) {
    trace(servsub);
    }

  3. #3
    Member
    Join Date
    Jul 2002
    Posts
    72
    No luck - I'd be happy to send you the FLA.

  4. #4
    Senior Member
    Join Date
    Apr 2002
    Posts
    682
    sure, send it to:
    aspirin99@hotmail.com

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