Skip to main content
Participating Frequently
March 30, 2008
Question

Problems with photo in movieclip

  • March 30, 2008
  • 3 replies
  • 464 views
Hello everyone,

I'm working on a mobile application with Flash Lite. I want to load some photos into a movieclip.
I use a SQL database and one field is called 'photo1_huis'. The URL in that field is http://www.eventeffects.nl/FundaMobile/1/foto1_huis.jpg

With flash and a php file i read the input from the database and display it in my application.

To load a photo into a movieclip i use this code (see attachement).

I can display the photo in the current frame and that works....but how can i use that same movieclip into another frame without reloading the image in the application again?

Greetz,
Jeroen
This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
March 31, 2008
is there any frame on your timeline where the original foto1_huis instance does not exist?
kglad
Community Expert
Community Expert
March 30, 2008
foto1_huis must continuously exist (ie, at no time do you apply removeMovieClip() or unloadMovie() to it or one of its ancestors) from the time it's a load target up to the time you no longer need to use it (and the loaded object).
Participating Frequently
March 30, 2008
I don't use the unload or remove function at all. I use the stop(); function at the end of each frame. Could that be a mistake?

I added the whole download code.

foto1_huis.loadMovie ....etc is at the bottom.

I made a movie clip called 'foto1_huis' and the instance of that movieclip is also called 'foto1_huis'.
I can use all the other variables in the whole application except the foto1_huis movieclip.

I really don't know how to fix this.
kglad
Community Expert
Community Expert
March 30, 2008
as long as foto1_huis continues to exist, you can make it visible on-stage when needed. or just reload it. it will be retrieved from the user's browser cache after first-load and so will not be downloaded again.
Participating Frequently
March 30, 2008
The application consists of 1 'Download' frame. This frame includes some ActionScript which downloads everything. When everything was downloaded I locked my firewall and clicked on 'next' to go to the next frame wich contains the movieclip foto1_huis but the photo didn't load.

So when I place the movie clip into another frame it still needs a internet connection it seems.
When I use the .loadMovie code on the download frame......what kind of code do I need to use to view that photo on another frame?

The whole projectfile is here:

http://www.eventeffects.nl/FundaMobile/


it is in Dutch. The download frame is called 'Downloaden' and the photo frame is called 'Foto's Huis'.

I hope someone can help because I need to download everything in 1 frame and show it on some other frames.
Thanks for the reply though.
Participating Frequently
March 30, 2008
Oh, when running this program enter '1' in the huiscode field. Just klik 'Volgende' and 'Akkoord' to go further.