ActionScript 3.0 :: External Swf Not Loading In Right Position?
Jul 19, 2010
I have an external swf that im loading onto my main.fla but it loads into the bottom right corner of the stage and i would prefer it on the stage.
This is the code i am using in the subMenu movieclip which contains all the buttons to call external movieclips:
[Code]...
View 4 Replies
Similar Posts:
Oct 31, 2008
I've been using the loader class to import external swf files when I need them. I can position them on the screen where I need them using the:
loader_var.x
and
loader_var.y properties
However something that seems to stump me is how to position the loaded content below other content in the movie. I tried making the layer where I was actually calling my external file below the other layers and yet when I export the Flash movie the clip that I'm importing at run time always ends up on top of every thing. Is there a way to specify which objects imported media comes in above or below?
View 5 Replies
Jul 23, 2010
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].........
View 2 Replies
Nov 19, 2010
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?
View 2 Replies
Sep 16, 2009
I've got this API loading on every page of the website. Can .SWF tell itself when it has loaded and thereby default to a loaded position? So that when a user moves to different web pages, the API defaults to its loaded point? NOT from scratch? [URL]...All the blurs and fade-ins are Methods that respond to a bunch of Timer Events. Once the .SWF is loaded how can it DEFAULT to its loaded point when a user changes web pages?
I know there would be a Javascript solution but is there an AS3 solution?
View 0 Replies
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.
[Code]...
View 1 Replies
Mar 24, 2011
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);
[code]...
View 1 Replies
Apr 9, 2009
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?
View 1 Replies
May 18, 2010
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.
View 1 Replies
Oct 11, 2009
I have a movieclip clip that plays when the movie starts, the movieclip is a visual assets that show's that the application is loading some information but it's not showing any loading progress, just playing while the assets are loaded.I created a for loop that will load the assets using a simple loader, and then when the object is loaded the application push the object to an array.Problem is that when the loading starts all the animation that i have on screen stops until the loading is finished.The whole point is that the animation will play while it's loading.
View 10 Replies
Feb 23, 2011
I spent almost a week trying to figure out how to unload a currently loaded swf using its button and loading a new swf... I have three files, a main.fla, file1.fla and file2.fla. In my main.fla, I have a code which loads the other two files. If i will click the "unload" button in the file1.swf, I would like the main.fla to unload the file1.swf and load the other file, file2.swf. Here is the code to load the file1.swf:
[Code]....
View 1 Replies
Jun 4, 2004
[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.
View 2 Replies
Oct 4, 2006
Here is the thing : on rollover on thumbnails ( buttons)its preview has to appear on the top of it.My corrected code works fine exepted that my swf don't load in a good way..they load at 60 kms from the thumbnail...and in a distorted size!I don't get it.I turn the thing in all ways but it is getting worth...What is my mistake?Code for each button ( thumb)
on (rollOver) {
_root.caption._visible = 1;
_root.caption.image_mc.loadMovie("images.swf");
[code].....
View 1 Replies
Sep 16, 2009
I've got this API loading on every page of the website. Can .SWF tell itself when it has loaded and thereby default to a loaded position? So that when a user moves to different web pages, the API defaults to its loaded point? NOT from scratch? All the blurs and fade-ins are Methods that respond to a bunch of Timer Events. Once the .SWF is loaded how can it DEFAULT to its loaded point when a user changes web pages?
View 1 Replies
Nov 2, 2010
I used to do this fine with AS2 and now i'm struggling to get it to work in AS3.my code is as follows:
PW1.addEventListener( MouseEvent.CLICK,loader1 );
//==================== PS function =============================================
var ldr:Loader = new Loader();
[code].....
View 3 Replies
May 4, 2011
I have created a main "site.swf" file that loads a "default.swf" file into a container after a preloader. On this default.swf file I have buttons that needs to load new external SWF files in its place in the container. All of the external SWFs contain buttons and navigations that will also call up other external SWFs into this container. So, I would like to know how to program each button (some are movieclips as buttons) to unload itself and load the respective SWF into the container (eg. AboutUsButton to call up aboutus.swf into the container). I do not have a main navigation on the site.swf file bacause the navigation changes on each SWF that needs to be loaded into the container.
View 2 Replies
Jul 19, 2009
I want to load external png's through this code:
(for this code, check the mcBandPreloader in de .fla file)
Code:
var imageLoader:Loader;
var RespJpeg:String = "images/arch1Proj.jpg"
function loadImage(url:String):void {
[Code]....
Here the problem is that I can't type html in my external txt file. (I did checked the html button in Dynamic Text Properties. What am I doing wrong here?
.fla can be downloaded at [URL]
View 2 Replies
Sep 26, 2009
I am trying to load an external swf at a specific x& y pos. from a button. This is the code I am using :
on (release) {gotoAndPlay(4);loadMovie("gallery.swf",1); xpos="7", ypos="119";
}
The movie loads fine if I remove xpos="7", ypos="119";How do I get it to load at that specific position?
View 3 Replies
May 18, 2010
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.
here is my code.....
ActionScript Code:
var myStage:Stage = this.stage;
myStage.scaleMode = StageScaleMode.NO_SCALE;
myStage.align = StageAlign.TOP_LEFT;
[Code]....
View 0 Replies
Jan 6, 2011
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].....
View 2 Replies
Feb 2, 2011
[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;
[code]....
View 1 Replies
Mar 16, 2004
I'm loading a external swf into a movie everything is fine with that. The only problem is that its loading only a part of it. Does anybody know why? Also, this swf is a mp3 player with streaming. The streaming part works but the playback doesn't.If i start only the mp3 player by itself it's working.here is the fla for the player
View 3 Replies
Apr 20, 2005
I'm trying to load a SWF movie into a target movieclip called blankmc. The SWF movie is loaded from an absolute URL (eg. [URL]/img/20042005113934movie3.swf ) My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG! Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?
[CODE]...
View 3 Replies
Feb 8, 2007
Currently, I use loadmovie to load a jpg into a movieclip. However, when the jpg is loaded, I believe that the top left hand corner of the jpg is in the middle of the clip and does not line up with the top left hand corner of the clip.
How do I get the jpg to line up correctly?
View 3 Replies
Apr 10, 2009
Specifically, I am building a flash page that loads external swf files and inside some of the external swf files, I would like to add audio and flash video (flv) streaming from the Flaash Media Server. In some of the external swf files, (using a FLVPlayback component) when you press a button on the main timeline to unload the current playing swf the audio/video continues to play after loading the new external swf file.So I believe that my approach is all wrong and I should be working to dynamically load the .mp3 and.flvs in the external swf ... my questiion is how to unload those assets when loading the new external swf
View 1 Replies
Jun 27, 2009
Lets say I have Main.swf and sub.swf, and I wanna load sub when I press a button from Main, but sub.swf has its own external class file attached, so here is the problem, when I load sub using loader class and I would get this message from the output panel:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at subScript()
seems loader class can not access sub.swf's external class when sub is being loaded.
View 1 Replies
Apr 24, 2010
Lets say I have subgallery.swf file that loads jpeg images. And I have gallery.swf file that loads subgallery.swf.The jpeg images and both swf files are in the same folder.When I test gallery.swf it loads subgallery.swf but subgallery.swf doesn't load images. When testing subgallery.swf alone, it loads jpeg files.Is there any limitation or setting preventing external swfs loading other content?
View 2 Replies
Apr 14, 2010
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.
Actionscript Code:
stop();loadMovieNum("circles.swf", 1);var xset = 381;var yset = 179;
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.
View 5 Replies
Oct 7, 2009
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.
View 6 Replies
Jan 3, 2011
figure this out I am using this code inside my nav movieclip to load external movie clips on the main stage
Code:
var Xpos:Number = 110;
var Ypos:Number = 180;
[code].......
View 3 Replies