Solved

problem with loadMovie() inside setInterval or onEnterFrame()

Posted on 2004-08-14
7
409 Views
Last Modified: 2008-03-06
Hello ;
I am trying to load external images inside an empty movie clip  . When I do that the picture keeps blinking. I think the problem has to do with timing. Can anyone help me to find a solution to make the loaded picture not blinking.

the code looks something like this:

inside the pic movie clip :
myClip.loadMovie("logo.jpg");

in the main scene :

function redraw () {
....
someMovieClip.attachMovie("pic", name, depth);
....
}



and redraw function is called inside onEnterFrame .



you can download the file from www.bouguerra.com/fla/rotating_menu3.fla and to rephrase the problem : in the movieClip pic I want to load external pictures instead of dragging ones from the library. I had a sleepless week trying to figure this out. You will save my life if you can help me with this....


Hope you got an idea about what the problem is and u have an answer to it.
0
Comment
Question by:bachbouch
[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
  • 2
7 Comments
 
LVL 13

Accepted Solution

by:
FLAASHER earned 250 total points
ID: 11803223
i think u need to put (stop;) action in the frist frame to stop loading the pic several times :)
just try

or give me a link to the file u did
0
 

Author Comment

by:bachbouch
ID: 11805937
u can get the file from here www.bouguerra.com/fla/rotating_menu3.fla , I already have stop(); in the first frame and
i think it is more complicated than that.
0
 
LVL 1

Assisted Solution

by:CT_Flasher
CT_Flasher earned 250 total points
ID: 11807120
The most likely reason for seeing a blinking picture is you are constantly loading/reloading it.

Once you add any code inside onEnterFrame = function():Void { // any code here }, it will run at the frame rate of your movie, e.g., 12 times a second, infinitely many times until you assign a different function to onEnterFrame, for example, onEnterFrame = function():Void {} - empty function.

If you are using MX 2004, take a look at MovieClipLoader class in Flash help system. It simplifies movie clip and image loading quite a bit.

Hope this helps.
0
 
LVL 13

Expert Comment

by:FLAASHER
ID: 12294999
split the points plz
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AWAY 3d Using BitMapCubeTexture 1 425
Microsoft WSUS 4 110
Software Restriction Policy 8 882
Sudden problem (grey screen) playing flash files in any browser, any OS 7 109
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…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.

749 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