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
KoolMoves Moderator
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.
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
KoolMoves Moderator
if you put the contentpane on the stage in the main timeline you just contentpane1.getPage() is all you need no mc1 reference.
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
KoolMoves Moderator
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
Forum Rules
Click Here to Expand Forum to Full Width