Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EMERGENCY!!! components and button commands

Status
Not open for further replies.

brainpudding

Technical User
Sep 29, 2002
84
US
this is my problem i have a compnent button and i have made the entire site already, but the button commands arent working

mybutton.onRelease = function(){
DO WHAT EVER;
}

If i make a regualr button that works but not on these components WHY!?

THANKS
 
A little more info maybe? A link? A .fla? Something more than just this! You remind me of an instructor I once new!

Regards,

cubalibre2.gif
 
its the pill button in the common libraries

i want it to load a movie into a holder on the main time line. it does nothing when i put that code on it thou

but if i make a button from scratch and put the same code for it it works fine ... i have to have this thing finished tonight AHHH!!
 
Can you post a link to your .fla, or e-mail it to me?
Hit my handle for an adddress. Zip it up if you do send it to me.

Regards,

cubalibre2.gif
 
With Hotmail it won't work! Can you upload it to your server and provide a link to download it from there?

Regards,

cubalibre2.gif
 
ok here is what i have i have a main flash file i used it to make a EXE for a CD. once the EXE starts i have external .swf files i want it to load into a empty movie clip named holder when a user click a button. I used the pill button in the common libraries. this is the code i put on the button

btngb.onRelease = function(){
loadMovie("swf/bg_products.swf",holder);
}

...but it dosent work .. it classifies it as a movie .. and if you change it to a button it messes it up (visualy)

but if i make a homemade button and place the same code on it it works fine.
 
And you have given your pill button the instance name of "btngb"?

Regards,

cubalibre2.gif
 
ok i changes it to onMouseDown and it works but now i got a new problem the code inside the bg_products on works fine by itself but whne its loaded into the other one it does nothing ... this isint my night
 
I've begun to hate those poor commented components as much as I hate those who recommend them as a magical solution to any problem.

That said a component is a movie clip, so get why it's now working? There's another way of doing it, but e-mail me a request and I'll tell you what it is.

As for your new problem, what is it exactly? If I press the thumbnails I do get a trace I've slapped in there, so those thumbnail buttons are working for me!

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top