Solved

LoadMovie

Posted on 2003-11-20
5
442 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

687 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