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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is it possible to load movies/images in a dummy clip inside a button? 1

Status
Not open for further replies.

LucBloom

Programmer
Mar 7, 2003
1
NL
I do a lot of localization, and i don't want all the possible languages inside my .swf. Also there are occasions that only a .jpg is available.

Is there a way to achieve the result you'd expect from
Code:
this.myButton.createEmptyMovieClip("dummy", 1111);
this.myButton.dummy.loadMovie("images/" + langage + "/myImage.jpg");

Luc Bloom

PS: it's good to be back on Tek-Tips.com
 
You can always use a movieclip as your button though - this means you can target it's timeline as normal and in MX and above you can attach button-type events to mcs:

Code:
this.myMovieClipButton.onrelease=function(){
//do stuff
}
 
Correction:

Code:
this.myMovieClipButton.onRelease=function(){
//do stuff
}

Capitalisation is important in MX2004...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top