A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Invisible Button?

  1. #1
    Senior Member
    Join Date
    Feb 2004
    Location
    Halifax, MA
    Posts
    205

    Invisible Button?

    Bret posted a program to show how to get the contentpane getPage() value into a text box. I am attaching it here.

    Examining the .fun file, I find a button that has important code. But for the life of me I can't figure out where it is or how it got there.

    I even changed the colors of the Over state to see if it would show up. Is this a virtual button or what? Why is it needed and how is it made?

    Thanks.
    Attached Files Attached Files

  2. #2
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    there is no button. if you mean the code

    onClipEvent(enterFrame){
    _root.txt1.text=contentpane1.getPage()
    }

    that is in mc2 well mc2 IS the contentpane. This is how it is when you use the GUI to place the contnet pane.

  3. #3
    Senior Member
    Join Date
    Feb 2004
    Location
    Halifax, MA
    Posts
    205
    Quote Originally Posted by blanius
    there is no button. if you mean the code....
    I mean the btn1 you can see in the code in this pic,

    (Maybe it was deleted during the coding and KM keeps it somehow?)

    But the important thing is that you have the contentpane in mc2. Mine is ijust added to frame 1 and when I make a button to read mc1.contentpane1.getPage() it comes back undefined. I am missing something about these levels, I think.
    Attached Images Attached Images

  4. #4
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    if you put the contentpane on the stage in the main timeline you just contentpane1.getPage() is all you need no mc1 reference.

  5. #5
    Senior Member
    Join Date
    Feb 2004
    Location
    Halifax, MA
    Posts
    205
    Quote Originally Posted by blanius
    if you put the contentpane on the stage in the main timeline you just contentpane1.getPage() is all you need no mc1 reference.
    Thanks, Bret.

    I finally got this running. I had to save the fun file and exit and reload it and now the txt1 updates properly.

    (Still not sure about that mystery button

  6. #6
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Jim did you look at the mp3 marker program I made? I could imagine a number ways you could use it in the audio thing you are doing.

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