View Full Version : How do you target a button? is it even possible?
wesley
September 21st, 2001, 01:45 AM
Goodday yall,
I've been trying to target my buttons to hide in the duration when i load another movie. But it simply isn't workin... since last week. Is it even possible? I tried exporting the symbol, scripting it like this
on (release) {
setProperty (this, _visible, False);
}
but it just hides my entire movie (don't think it should have a global effect and i have no idea why it happens in my movie) and there's no way to recall and unhide the button thereafter it seems. So simply, is there a way? Appreciate all replies.
Many Thanks,
Wes
upuaut8
September 21st, 2001, 01:47 AM
Simply put, you cannot target a button. I would suggest as an alternative, that you place the button inside a movie clip, name the movie clip instance, and then target that instead.. should accomplish what you're after. :)
wesley
September 21st, 2001, 04:24 AM
Yo upuaut8, thank you pal!
That got it to work alright, though the hierachy's abit messy now :/ but I'm keeping this sweet advice for my next movie, thanks again! :D
kirupa
September 21st, 2001, 05:18 AM
A less messy way would be to create the button and lay it out on your stage. Then select the button and press the F8 key. Select Movie clip from the dialog box that appears. Your button is now a movie clip. You can view the button by right clicking on the movie clip and selecting Edit in Place.
I find that method much easier than creating a new movie clip, dragging and dropping the button into the center of the clip, and then placing the movie clip containing the button to the stage. Just a different approach to the same thing upuaut said ;)
upuaut8
September 21st, 2001, 06:49 AM
Me too. F8 is da bomb...
learn your short cut keys Flashers. it will save you time, and in the long run, save your wrists from cps
Mikeylkzt
September 21st, 2001, 10:10 AM
I have this same dilema that I posted in the ActionScript forum. Thoriphes is working on my code and Suprabeener gave some really cool insite as to how to accomplish this..check it out on the ActionScript forum under tellTarget/with title.
good luck.
upuaut8
September 22nd, 2001, 01:58 AM
yeah I saw that.. it's kind of like tageting a button from the back end. Interesting concept. I have to play with that a little.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.