Skip to main content
Participating Frequently
March 7, 2008
Question

Loading a Picture onto the Scene

  • March 7, 2008
  • 1 reply
  • 223 views
I am trying to load a picture onto the scene by using the following action script commands:

on (release) {
loadMovie("Kjole1.jpg", ramme);
}

Nothing happens when the button is released, so it doesn't work.
"Kjole1.jpg" is a picture file in the same directory. "ramme" is a squere on the scene converted to a movie clip symbol. When I check, I get the message "The script contains no errors", but nothing happens anyway.

What is the problem?
This topic has been closed for replies.

1 reply

Inspiring
March 7, 2008
>>"ramme" is a squere on the scene converted to a movie clip symbol.

If the movieClip has an instance name of ramme and your jpeg is indeed in
the same folder as the swf, this should work.

--
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


Participating Frequently
March 10, 2008
Thanks for your answer!
Everything seems fine - excactly as the book tells, but nothing happens - no picture is loaded. I have only tried it on a network computer. Can that be the problem? Or are there any kind of variabel that should be defined?

Is there an other way of doing this? Is it possible to put all the pictures on a seperate scene, frame by frame, and load the picture from that scene/frame? If possible - what kind of command should I use?