Solved

LoadMovie

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The goal of the tutorial is to teach the user how to how to record live broadcast.
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.

760 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

19 Experts available now in Live!

Get 1:1 Help Now