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!

loading imaegs dynamically fro mthe server

Status
Not open for further replies.

krowden

Programmer
Jul 30, 2004
2
US
I'm new to Flash...

I create a movie
I add a button and insert a movie clip using a static GIF - no problem

I want the user to click the button image and have the GIF replaced by another one that is loaded from the webserver - the rest of the movie (text etc) stays as is.

I tried:
on (release) {
btnPlate.imgPlate.loadMovie("plate2.gif");
some_display_text = some_display_text + " done";
}

...the button code does get executed (the display text is updated) but the image isn't updated. Any ideas?

Many thanks, Kim
 
Thanks much - but even if I change the file to a .JPG it doesn't work.

If I use:
loadMovie("plate2.jpg", 0);
it will overwrite my entire movie with the new image - but all I want is the image in the button to be replaced:
btnPlate.imgPlate.loadMovie("plate2.jpg");
It does nothing...

-Kim
 
If it works in the main movie, logically it should also work elsewhere... You must have a path problem? Are you sure about those instance names? And did you try it with _root?

_root.btnPlate.imgPlate.loadMovie("plate2.jpg");
 
oldnewbie,

Why is it that Flash can not load gif's dynamically?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top