IDE :: Load Different Movies Into The Same Area?
Mar 18, 2009I 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 RepliesI 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 RepliesI'm making a mockup for a client and I need to Load the .swf with the exact stage size so the graphic elements do not float outside the loaded movies stage area. [URL]Basic load code I'm using...
Actionscript Code:
import flash.display.*;var adLoader1:Loader = new Loader();adLoader1.load(new URLRequest("100828_budlight_texas_fight_728x90_jn.swf"));adLoader1.x = 313;adLoader1.y = 162;addChild(adLoader1);var adLoader3:Loader = new Loader();adLoader3.load(new URLRequest("100828_budlight_texas_fight_300x615_jn.swf"));adLoader3.x = 738;adLoader3.y = 0;addChild(adLoader3);
I would like to first add the xml to my flash. Fine I can do this.But I have a number of buttons, where when I click say CW1, i get the information from the XML file with a node of CW1. I have all the xml set up fine.As I have about eight different postcode types.
ST, CW, CH, TF, WV, WS, DE, SK, SY, and each of these may have numbers that follow, i.e ST1, ST2, ST3 and so forth.
So I can only assume that the postal area could be the main nodes, and the numbers inside the child nodes, am I right thus far.o how can i load the area of the xml file into my text area on mouse click, pulling the information relating.
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]...
[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 RepliesI'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.
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].....
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]....
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].....
[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
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?
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 RepliesI 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]........
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
I have the following code on a button that i am using to load movies into content_mc:
on (release) {
if (_root.section != "link1") {
_root.content_mc.gotoAndPlay("unload");
[Code]....
I have an empty movie clip which I use to load movies into it...(A) and (B)...
My question is: If I load movie "A", and later on I load "B" (here is my quesion) what happen to the loading process if I need to load "A" again? is goint to load it from scratch or some how stays in the cache?
I'm trying to load some swf movies using loadMovie, but I'm having the folllowing problem:
There are three movies: 1.swf, 2.swf, and, 3.swf.
=> 1.swf loads inside 2.swf
=> 2.swf loads inside 3.swf
When I test 3.swf, it plays only 1.swf (exacly where I put it in 2.swf - coordinates) but doesn't play 2.swf.
Everything looks correct, includind the containers.
All actionscript is in the frames and I'm using Flash MX.
This is my site [URL] (click on "portfolio", "about us") so far only this... 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. Example of what I mean is here: [URL]
View 1 Repliesi wanna be able to load both variables from an external .txt file, and a external .swf file at the same time. now the problem is i need the .swf to only open if the movie is at frame 15. here is my current code:
on (press) {
loadVariablesNum ("test.txt", 0);
}[code].....
I use Adobe Flash CS4 and Dreamweaver CS4. Any flash movie I make in Flash CS4 won't load in my browser
Any movies I made with Flash MX8 load fine in my browser (both Internet Explorer and Firefox), but the CS4 ones just won't load
I have the latest Flash Player installed on my browser by the way...
I'm new in actionscript and i need a horizontal scroller with duplicated movies. The scroller works fine (isn't in the code below) but i can't see the duplicated movies or anything for that matter.
[Code]...
I'm trying to work out the details in my head about some of these objects. A loader, and a movieClip. Is the loader the default object to use to load images/movies onto the stage (Actionscript 3)? The movieclip is more of an actionscript 2 object? (thought I read that somewhere).
If not what is the difference between these two objects and why would you use one and not the other.(you don't need to go onto too much detail) I'm learning AS3 but there is some AS 2 scripts (trying to convert to 3) that are used in our projects, so I've had to bounce back and forth with how I code.
I made a movie that has sound in it being activated and deactivated by using the sound object and linkage id's and it works like a champ.Now i take that movie and load it into another movie like so.....
actNav_mc.loadMovie("test.swf");
Now the sounds dont play or work.So just for fun i brought the sound files into the library of my _parent movie and the sounds worked. Since i must have the sounds in the loaded file this is not a viable option. I then tried using the import linkage on an empty mc in the parent movie and it worked but i could shut the sound off.What i originally had....
navloop_sound = new Sound();
What fixed it....
navloop_sound = new Sound(this);
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 RepliesI created a simple Flash app that shows a menu on the side with 2 movie choices. Each movie choice is supposed to play a different movie. The whole thing works just fine on my local machine but when I upload to the test server, the movies never start. Near as I can tell the SWF loads and functions fine but the movies dont work... constant loading bar. Of course, I want them to stream in a YouTube-like fashion. I've fought with this for some time, tried .FLV files directly in DW (no joy there either) so I'm stuck. If I replace the movies with images, the SWF functions just fine. Just can't seem to do the movies.
View 3 RepliesI have my main movie which loads an external swf. This swf loads different images (loadMovie("image.jpg", _root.photo.empty);How can i make each image load with an effect?
View 3 RepliesI am working with Flash MX. I am creating a site with a Main.fla which contains buttons to load other SubPage.swf files. For example, I have a Page1 button with the following actionscript code.
on (release) {
_root.contents.loadMovie("page1.swf");
}
It works fine. Now when I work on the Page1.fla, I am trying to load other Movies in the same fashion. It works when I CMD+RETURN to generate the .swf file. However when I CMD+RETURN the Main.fla file and load the Page1 file, the buttons won't load the movies. Is this a Target Path issue? How would I remedy this?
I load 2 movies at the same time using loadmovie() function onto 2 different locations on the flash page. i would like to know if i can have a button in the second movie that can control, lets say play, the first movie when this button is released.
View 14 RepliesI 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);
I have a button, that when pressed loads a movie - works fine. What I wish to know is if it's possible (and how) to nest or add a function so that another movie loads at the same time. I'm using MX.
The idea is that when the 'good movie' is loaded, another small movie will load beside the button to indicate the active section.
Sample of what I'm currently using to load the 'good movie" is below.
Code:
blackWhite.onPress = function () {
_global.sectionPath = "Section1/";
_root.createEmptyMovieClip("container", 1);
[Code]....
There are actually seven such buttons in the main movie. So, for each one I want to replicate the adding of my external active.swf file into another empty movie clip.
Now, the above code works and pulls up the animation. When I tried to added another function to the button, only the second function worked (i.e., I got the symbol for indicating active state, but not the image gallery I've made).