ActionScript 2.0 :: Load External Movies By Classes?
Dec 27, 2007
I have problem with subject. I got "undefined" message by trace() in 2 cases as well. I don't understand due to "this.createEmptyMovieClip" gives the newly created empty movieclip as well.
As the code shown below.
class CMedia extends MovieClip{
public var oOwnMovie:MovieClip;
public function CMedia()
[Code].....
Very annoying when i can not initialize a public member variable in this simple case. public var oOwnMovie:MovieClip = new MovieClip; throws error
and I could not initialize it by "createEmptyMovieClip"
how can i load external movies by classes?
View 6 Replies
Similar Posts:
Mar 24, 2011
I have made a flash player that loads in two external flash movies this is all now workign fine with a little extra help, however the problem i have now is that when the movies load in they both show in different places, for example the external movie called new_products loads perfectly in places, for example one of the movies loads into place where i want it to but the second loads in to position starting at the top left.When i add x, y for the loader it affects them both, but they still originate from differnt start positions.[code] URL...
View 5 Replies
Nov 30, 2005
I want to be able to load a movies, wait till it finishes, unload that movie and then load a new movie. Kinda like a slideshow using external movies. My problem is understanding how to determine when a loaded movie has reached its last frame. I currently have this action on at the end of every movie, but it pops or gives a white flash in between movies which is not so smooth.
movie1: loadMovieNum("/media/flash/one.swf",0);
movie2: loadMovieNum("/media/flash/two.swf",0);
movie3: loadMovieNum("/media/flash/three.swf",0);
View 2 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
Jul 2, 2007
I'm dynamically creating buttons for review to the user. The buttons are determined from test questions that they missed and the missed questions are stored in an array called categories. There can be multiple instances of the same name inside the category array so I'm weeding them out into the holder array so that there is only one occurrence of each category. The problem lies with my onRelease section of the code. All of the buttons and labels are created fine but the buttons don't do anything
stop();
var holder:String;
var holderArray:Array = new Array();
[code]....
View 1 Replies
Nov 18, 2007
i used kirupa's [URL].. tutorial to create a movie with buttons that load external movies and works seamlessly.
my problem is that i want to do the same thing on the external movies that are loaded so to be able to load new external movies on top of them. it does not work and i know its because of the _root script that gets messed up when a new movie is loaded. it has to become _parent or smthing but i can't seem to be able to make it work..
View 4 Replies
Jul 27, 2009
I have an external swf that relies on its own classes and functions great on its own, but when I load it into another swf, it is not working. I am getting "TypeError: Error #1006: initializer is not a function."
I am not using "root" at all, and I just want my external swf to function on its own inside the main swf file.
View 3 Replies
May 22, 2005
... I've had my preloader successes already, but something still doesn't work for the external movies... I'm loading the main movie - which contains several chapters, loaded as external swf's - with the following preloader on the first frame, rest content from second frame on:
[Code]...
View 5 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
Nov 4, 2010
I'm trying to understand how AS3 works compared to AS2 when using navigation buttons to load external .swf files.
In AS2, I would have 5 menu buttons. Each button contained a script to load an external .swf file into layer 2 (on top of my existing movie). It would also contain a line of code to unload any movie that was already in Layer 2. This way new movies came in on top and were easy to identify when it came time for them to be unloaded.
Now in AS3, I can't find a similar way to work with external movies, since there are no longer layers. I create a movieLoader and add a child to it to load my external .swf - that works fine.But how do I tell each button to remove any children that already exist before loading the new child? The way it works now, the movies just keep piling on top of each other whenever I click a button.[code]...
View 4 Replies
Mar 25, 2005
[URL]My goal is to make all animations to load at once, because right now it only loads (loadMovie) on whatever you click, therefore there is a delay between the link you click and what will open.how you could preload all animations before you enter the site, I need your help, your any tip, and your advice on what code should I use.[URL]
View 1 Replies
Mar 18, 2009
I want to load different movies into the same area. Like the pic attached. click on the button and the related flv loads in area.
View 2 Replies
May 6, 2002
I'm trying to load several movies after the other.
with loadMovie:
loadMovie ("test1.swf", 2);
unloadMovieNum (2);
loadMovie ("test2.swf", 3);
unloadMovieNum (3);
As soon as movie 1 is ended I want that movie2 starts.
I want that the loading of movie (test2.swf) starts when test1.swf is ended.
View 4 Replies
Jun 18, 2009
I am having some troubles to remove the movieClip from the current Loader (from the main FLA) at the external movies...
Check out how the external movie loads..
Code:
// -- FUN��O NAVIGATE -- //
function navigate(event:MouseEvent):void{
if(event.target.name == "fotos" ){
carregaFotos();
[Code]....
I have the external swf with some Tween Classes instaled and codified.. But I don't know what to do to CLOSE the external swf loaded at "meuCarregador" and it back to the BEGINNING OF THE ANIMATION on MAIN FLA.
View 1 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
Jan 22, 2006
how can i make a preloader in my main movie that preloads external movies
View 1 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
Jul 21, 2003
how do you debug external files if they have functions that can only be executed when inside the main movie? I hope this makes sense...so the thing is that a movie just exported shows you the values of the traced items (undefined, numbers,..whatever). When that same movie is published and viewed in the flash player within the main movie, the traced items don't show in the output window.
View 3 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
Sep 30, 2002
I have a movie (movie1.swf) which loads "movie2.swf" onto level 2. What is the scripting to make it go right to a specific frame in "movie2.swf"? What if I wanted it to go to a specific scene in "movie2.swf" right away upon load?
View 5 Replies
Nov 18, 2003
Is it possable to load an external swf file, that is a rotating movie into another file and still control it??example:I have a rotating object which I want to pause and play. I have loaded the rotating object into a window using the loadMovie command. I now want to be able to use the play and stop buttons to control therotation.Because the movie has been loaded into the window from a different location it does not have a path to target the play and the stop command to also tried adding the play and stop buttons on the rotating object movie swf file. They load and are pressable, but dont do anything?
View 1 Replies
May 11, 2009
I have a movie called "index.swf" and a class called "index.as" The problem is that loads the movies in the same position.index.as:
package {
import flash.utils.getDefinitionByName; import flash.display.Loader; import flash.display.Sprite; import flash.events.Event import
[code].....
View 7 Replies
Aug 14, 2009
I bought a template from flashmo which comes one main flash file and photoalbum fl. file. The main flash file plays swf. file from photoalbum. I like to create many photoalbums and play them on the main file.I have no idea how to do that. I spend hours and hours searching online but I cannot find information.The actionscript that is related to playing movie is below.
import mx.transitions.*;
import mx.transitions.easing.*;
//
var numMenuX = 605;
[code]....
View 0 Replies
Dec 5, 2011
im trying to do this in AS3? Is there any way to do this in AS3?.
myDate = new Date();
time = myDate.getHours();
if (time < 1) {
loadMovie("night.jpg","contentMC");
[Code].....
View 9 Replies
Mar 4, 2009
[code]...
i have a class name is Resoures above method is in this class
prob 1 : if mymovie1.swf loaded there is a button and if it click the mymovie2.swf should be load in same "container" movie clip
View 2 Replies
Jan 30, 2003
I have a scene with 9 buttons opening each a *.swf movie example: on Home I attach the action:
on (release) {
gotoAndStop (2);
}
// other buttons goto and stop frame 3,4,5,6...
on Frame 2 there is a blank keyframe with the action:
stop ();
loadMovieNum ("home.swf", 2);
unloadMovieNum (1);
unloadMovieNum (3);
unloadMovieNum (4);
[code]....
what about a *swf movie(1.3) loaded into a *swf movie(1.2) witch is loaded into a *swf movie(1.1)?can I unload movie 1.3 separately?
View 2 Replies
May 8, 2003
Ok, I know this is probally has a simple answer. but i cant figure it out. i have 3 buttons each controling a different movie clip. but the effect i want is when you click a button the assigned movie clip loads ontop of the other. basically this is because the movie clips are alpha tweens and i need that transition effect
View 1 Replies
Aug 3, 2010
I am trying to load 9 movies into a flash, I want them to be loaded randomly and to loop, right now I am using this script but it is playing them in a certain order. Is there a way they can be loaded randomly?
var mcl:MovieClipLoader = new MovieClipLoader();
var list:Object = new Object();
mcl.addListener(list);
[code]........
View 3 Replies
May 22, 2011
I have a video, 14 minutes long, at various times, I need to load information for a few seconds, and then unload it.At the moment, I'm doing it all in the timeline which works fine, however I'm limited by 16,000 keyframes which for the last video, was about 7 minutes (full video was 9).Is there a way to load and unload in 1 long action script file at the beginning of the video? eg (not actual code btw)
at 4 seconds, load 1.swf into container1
at 14 seconds, unload 1.swf from container1
at 16 seconds, load 2.swf into container1
View 1 Replies