ActionScript 2.0 :: Loading External Movies For A Specific Amount Of Time?
Oct 30, 2006
I used the "loading random movie" tutorial (http:url....) to load 3 external movies. It worked great.But now, my client wants the movies to load one after the other. Each movie is interactive, but requires you to click on it, so it plays an intro and stops. Each movie is built exactly alike. So, I would like a movie to play, then stop for a certain length of time (long enough for the user to read some text). If after that length of time, the user does not intereact with the movie, then I want the next movie to play in it's place. If the user does interact with the movie, I want it to just stop at that movie.
View 12 Replies
Similar Posts:
Nov 12, 2009
I am using CS3. Here is what I am trying to accomplish:
On my loading page I have the following standard loading code:
Code:
stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
[Code].....
Because on some connections this can take quite some time, I want a link to appear after a specififc amount of time, say 10 seconds? Kind of like a, "loading too slow? Click here for whatever."
how to accomplish this within this loading code and frame?
View 4 Replies
Nov 12, 2009
On my loading page I have the following standard loading code:
Code: Select allstop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);
[code]....
Because on some connections this can take quite some time, I want a link to appear after a specififc amount of time, say 10 seconds?Kind of like a, "loading too slow? Click here for whatever." how to accomplish this within this loading code?
View 1 Replies
Dec 5, 2004
cutting to the chase, Basically im loading a movie externally using this code...
Code:
on (release) {
if (S_Init == Number(S_Init)) {
loadMovieNum("s_menu.swf", _root.S_Init);
[Code].....
View 4 Replies
Dec 5, 2004
cutting to the chase, Basically im loading a movie externally using this code...
Code:
on (release) {
if (S_Init == Number(S_Init)) {
[code].....
View 4 Replies
Jan 20, 2012
I'm trying to run a function when after a specific amount of time of the mouse being idle a movieclip plays, then when the mouse becomes active again a different movieclip plays. I have gotten my code work for the most part, but the last function runs over and over as the mouse is moving. I want it to run once, so the movieclip plays once.
here is my code:
standstill = 0;
lastmove = 0;
timeout = 3000;
[code]...
View 1 Replies
May 10, 2004
Is it possible to load in a movie to a specific frame? I am currently loading a movie from a button with:
on (release) {
unloadMovieNum(1);
loadMovienum("Is.swf",0);
}
This works perfect, but I'd like to add usability by directing the button to a specific frame within that new movie. I've tried:
_level0.gotoAndPlay(10);
After loadMovienum in the previous code but it doesn't do anything different. The movie always starts up on frame 1. In the end I'd like to have multiple buttons serving as navigation buttons specifying different frames of the new movie.
View 1 Replies
May 10, 2004
Is it possible to load in a movie to a specific frame? I am currently loading a movie from a button with:
on (release) {
unloadMovieNum(1);
loadMovienum("Is.swf",0);
}
This works perfect, but I'd like to add usablility by directing the button to a specific frame within that new movie. I've tried:
_level0.gotoAndPlay(10);
After loadMovienum in the previous code but it doesn't do anything different. The movie always starts up on frame 1. In the end I'd like to have multiple buttons serving as navigation buttons specifying different frames of the new movie.
View 1 Replies
Sep 4, 2009
I have a rotating menu that when clicked rotates and loads in swf movies, OnClick.
The problem I seem to be having is that because the swf movies load in on click it seems to be causing the rotation of the menu not to run smooth.
Question: Is it possible to get the swf movies to load in once the action of the click has completed its action. some kind of 2 second delay before the movies load in??
what happens: you can click or mouse scroll through the menu, when you click, the action repositions the selected Item (ActiveItem) in the center and resizes larger. this works great, is it possible after this action is complete to then load in the swf movies???
to see how the movie runs at the moment this is the link: [URL]
you will see at the moment onClick the movies load straight away which makes the rotation not smooth when rotating around.
I can't seem to get the mouse scroll to work the same function as the click at the moment also.....thats for another day
View 9 Replies
Sep 4, 2009
I have a rotating menu that when clicked rotates and loads in swf movies, OnClick. The problem I seem to be having is that because the swf movies load in on click it seems to be causing the rotation of the menu not to run smooth.
Question:
Is it possible to get the swf movies to load in once the action of the click has completed its action. some kind of 2 second delay before the movies load in??
what happens: you can click or mouse scroll through the menu, when you click, the action repositions the selected Item (ActiveItem) in the center and resizes larger. this works great, is it possible after this action is complete to then load in the swf movies?
to see how the movie runs at the moment this is the link: [URL]
you will see at the moment onClick the movies load straight away which makes the rotation not smooth when rotating around.
I can't seem to get the mouse scroll to work the same function as the click at the moment also.....thats for another day
View 4 Replies
Jan 27, 2009
I am new here and i am desperate to have my problem solved please. I have an html page with 2 swf movies that should be playing at the same time (one shows logo of a company and the other shows at the same time the company's products). the problem is althought they are synchronized when played on my pc, when loading via internet they doen't play at same time because one is much bigger than the other and takes more time to load and play. so i thought of making a dummy swf movie that loads both swf movies and make them play at same time.
View 1 Replies
Oct 31, 2009
I have always the argument with my colleagues which authoring strategy to use. I always attached to the idea of authoring several swf files, and have them all loaded to the main swf when needed. And than attach Preloader to each swf that I load.
Others think that it should be only one swf with one preloader. And have all the navigation to use scenes or goto actions.
So the advantage of using my strategy is that users will not wait too long for one movie when its being loaded. And its more convenient to work on several fla with each have its own layers, symbols, etc
View 6 Replies
Feb 17, 2003
i want to load an external swf movie into the main swf movie. now ive been using the loadmovie script and it works fine but the loaded movie comes up in the top left of my site so my ? is, how can i specify the location of where my loaded movie ends up
View 3 Replies
May 30, 2005
I got some movies loading in a container, but the movies stay open, I want to be able to "close" the container, or hide it when I click on other navigation buttons that are included in my main timeline.
View 3 Replies
Jul 17, 2003
I read the tuts on dynamic loading etc (the one about external stuff like mp3s, jpgs, swfs; and the one with the transitions). I'm messing around with it in MX and all works fine, except the problem I have is I cant check it locally! the bandwidth simulator and profiler doesnt seem to work with loading external content, the movie appears immediately.
So I tried loading the swf from the web (i.e. URL = file://[URL]) that gave errors "opening file" (the movie is there though). my only solution so far is to keep uploading my movie everytime I wanna check it!!! which is CRAP! I dont have a network at home, so cant really use those bandwidth simulators I saw on the sticky. basically I juz wanna load an external movie, and see how the parent movie handles it (i.e. progress is kept track of correctly, loaded notifications work etc.) how can I check all this locally?
View 6 Replies
Nov 5, 2009
I got this tutorial about external movie loading. It works but it seems that their is a little problem with it. How do you keep the button from loading an external movie once it's loaded already?
[URL]
Let's BUTTON-1 loaded MOVIE-1, now when you click on BUTTON-1 again it will load the movie even if it's loaded. How do you do it like only when another button is clicked will it load the movie for that button.
View 2 Replies
Apr 13, 2011
I have a video that plays for 1.30 secs. After it has finished playing I would like to automatically load a MovieClip onto the stage, how do I create a timer element to this?
View 5 Replies
Sep 24, 2010
I have three (3) buttons in my main movie. And I just realized that everytime I press the "about me" button, it keep loading, reloading, the same movie. Its kinda lame! So I searched for VARIABLES and thought I could work my way around it.What I did was, on the first frame of my movie, I declared 3 variables; namely:
PHP Code:
var portfolio = false;
var aboutme = false;
[code]......
View 8 Replies
Mar 24, 2010
I'm quite new to flash and got stuck on a problem involving: loading external movie clips and file paths.I have 5 swf files and want to access them from one main navigation screen.[code]It fails after a few click because the file paths get duplicated..[code]Can any of you Flash gurus point me in the right direction?
View 2 Replies
Jun 4, 2003
I have a Main Movie with four buttons {about us, services, portfolio, contact}. When you click on Portfolio the Portfolio movie is loaded into the main movie to an instance called "load". This Portfolio movie has four buttons in it the first one being "print", now when I click on this link it loads another movie with the "print slideshow" in it.
In this slideshow there are thumbnail images which when pressed opens up another movie showing a bigger image which works fine. But what I would like to do instead of having separate movies for each thumbnail is to have just the one and load in the picture and any copy into a target depending on which one is pressed. I have tried doing this with this script, but it doesn't work (I've only tried loading the pic up to now)
on (press) {
loadMovie("print/view_file.swf", _root.view);
setProperty(_root.view, _x, "445");
setProperty(_root.view, _y, "25");
That part works OK, but it is replacing the slideshow movie. I've deleted the next part of the script and it no longer replaces the slideshow, so I think that is where my problem is, but I'm still not sure why
loadMovie("print/mdc-large.jpg", _root.view.pic);
setProperty(_root.view.pic, _x, "445");
setProperty(_root.view.pic, _y, "25");
}
This part isn't loading the pic at all. I know I've made it a bit difficult for myself by doing it all in separate movies, but I only want to load what is necessary depending on where people are browsing.
View 2 Replies
Nov 1, 2007
i want to make a flash site but i've run into a few issues, i've made an empty movie clip called 'empty'
and a button under it with the code
on (release) {
_root.empty.loadMovie("example.swf");
[code]....
View 8 Replies
Jan 8, 2011
I'm made a simple preloader that works fine for my main movie. Now I need it to work when loading external movies.Below is the code I'm using (AS 2.0) for the preloader.
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
[code]....
View 1 Replies
Jun 7, 2011
I have three (3) buttons in my main movie. And I just realized that everytime I press the "about me" button, it keep loading, reloading, the same movie. Its kinda lame! So I searched for VARIABLES and thought I could work my way around it.
What I did was, on the first frame of my movie, I declared 3 variables; namely:
PHP Code:
var portfolio = false;
var aboutme = false;
var contact = false;
[Code]....
But I think I missed something along the lines because evertime I click on ABOUT ME, I still get the movie to load. My point here is that once I have CLICKED one button and the designated movie for that button is loaded, I can not reload it again 'cause it's already there.
What am I missing? I hope someone can push me at the right direction here Here is the FLASH MOVIE I am trying to developing. [URL]
View 3 Replies
Jul 6, 2009
Do you have any tips, or a link to a good tutorial? I'm a bit of a newbie...
View 4 Replies
Jul 30, 2009
I made some banners with Five3d that I am trying to load as external SWF's into another movie. I setup the classes, etc... however when I test the movie it always says "Call to a possibly undefined method... etc, etc" -- (which is making reference to the Five3d external AS file I used for my banners)...
I am new and still learning about Five3d, is there something else required to load Five3d projects as external movies?
View 0 Replies
Aug 20, 2009
I have an interface that needs to load in external activity pages - there's quite a few of these. I've been trying to create an external class to take care of movie loads, but it has a bad memory leak. I've been reading about using unload() and unloadAndStop() but haven't gotten these to work (there are no noticeable differences in system memory usage or performance). Everything grinds to a halt once I've used up about 13+ Mb of memory.
The document class has lots of code (of course) so I'm just showing the code that relates here:
Code:
package {
public class Interface extends MovieClip {
static public var _ui:MovieClip;
[Code].....
View 0 Replies
Dec 13, 2010
I have a flash application running on some local machines. There are 3 movies the flash loads and plays. Each time a movie is played, it makes the amount of RAM the swf is using increase. This is being ran in a museum and users step through the 3 movies over and over and over, causing the swf to use gigabytes of RAM and eventually locking up the flash player.
Here's where I create the movie playback component.
ActionScript Code:
var flvPlayer:FLVPlayback = new FLVPlayback();
addChild(flvPlayer);
The 3 movies are on 3 different frames in the timeline, for each frame I have this code that loads each movie.
ActionScript Code:
flvPlayer.source = "resources/LADEE_overview.f4v";
flvPlayer.play();
flvPlayer.addEventListener(MetadataEvent.CUE_POINT, cuepointfound);
I use the cuepoints to display some text on screen. I also call a function that does flvPlayer.stop(); each time the user navigates away from a movie frame. So is the RAM usage growing because of the flvPlayer.source = "whatever" being triggered each time the movie is called up?
View 5 Replies
Nov 8, 2006
I would like to use Sliding Menu (URL...) on my web site,how to I load the external movie when user lands on let's say slide 3 (content3)?From actions script given on page URL...Then, when user go to another slide, I would ultimately would like to unload/stop the loaded swf movie
View 2 Replies
Nov 25, 2006
i'm trying to create a simple site with three buttons and three different screens rotating (so if one button is clicked the current screen fades out, a new one fades in, then when a second button is clicked the same thing happens and so on).i was using the tutorial found [url]my problem is that i need everything pre-loaded from the begining. i was trying to create a preloader that loads all external files, but it would be a lot easier to have the different screens as movie clips in one file. the problem is, i'm not sure how i should modify the code to place a movie clip in my "container", rather then load an external file...
[code]...
View 3 Replies
Jun 29, 2009
wherever I look for scripts is either AS 1.0 or 3.0... I used to work as a cartoon animator (didn't need AS at all) now I'm trying to build up my own site to show my portfolio. I'm having difficulties loading and unloading external swf files. Basically I'm a total newbie, I managed to figure out that you need an empty movie clip where it will be played, and the buttons themselves...
View 8 Replies