Posted on 2003-11-20
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?

Question by:aj10101

Expert Comment

ID: 9791536
post your code
LVL 39

Accepted Solution

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) {

Expert Comment

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.

Author Comment

ID: 9798393
Thanks  blue-genie,

Worked like a charm!

LVL 39

Expert Comment

ID: 9808804
:-) good stuff.


Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Embedded Video Download (Flash) 3 1,157
Rotating Adobe pdf document 4 311
how can flash builder 4.X version make use of java 8 5 309
Install adobe flash plugin for Firefox win 7 9 70
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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.

776 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