Professional :: Size Of External Swf?
Jan 17, 2010
Got a little problem with a flash project im working (pretty new to flash).I got an swf image gallery (AS2) which im trying to load inside another flash project (AS2) using the following code:
var c_mc:MovieClip = this.createEmptyMovieClip("container_mc",10);
var mcl:MovieClipLoader = new MovieClipLoader();
var mcll:Object = {};
[code]........
View 7 Replies
Similar Posts:
Apr 1, 2010
I'm using Flash CS3 and AS2.0.I'm using the loadMovie function to load an external swf into an empty movieclip. The problem is that the external swf is bigger than the frame I am loading it into, so I'd like to load it in with specific width/height parameters (basically load it in and scale it down).
View 3 Replies
Jan 28, 2010
I have this ActionScript: function openNewCart(evt:Event):void { navigateToURL(new URLRequest("http://www.3dcart.com"),"_blank");} OpenCartPage.addEventListener("click",openNewCart);
Is there a way that I can have it open a 5 pixel window that automatically closes after it loads? Also, is there a way to specify within the actionscript where on the screen I want the new window to open?
I'm newer to flash. What I'd like to do is have it add a product to the shopping cart and close back down.If I can't do it straight from flash, I'm sure I can have the flash page open up an html page which redirects to the add to cart page and automatically closes, but obviously a much bigger pain in the butt, and it will only work anyway if I can specify in the actionscript for it to open a 5 x 5 pixel window.
View 1 Replies
Jun 8, 2010
I am trying to build a flash that auto-adjust its size to the browser window size, while leaving the content of the flash itself top-centered in the screen.I have found this solution [URL].. on How to keep centered stuff in this exact case so i am pretty confident i will be able to adjust that script to do what i want.
Now my problem is that if i put my content inside the movie-clip (centerrectangle) with all the animation require, link and other stuff, the movieclip (center rectangle ) never have the exact same center, thus making the script go wild trying to always adjust the location to the variable size of the movie clip.
[Code]...
View 9 Replies
Sep 2, 2006
[URL]regarding this tutorial I started my site [URL] to get some trasition effects but im getting somewhat different since the external SWFs take time to load. isn't it better to create "intro and outro" on the same time line instead of loading external SWFs bcos once the movie loaded as a whole will lead to smooth and contineous transitions.
View 1 Replies
Apr 25, 2008
Is it possible to know the dimensions of an flv loaded throught an URL ?
What if you want to load different videos with different sizes on the same video object? Does the video object change in size depending on the flv you're loading?
View 3 Replies
Feb 9, 2009
ActionScript Code:
var container:MovieClip = createEmptyMovieClip("container", this.getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("crossball.swf", container);
function onLoadInit(mc:MovieClip) {
trace(container._width);
trace(container._height);
}
This always traces the width/height of the content of the external crossball.swf file, not its stage dimensions. So let's say crossball.swf has a document size of 200 by 200 pixels and in it is a shape of 115 by 30 it will trace the last as the width/height of 'container'. Is there any way to get the stage dimensions of an externally loaded swf through moviecliploader?
View 9 Replies
Mar 25, 2011
I am loading an external swf, but when the swf is loaded, its height is correct, but it's width is not. Why is this?
"Block9.swf" is a simple MovieClip with a width of 100 and a height of 120.
But when the swf is loaded, its width output is 169. But the height is correct at 120.
Code:
var swfLoader:Loader = new Loader();
addChild(swfLoader);
var swfRequest:URLRequest = new URLRequest("Block9.swf");
[Code]....
View 1 Replies
Jan 10, 2007
Ok so basicaly what I want to do is load in an external swf onto the stage which is 1024x768, above all existing items (so preferably into an existing container mc) but set the loaded swf's width/height so that it fits into a pre-determined space of 700x400, even though the loaded SWF is larger.
The stage of the SWF being loaded in is 700x400, which as stated above is the desired size, but objects within it are larger than it's stage for purposes of the animation. This means that when you load the SWF onto your current stage with the normal loadMovie("xxx.swf","container") you wind up seing parts of the object that would normaly be outside the 700x400 stage if you were to view the SWF on it's own, obviously resulting in an ugly movie clip.
I could cover up those parts with extra layers, but the majority of the primary stage is transparent so this isn't really an option. So, is there a way to load an external SWF but only display the actual stage of that SWF, or set the width/height to mimmick the same sort of thing?
View 6 Replies
Oct 8, 2007
I have an external swf I am loading. It is a text scroller, and part of the way it works is that it moves the text up or down off the top or bottom of the stage when it scrolls.Unfortunately when I load it in a master swf, the guts of the thing are showing through, spilling outside of the intended boundaries of the included swf. (i.e. outside the included swf's stage height).
View 1 Replies
Feb 5, 2009
What i try to do, is to make a "wrapper" in Flash, in which other swfs could be embedded. (passing the URL of the external SWF by URL) to attach a link to the swfs. (ClickTag - Issue, maybe someone knows this).In the HTML - Code this would look like this:
Code:
<embed src="wrapper.swf" ...>
<param name="filename" value="path-to-external-swf.swf"/>
<param name="clickTag" value="http://www.example.com"/>
The SWF "wrapper.swf" should load the "path-to-external-swf.swf" an puts a onClick - Event on the whole area.That works just fine, BUT The loaded external SWF should always fit to the stage size (like 100% width and 100% height) .My code looks like this:
Code:
// Variables should be passed by URL
_root.filename = "http://example.com/animation.swf";
_root.clickTag = "http://www.example2.com";[code]....
Code:
mClip._width = Stage.width;
When i click on the swf, the movie fits exactly to the stage width...
View 1 Replies
Oct 12, 2009
For my AS3 website, I want to have different buttons at different points in the timeline which load and play external swf videos. These swfs would ideally be displayed on the stage at the actual height and width of the video rather than in a new window.
The swf files themselves will be generated using a third party video player, which wraps itself around an external FLV creating a nice self-contained swf video player (the generated swf contains the player and the video).
The problem is that the third-party video player i'm using ALWAYS displays the loaded swf at the full size of the stage and not the actual size of the swf video. So when the user hits the button to load and play the video, the swf video fills the stage leaving the user no way back to the website.
Also if I use _blank to open it in a new window, it fill the entire browser window.Is it possible to force the width and height at which an external swf is displayed on the stage and if so could some guru give me a code sample to use? It doesn't need to be dynamic according to the swf dimensions, as these will be the same for all videos.
Below is the code I'm using at this point to call the swf:-
var Xpos:Number = 0;
var Ypos:Number = 0;
var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");
[code]....
..it compiles but I don't see the swf at all, whereas if I don't set the width and height it appears. I've changed the width and the height within these variables but the swf never displays unless I remove swfwidth and swfheight from my code.
View 1 Replies
Jun 7, 2004
Can i detect size of external file from swf?
I have btn link in SWF for XSL file and the file is 1 mb big.
I possible to detect the size of XLS and then show e.g. with preloader the downloaded size?
View 1 Replies
Jun 27, 2009
how i can set the size of an external swf i have loaded into a target movieclip ive got the external swf loading into the target ok but its too big.
View 2 Replies
Jan 13, 2010
I have a script that calls for an external swf file. It can import the file no problem but it is always the same size. The problem is that I made the swf file with smaller dimensions and it is still to larger in my window.[code]...
View 1 Replies
Oct 28, 2010
I've got some swf's that I want to be able to load in to an mc and for the swf's to fit to the size of the mc. This works with jpeg's but not swf's, maybe to do with the way they've been set up, but I can't change these swf sizes.The code I have, (that's from another thread) will load a jpeg and make this fit, but not an swf is:
Code:
// container movieClip x and y positions
var container_x = 116.45;
[code].....
View 2 Replies
Nov 13, 2003
If you load an external swf and after it is totally loaded give it as to change size properties. the file jumps from his size exactly to the pretended.
View 1 Replies
Dec 8, 2006
I have a problem where I have a flash file that constantly loops. It reads 3 different variables from a txt file and outputs their data. I also have it refreshing the swf so that when I change data in the .txt file it updates it realtime in the swf without having to reload the file. but what I also need is a way to tell it to make an array a certain length to populate this data. And instead of a fixed size as it is right now, to make it X long where X is declared in the .txt file that i am using.here is the code that im currently using:
Code:
loadVariablesNum("childdata.txt", 2);
imageNum = 0;
[code].....
View 8 Replies
Oct 12, 2009
I want to have different buttons at different points in the timeline which load and play external swf videos. These swfs would ideally be displayed on the stage at the actual height and width of the video rather than in a new window.The swf files themselves will be generated using a third party video player, which wraps itself around an external FLV creating a nice self-contained swf video player (the generated swf contains the player and the video).
The problem is that the third-party video player i'm using ALWAYS displays the loaded swf at the full size of the stage and not the actual size of the swf video. So when the user hits the button to load and play the video, the swf video fills the stage leaving the user no way back to the website.Also if I use _blank to open it in a new window, it fill the entire browser window.Is it possible to force the width and height at which an external swf is displayed on the stage and if so could some guru give me a code sample to use? It doesn't need to be dynamic according to the swf dimensions, as these will be the same for all videos.Below is the code I'm using at this point to call the swf:-
var Xpos:Number = 0;
var Ypos:Number = 0;
var swf:MovieClip;[code].....
..it compiles but I don't see the swf at all, whereas if I don't set the width and height it appears. I've changed the width and the height within these variables but the swf never displays unless I remove swfwidth and swfheight from my code.
View 2 Replies
May 13, 2010
Here is my problem (unfortunatelly didn't find solution @google or in this forum): I'm loading external swf[AS2] into main swf[AS3] using Loader class. The main swf is 800 x 600 and the external swf is 290 x 247. After adding the external swf to the main swf the external swf expands (scale to) from 290 x 247 to the main swf's size: 800 x 600. How can i prevent this? I want the loaded swf to save it's original stage size.
View 2 Replies
Nov 13, 2003
If you load an external swf and after it is totally loaded give it as to change size properties. the file jumps from his size exactly to the pretended. How do one give code to do this in a progressive way.
View 1 Replies
May 15, 2009
I am loading the SWF just fine, but I want the SWF to fit the root stage exactly. What happens instead is that the external SWF seems to include white space from around itself.
For example, the author-set width of the Tanks game (an example file I was using) is 550px, but when I set the width of loadEvent.currentTarget.content.width to 550px, the game is resized to maybe 350px width. I have to set the value of loadEvent.currentTarget.content.width to something like 640 in order to get the game itself to make full use of those 550 pixels.
Code:
package {
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
[Code].....
I have CS4 with AS3. I hard-coded values for cWidth and cHeight instead of getting them from flashvars because I am just testing in the IDE right now. Normally I would get those vars from flashvars.
View 1 Replies
Nov 8, 2009
I'm using Flash Catalyst ( Sorry i�m not sure if there�s any difference between code written in Flash and Flash Catalyst) and I want to implement a link to an external html-page...But I�m trying to open the link at a predefined window size, like a popup! I have found a code in the net but it�s not working.[code]...
View 1 Replies
Mar 3, 2010
Really not enjoying myself with AS3 - it's about as userfriendly as an airplane cockpit. I'm sure Flash the program is quite happy with it, but spending hours into weeks trying to implement pretty ordinary functionality is getting really tiring.
I have a textfield loading in html/CSS file. The textfield is in a container mc. I'm trying to use a scrollbar on the textfield, and I need to set the textfield to newsText.autoSize = "left";. When I do this, the textfield displays the entire contents of the html file in the swf, ignoring the textfield size AND the mc size, displaying all the lines in the file in howover many lines are in the html file.
I'm autocenting my swf in the browser, so this of course throws the whole thing off center.
[Code]...
View 1 Replies
Feb 22, 2011
i try to implement a preloader for my site but i have the following problems:once the preloader is finished it opens my external swf but this one appears below the preloader and very little in the window (almost smaller than my preloader size)
package classes
{
import flash.display.MovieClip;
[code].....
View 0 Replies
Sep 21, 2006
I have an external swf that loads into my main movie using loadMovie. The original .swf that is being loaded is larger than what I'd like to appear in the main movie. Is it possible to tell the movie clip that the external is being loaded into, to reduce the size of the loaded .swf?
note:
I tried a
scaleContent = true;
View 2 Replies
May 12, 2010
Here is my problem (unfortunatelly didn't find solution @google):I'm loading external swf[AS2] into main swf[AS3] using Loader class. The main swf is 800 x 600 and the external swf is 300 x 200.After adding the external swf to the main swf the external swf expands it's size from 300 x 200 to the main swf's size: 800 x 600.
View 1 Replies
Jan 26, 2011
I have created a flash project in CS5 and I have set the size of the stage to 500 x 400. When I view it in the flash player as the swf it plays fine. What I want to be able to do is get the swf file to fill the screen with the image no matter what size the end user scales the window of the Flash player too.
View 5 Replies
Apr 29, 2011
I have a website in fullflash in a html page but I have a problem. It is the height of my swf file under firefox it is ok
but under internet explorer as you can see at the bottom the page the white rectangle is not a the good size. my parameter of of publishing under html are:
[Code]...
View 1 Replies
Mar 11, 2009
My original movie is 800x600 and my external swf is 700x525... I'm using the following script on a keyframe... loadMovieNum("123.swf", 1); ... and under normal circumstances this would work fine... however... I need the 700x525 external swf to retain its size in the center of the 800x600 original movie... right now it's edge to edge and showing what's going on 'offstage' in the external swf! What scripting am I missing? I'm using Flash 8 on a Mac.
View 2 Replies