Solved

LoadMovie

Posted on 2003-11-20
5
437 Views
Last Modified: 2010-04-03
Dear Experts,

 I am currently using loadmovie() to show a jpg image in my project. I have 4 buttons in my project. Each button loads a jpg file into the movie. My problem is that for some reason I have to click on the button twice to get it to load the new jpg. When I click the first time the original jpg disappears. When I click again, the new jpg loads. What am I doing wrong?

AJ
0
Comment
Question by:aj10101
5 Comments
 
LVL 1

Expert Comment

by:text_problems
ID: 9791536
post your code
0
 
LVL 39

Accepted Solution

by:
blue-genie earned 500 total points
ID: 9795451
Hi, where are you loading your jpegs into?

if you want to load into an empty movieclip (in this case with instance name called "holder");

on (press) {
      loadMovie("goblin.jpg","holder");
}
0
 

Expert Comment

by:tutsamewasa
ID: 9796406
on (press) {
    unloadMovie "original.jpg");
    loadMovieNum ("newjpg");
}


this will do in one click.
or if can show your code it will be of more help.
0
 

Author Comment

by:aj10101
ID: 9798393
Thanks  blue-genie,

Worked like a charm!

AJ
0
 
LVL 39

Expert Comment

by:blue-genie
ID: 9808804
:-) good stuff.

blu
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now