View Full Version : button inside MC problem
bearsark86
09-14-2005, 03:22 AM
ok i hav a button inside a MC and u can simply call on tt button from ur main a juz by puttin:
this.urMCInstanceName.urButtonInstanceName.onRollO ver = function() {
trace ("pressed!!!");
}
but right now for some reason it cant n doesn return the trace output..
does ny1 knoe e reason why?.. :(
oldnewbie
09-14-2005, 03:37 AM
Are both the movie clip and button present on stage when defining the handler?
bearsark86
09-14-2005, 03:51 AM
yes they are...
e button inside e MC is motion tweened and in e rollover frame inside e button is act a MC..i suspect that its must b 1 of the above reasons...
i tried puttin an event handler on e button itself and it surprisingly works...
im juz curiuous 2 knoe why i cant make it work from main a... :)
bearsark86
09-14-2005, 06:57 AM
ok im juz gonna attach a zip file so tt ny1 can take a look..i got it from 1 of the threads here..plz reply n explain if u manage find e problem or get it 2 work... :) :) :)
nyway i cant seem 2 upload e file..ill do it later :mad:
oldnewbie
09-14-2005, 07:01 AM
I'm on MX only... So if you do manage to upload your zipped .fla, make sure it's in a MX only format, not MX2004.
You'd have a better chance of getting an answer if your .fla was in a MX only format, and zipped up.
You would have to save a copy of your MX2004 .fla, (using Save as...) and changing the Document type to MX only in the Save as... window.
Rossman
09-14-2005, 07:10 AM
He'd also have a better chance if he typed like he was on a proper keyboard (you know, *english*), and not a mobile phone. Lordy, those posts give me a headache just reading them.
bearsark86
09-14-2005, 07:30 AM
aha i guess some of you guys are just TOO old for this kind of crap..lol
ok heres the file.hope the above comment actually insinuated anyone who feels so...hehe :D :D :D
Rossman
09-14-2005, 08:32 AM
It's all about the way you have constructed the movie, by the looks of it.
Have a look at the corrected, attached file.
Also - it has nothing to do with age, it has to do with being able to communicate like a normal human being. Maybe you think it's cool or whatever, but typing like that make you look like a retard.
bearsark86
09-14-2005, 08:54 AM
hmmm...so in conclusion what you are saying is that in some cases theres no other way but to put the event handler on the button itself...ok
thanks eveyone for your help!!! :)
btw Rossman, 2 us its e total opposite ;)
to each his own...
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.