ActionScript 2.0 :: Loading External SWF And Masking Stage.width

Aug 10, 2006

I am loading a swf into another swf. The swf I am loading has objects off the stage, and when i load the swf into the other it shows the objects off the stage and screws up my positioning logic. Is there any way to load the swf and hide all the objects that arent on the stage?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: Loading Bar Of Preloader Fits To Stage Width?

Jan 19, 2009

I am currently using the preloader script below and I would like to make my loading bar auto stretch to stage width.

// PRELOADER SCRIPT
myBar._xscale = 0;
loaded = false;

[code].....

View 5 Replies

ActionScript 3.0 :: Check Stage Width/height Of External Swf?

Oct 12, 2009

I'm loading external swf and I want to check it's stage width and height, do you know how to do this? I dont want to check the width and height of the swf because it changes depending on which frame is currently playing in this swf...

View 1 Replies

ActionScript 3.0 :: Find The Width Of An External Swf File That Loading In

Apr 2, 2010

I have loaded in an external swf file and it works fine.
 
However, when I get the width dimensions of the movieclip that is housing the external swf file it gives me a '0' for the width.

View 1 Replies

Flash :: Specify Width And Height When Loading External Swf File?

Jul 14, 2010

I am trying to load an external swf file. The swf width and height is small and I want to enlarge it when loading it. (My scene has large width and height). My current code could load the file but I am not sure how to enlarge the swf width and height.

