ActionScript 2.0 :: How To Position External Movie
Feb 27, 2010
I have downloaded a flash movie from flashkit tutorial and now I want that movie to load in another movie but either its not loading properly or its not positioning properly.
i have a peice of code to load two external swf files, the problem is that both the files load in to different positions i have a position x,y snippet but the probelm is for that to work i need for both external movies to load in to the same place, is there a way that i can define which movie i want to position.?
ActionScript Code: var fl_Loader:Loader = new Loader(); addChild(fl_Loader);
I have one movie clip that when clicked on moves to the left of the screen, after it gets there I want another and exteral swf to load. But I dont know how to get the external clip to load after the movie clip gets to the left side of the screen....Here is what I got so far..
Basically the x position of the mouse should control the play position of a movie. Do I need something like an event handler (I'm not sure exactly what these do, but I've seen similar scripts that seem to use them).
In trying to activate the remainder of the pause button, I find that using MovieClip(loader.content).channel.position always returns 0. I've tried numerous other combinations to access the position of the sound for the play function to resume correctly. The visual part of extswf.swf stops and starts exactly as it should.
In CntlClass: public var loader:Loader; public var movie_mc:MovieClip; public var soundResume:int = 0;[code].........
I am creating a full site in flash. The main movie has an empty movie clip in the middle of the movie to load external movies as the user clicks on the links. Everything has worked good so far as the linking has only gone 1 level deep. However, when I created a new external movie, and had buttons on it for another external page, but yet to open in the main movie, I can't get anything to work. Example.... In the main movie, the user clicks on the archive link, and the external archive movie is loaded into the main movie. Now, on this archive movie, there is a button on it that links to a another movie (say text effects.swf). However, when they click this button for text effects, I can't get it to load into the main movie clip and replace the archive movie that was currenlty there.
I have been having major trouble using embedded FLV's as anyone who has read [url]...
I have tried using externalk FLV files instead. They are only small, basically they are a persons animated face with some talking.
I do not require a player so have selected none, which is fine. I have had to move them and use the freetransform tool to get some of them to fit in the right palces perfectly.
However, when I publish the movie the FLV's are in different places to where they appear in the fla?
I have an external swf loading on a button and it appears at the bottom right corner of my main, this is a problem cuz its about the same size as my main and so its cut off the screen. Is there a way to position the X and Y coords when it loads?
I'm using a Loader component to load and external swf which dynamically loads external jpegs (it's a photo gallery). When I test the movie locally all looks well with the external swf positioned exactly where I put it on the main stage. However, once loaded to my web host the external swf is bumped downward about 150 px.
I want to load that SWF file in the center of the screen.
I got "loader(the variable that loads external SWF file)" and I don't know how to assign the X and Y position of that loader in the center of the screen.
I am making a liquid flash site with a video player which loads within the central movieclip. When the site loads everything sits in place perfectly, however if the browser is rescaled in anyway the external swf pushes up to the top of the screen and stays there permanently. This is the link to the site:http:[url]...... It's not the liquid layout code for the mc as this rescales fine, just the external swf doesn't. This is the code I am using to load the external swf also:
var Xpos:Number = 0.5; var Ypos:Number = 0.5; var swf:MovieClip;[code].....
[URL]while in "portfolio" section, if you resize, the content go to the left.I know WHY it does it : while in a MC, an external movieclip lose his stagesize to compress into the movieclip, if resize, it use the size of ALL the content in the SWF to resize. the external fla stage is 1600 x 680, but the content goes out of the stage to the right to make an 1760 x 680 size.to make it LOAD at the right place and right size, i've got a layer with a MC (externalStageSize) in the external SWF that is the size of the Stage, while on frame 1, only this MC(externalStageSize) is active, so when loaded, the _level0 flash can position and scale the external SWF.
BUT, while active content is on, any live resize does not go well..I tried to "connect" the scaling with (externalStageSize) BUT once loaded the size does not change.I wanted to use the math : "new width" = ("allcontent".width / externalStageSize._width)/Stage.width but _level0.ContentMC.externalStageSize._width return the value it have in the flash... like, even if rescale, it will say "1600" is there a way to counter this ? before you ask : AS3 was out of the question because the person who will maintain the site is not that advanced.
some script used when resize : ContenuMC : the movieclip in witch external swf is loaded
Code: function setContent() { // content dimensions ContenuMC._width = Stage.width;
I'm trying to get a swf file to play in a main swf file. I can get it to play, but it always appears in the top left corner. I've tried several different methods to position it but every one of them either doesn't work or won't play the file.Here's what I'm using right now.
The swf plays just fine, but it won't take the coordinates.I also need to get it to stop when I go back and the command
Actionscript Code: unloadMovieNum(circles.swf);
doesn't work.A tutor in my class showed me a method to place the swf into a box on the main stage without doing a lot of scripting, just putting in some file-name and size/position references, but he's not available right now to ask how he got that started.
I have a flash script which creates instances of movie clips and stores them in an array. What I want the script to perform next, is when clicking a "save" button the position and the movieclip class name of each created instance will be sent to an external script to store.
_root.caption.image_mc.loadMovie("essaicomplex.swf "); On each thumbnail gallery, by passing the mouse over a thumb It loads a SWF ( larger picture of the thumbnail) till now it is great. BUT 1 : I can not fix the position of the movie and 2 : the so called "swf-movie" moves together with my mouse. I want it locked. I turn around but do not find. What do I have to modify ??
I have several movie clips on the stage. They are draggable. I want to be able to drag the movie clip, then when it is dropped, a copy of that movie clip will appear where the first one had been, and the first one will just stay where it is on the screen.
However, I'm running into problems with the syntax.
I have 3 movie clips A, B, C on stage. I wish to shuffle the positions of movie clips, that is B take over the position of A, B take over the position of C and C take over the position of A and so on, each time their locations are interchanged.
how do i add a movie clip to a button position? i want a button that, when clicked, slides out to a certain position and stop. kinda like a drawer in a desk.
I have a menu that is in frame one extended through frame 5. Frame 1-4 is used for the main page content of the movie, while frame 5 has a movieclip that uses the loadmovie command from the menu objects to go to. Frame 5 is also using the label "gallery". Now, when i am in the movie on the main page and click a menu selection (Little People button) the script reads as follows:
on (release) { _root.gotoAndPlay("gallery"); loadMovie("galleries/littlePeople/set1.swf", _root.thumbs); }
So this takes you from frame 1 (the main page of the movie) to frame 5 (where the loadmovie is for the gallery images).The problem arises when i click on another gallery selection (Big People button) and it goes to the "gallery" marker again because the script reads the following, and it does not load the movie until you hit the button again.
on (release) { _root.gotoAndPlay("gallery"); loadMovie("galleries/bigPeople/set1.swf", _root.thumbs); }
Now, i think i can solve the problem by writing an if then statement where if the playback head (or movie position, whatever you want to call it) on the root timeline is at the label "gallery" then it does not need to run the first command in the on (release) and just loads the movie, but if the playback head is anywhere OTHER than the label "gallery", like say on the label "contact" then run the script to go to the gallery marker and then load the movie i want to load.
I have a flash file (a flash navigation bar actually, which gets loaded in all the webpages inside the website). What I am trying to do is place an external swf file on it in a desired position when the corresponding page is being loaded. I am using FlashVars (variable name -> 'movieName') to pass the name of the movie clips. These variables are read by the navigation swf file and the corresponding swf file should be loaded in the area specified. Now, to create a container, I am using createEmptyMovieClip() method which will host all the external swf files.
The swf files are all being loaded but with a lot of problems. First, no matter what I try, the swf file comes at a fixed place (which is way off from where it is supposed to be). I have tried checking if the container loaded the movie before fixing its position but it changed nothing. Although it did change the position of a weird background colour box I am getting when the movie starts loading - which brings me to the second problem.
A rectangular box flashes once when the external swf is loaded, and its position is being affected by whatever I am setting the _x & _y values of the container movies to. I have no idea why it is happening as it doesn't happen when I test that swf seperately.
[FMX] I am having trouble loading an XML file on an external server into my flash movie when it is uploaded. The data loads in fine when the flash file is on my local computer with the xml file on a server. As soon as the flash file is uploaded the XML data will not load in.