var request:URLRequest = new URLRequest("index.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);

View 1 Replies

Actionscript 2.0 :: Stage.width - Make A Minimum Width And Stop Resize?

May 27, 2009

is there a way to make a minimum width and stop resize? I have a menu I am building that is locked to the bottom of the browser and 3 buttons on the left and a movieClip on the right. When you resize the browser window - currently - you can make the button on the right sink under the three on the left.

[Code]..

View 6 Replies

ActionScript 3.0 :: Resizing Movieclip Width To Stage Width Dynamically?

Jul 13, 2011

how to get a movieclip named "topnav" to resize it's width to match that of the stage. I am trying to resize the width of a top nav bar across a resizable RIA. I have started with the following code but with only partial success:

Code:
stage.addEventListener(Event.RESIZE, resizeListener);
function resizeListener (e:Event):void {
var reg2 = stage.stageWidth / 100;

[Code].....

View 1 Replies

Actionscript :: LoaderInfo.width != Stage.width In Flex 3.5?

Nov 21, 2011

Running into strange behaviour with flex 3.5. Here is a minimal code:build.xml target:

<target name="player">
<mxmlc
file="${APP_ROOT}/player.mxml"

[code].....

View 1 Replies

ActionScript 3.0 :: Stage.width Returns Zero Instead Of Document's Width

Aug 22, 2009

trace ("The Width is: " + stage.width + "."); trace ("The Height is: " + stage.height + "."); The Width is: 0. The Height is: 0. Why is it Zero instead of the document's size ?

View 2 Replies

ActionScript 2.0 :: Loading External Swf To Stage?

Feb 21, 2011

I'm building my brother a flash AS2 website for his construction company....everything is going smoothly up until now where he wants to have a "cover flow" - iTunes album art style gallery to display the images of his work portfolio.

I am building his website COMPLETELY out of flash, from what I know - I'm not pro enough to build the cover flow style gallery myself so I'm looking for a nice external flash gallery that I can modify and load the gallery swf into my main stage / website... or directly place the entire flash gallery into one frame of the main website.

I came across this application called "Gallery Studio" by ijoysoft [URL] that very easily lets you automate flash galleries with your images and you can export it as a single .swf file. IT IS PERFECT! It has something very similar to cover flow and my brother loves it.

Now I've worked with loading external .swf's onto the main stage of my websites before.. but for some reason I cannot load THIS automated swf onto my flash stage. I can't figure out why it wont appear.on the main timeline of the website "AHRENS.fla" frame 252 is where I want the gallery to appear "gallerytest.swf" (gallery automated from the Gallery Studio program) I am using a simple:

loadMovieNum("gallerytest.swf", 400); to call it in.

I get no errors.. and nothing appears.

AHRENS.fla <- flash website file
gallerytest.swf <- automated gallery to place in frame 252 of AHRENS.fla

if I could just figure out this one problem... it will solve all my headache and pain, as I've run into loading external galleries before. Since I work making my website COMPLETELY in flash, making image galleries have always been a problem for me, I have to do them by scratch unless it requires something fancy.like cover flow, where then I look for freeware galleries off the internet but they always require javascript, their own webpage, html, css, divs etc that can't be integrated into my all flash websites. Now that I've found GALLERY STUDIO it is perfect to do special effect galleries..

View 8 Replies

ActionScript 3.0 :: Loading External .swf Onto Stage?

Jan 10, 2011

I am trying to load a photo gallery saved to an external .swf file onto the stage of a website I am building. But every time I run the movie I get this message:

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: file:///C|/Users/art.i.choke/Documents/Tracey%20Bones%20Website/gallery.xml
at gallery_fla::MainTimeline/frame1()

The .swf file is located photos/gallery.swf in relation to the site .fla.Here's the code I am using to load the .swf:

var my_Loader:Loader = new Loader();
var my_url:URLRequest=new URLRequest("photos/gallery.swf");
my_Loader.contentLoaderInfo.addEventListener(Event .COMPLETE, finishLoading);[code].....

View 4 Replies

ActionScript 2.0 :: Loading External Jpg To Stage?

Aug 24, 2006

I'm using Flash MX 2004 professional, and actionscript 2.

I'd like to load an external jpg to the stage. I don't need a load bar or anything like that.

View 2 Replies

ActionScript 2.0 :: External SWF Not Loading ON TOP Of Stage?

Aug 7, 2009

"I am new to flash, " and am having a (minor?) problem. I am using ActionScript 2.0.Currently I am having issues with the way my external swf. is being loaded. I am using a MovieClip Loader. I want the external SWF that is loaded into the movie clip holder to be placed on top of the stage and covering everything beneath it. To get a better clue of what I am dealing with you may check URL...- that is what i am working with currently, and if you click the thumbnail image you can see a green box with body text which is loading. however I would like it to load on top instead of below![code]Within the Home swf is another SWF being loaded.URL...

View 3 Replies

ActionScript 3.0 :: Masking Out Off-stage Content Of Loaded .swf?

Aug 28, 2009

I'm just starting out with AS3 and this is what I'm trying to do:

1. I have an external .swf banner which is 900x250 pixels

2. I want to load this .swf into my main project, using this code:

var myLoader:Loader = new Loader();
addChild(myLoader);
var myRequest:URLRequest = new URLRequest("ptp.swf");
myLoader.load(myRequest);

3. The problem is that the .swf banner that is being loaded has content 'outside the stage' so instead of just showing the 900x250 area I see all the off-stage content as well.

How do I 'mask out' the off-stage content of the loaded .swf so that it will be only the 900x250 that I want?

View 2 Replies

Professional :: External Image Loading Into MovieClip On Stage

Oct 18, 2010

I am trying to load an external .swf (actually it is only an image that I published as a swf file, not a complicated movie) but I get errors. I am trying to load the .swf into a movieclip and the movieclip appears on the stage. I have put the code in frame 1 where the image should appear (in the movieclip). The code that I used is below and works fine with a .jpg and when I load it directly on the stage, that is to say, when I put the code in a frame on the stage. Why does it not 'work' right now?

I have added 'parent' in 'parent.event.target.content.y = 200;' in the first frame of the movieclip timeline, to make sure that it will appear on the (main)stage. The error that i get is this one:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at galerie2010_fla::mcBallon1_11/frame1()

This is the code in frame 1 in mcBallon1:
var imageRequest1a:URLRequest = new URLRequest("images/SWFoverig/ballon1_702x368.swf");
var imageLoader1a:Loader = new Loader();
imageLoader1a.load(imageRequest1a);
addChild(imageLoader1a);
imageLoader1a.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete1a);
function onComplete1a(event:Event):void{
parent.event.target.content.y = 200;
parent.event.target.content.x = 205;}

View 2 Replies

Flash :: Loading External SWF W/ Stage Reference In Class

Nov 17, 2011

I'm unable to load forces.swf (assume I can't edit it, as I don't have the source code) through an external swf, due to Stage reference in the base class how would I go about loading it (and any other possible SWF) without errors being thrown?

Here is a link to the problem I am trying to fix:[URL]..

View 1 Replies

ActionScript 3.0 :: Loading External Swf Fails With Stage Access?

Mar 2, 2009

My problem is simple and annoying:

I have two swf files, where one (lets call it A) is supposed to load and display the other(B).

The first swf (A) is using the Loader class in AS3 to load the other. In fact the loading code in A is an exact copy of the Adobe example code from the livedocs for Loader.

The other swf (B) just spins some meaninless graphics in a loop, and has a document class that has one line of code in its constructor:

trace("B's stage is: " + stage);

When I start swf A, the loading of swf B starts fine. The progress is reported as traces all the way up to 100% before swf B's constructor is called and the following is traced:

B's stage is: null

THEN the complete handler is triggered (yes. AFTER the constructor was called for B with no stage).

The problem is that I really need B to have a stage for my project to work, as I will actually use stage, instead of just tracing it. I have really tried everything to get this working. Is there no way so soothe B into having a valid stage before its constructor is loaded?

[URL]

View 4 Replies

ActionScript 3.0 :: Loading An External Swf File On Main Stage?

Sep 3, 2010

I m loading an external swf file on main stage which has some links, I want if I click on any of these links the timeline of the main stage should chenge.

View 1 Replies

ActionScript 3.0 :: Loading External SWF With Stage Reference In Class?

Nov 17, 2011

I'm unable to load forces.swf (assume I can't edit it, as I don't have the source code) through an external swf, due to Stage reference in the base class.

How would I go about loading it (and any other possible SWF) without errors being thrown?

Here is a link to the problem I am trying to fix:

[URL]

View 14 Replies

ActionScript 2.0 :: FMX Masking - Attach A Movie Clip On Stage?

Dec 31, 2002

ok so heres the problem: i have some buttons that are suppose to attach a movie clip on stage after you press it. This works perfectly, but after i mask it, the masking box blocks it so i can't click on anything.

i hope you understood what i'm saying, and i've tried using the 'setmask' code, but that doesn't work either.

View 11 Replies

ActionScript 2.0 :: Align Clip On Stage That Has Wide Masking?

Apr 6, 2006

Is there a way to say "only use the coords of the viewable area" when aligning a mc that is masking a really wide object? (I'm looping through XML and duplicating MC's inside a centered mc and under a mask.)

View 7 Replies

ActionScript 2.0 :: Huge Lagging - Loading An External .swf File Onto Stage

Jul 24, 2006

I am loading an external .swf file onto my stage. This is the script I am using:

[Code]...

It loads everything great, but it lags so bad when it plays!!! Am I loading everything prperly? The external .swf file is just under 200 kb, but that should be ok, right? there is a way to prevent lagging. maybe a way to ask for more ram from the computer?

View 7 Replies

ActionScript 2.0 :: Loading An External Swf File/movieclip Onto The Main Stage?

Jan 7, 2009

I am loading an external swf file/movieclip onto the main stage - it is a simple transition and once it has finished playing, I want to jump to a frame in the main stage.I've loaded the movieclip onto the stage, but don't know how to jump to another frame after it has played and stopped...what's needs to be added to this to goto a frame on the main stage........

on (release) {
loadMovie("black.swf", holder);
}

View 2 Replies

ActionScript 3.0 :: Masking External Loaded Image?

May 24, 2009

I'm loading an external image to use as part of the background for each section (other section, new external image). But that image needs to be animated in, in a certain shape (I have created a kind of spatter animation).I always use an Movieclip container to place my external images. So on one layer I have this container clip. I mask this layer with a layer on top of that one, which has the splatter animation (this splatter animation is not a movieclip, just some keyframes with the animation).Everything works, except that the image is not loaded. I checked everything, maybe I put the wrong url or something. But nothing.

So I tried unchecking the mask option. Ok... now my image did load. But as soon as I check the masking of that layer, again I'm left without image.It seems to me that it has problems with loading images that are begin masked. How can I fix this? I tried google'ing, but few solutions were found. And I'm nog programer-guru. I use flash semi-design/semi-program.

View 2 Replies

ActionScript 2.0 :: Loading 4 External SWFs Into An Empty MC On The Main Stage For Each Of The 4 Projects?

Feb 12, 2010

The problem is this: I am loading 4 external SWFs into an empty MC on the main stage for each of the 4 projects.So you press a button on the main stage for a project, and it loads that specific SWF.These SWFs contain an opening text for each project, a button to "continue" to the gallery, then the text fades out and the gallery loads.That's all within the SWF itself.The SWFs work fine on their own, but the problem is that when I load the SWFs into the empty MC on the main stage, the "continue" button doesn't work correctly The SWFs load fine, it's just the button At first when I pressed the button it would send my main stage back to the first frame, so I thought it was because the AS for the button in the SWF was probably conflicting with the main stage and confusing it. I went back into the SWFs and tagged part of the SWF timeline with the name "togallery" so that when you click the "continue" button, in theory, Flash knows specifically where to go within the timeline of the SWF and not the timeline of the main stage.

That hasn't worked either. The button just doesn't work at all now, at least not when the SWF has been loaded onto the main stage. Again, it works fine on its own. So what can I do? How can I get a button within an external SWF to reference only it's own timeline and not that of the main stage?

View 1 Replies

Flash 10 :: While In Full Screen, Main Stage Resizing When Loading An External Swf

Nov 10, 2010

My main swf is 960x600 and loads full screen. it is a projector or swf, local. I have the code on frame 1 to ensure full screen and show all:

stage.scaleMode = StageScaleMode.SHOW_ALL;
stage.displayState = StageDisplayState.FULL_SCREEN;

Then I load an external swf into a mc, and it goes full screen as expected. BUT the main swf that loaded that external one, at the time of load, suddenly gets scaled back down to its normal size: 960x600, on the top left corner of the Player Window (or the full screen), so somehow at 0,0. Whn I unload the external swf, I can put the code stage.scaleMode = StageScaleMode.SHOW_ALL; to get it back to where it was. But unfortunately I have some buttons from the Main swf that are supposed to be on top of the loaded one, and should stay where they are. But now they all move because of this scaling down.

the mc that is being used as a container for the loaded external swf is an empty mc located at 0,0. The external swf has the same size as the main one: 960x600

I searched and tried things but could not get it to stay in show-all mode when loading this external swf...

View 0 Replies

ActionScript 2.0 :: Loading Named Buttons Onto Stage With Coordinates From An External File

Jan 15, 2005

i have 20 buttons, and i want to design an external file that holds the coordinates for each named button.

how would i go about this, since the external file would be read as a string by flash?

View 3 Replies

ActionScript 2.0 :: Loading Named Buttons Onto Stage With Coordinates From An External File?

Jan 15, 2005

i have 20 buttons, and i want to design an external file that holds the coordinates for each named button.how would i go about this, since the external file would be read as a string by flash?

View 3 Replies

ActionScript 3.0 :: Masking Some Dynamic Content That Is Brought In Through An External Swf?

Mar 25, 2009

it is masking some dynamic content that is brought in through an external swf. there is a dynamic text field and also a picture loader. whenever either one of these changes, the mask gets all distorted with holes/lighter areas in it.

View 1 Replies

ActionScript 2.0 :: Adjusting Columns And Rows On Stage Resize, According To Stage.width?

May 10, 2008

When you resize the browser window the thumbnails rows and columns adjust accordingly to fit.I've managed to attach the thumbnails correct when my enableButtons() function is called but i'm unsure how to approach resizing.

Stage.align = "TL";
var numberOfGalleries:Number = 20;
var thumbMarginX:Number = 163;
var thumbMarginY:Number = 109;

[Code].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved