Flex :: SWFLoader Border Resize?

Aug 29, 2010

I have a MainPage, on initialize I am calling a method which would create a SWFLoader object (aka LoginPage) and loads it in the MainPage. When we run the MainPage in 800x500 window, the LoginPage loads in that window size, however when we maximize the window the content of the LoginPage gets resized to 1027X660, but the border remains 800x500, and the remainig area of the window stays blank.

View 1 Replies


Similar Posts:


Flash :: Resize And Position SWFLoader

Aug 6, 2010

I have a complicated problem with a couple of SWFLoaders.I have an application that loads a swf with a SWFLoader. The loaded swf loads another swf (just a compiled fla). I am adding all my resize and position logic in my loaded swf and it works good on event resize, but when I'm trying to run the same code in my swfs applicationComplete it fails. The same code on startup works great if I run my swf as a standanlone, but for some reason the scale is different when I load it into my application.[code]swfLoader is my loaded swf's swfloader that loads my compiled fla. That is what I need to resize and position to the center. The next numbers are width and height. FlexLoader is the swfLoaders loader (or content if you will). The numbers are width, height, scaleX and scaleY.As you can see the size is the same (this is also the same for the loaded swfs application), but the scale is different. Both scales are calculated from with 1280 and height 720 wich is my compiled fla's size.The only reason why I'm messing around with scale at all is that I can't find the accurate width of my compiled fla to center it (application.width - loadedSwf.width / 2)The part I'm not getting is why the scales are different? What part am I missing?

View 1 Replies

ActionScript 2.0 :: Dynamically Resize A Border?

Feb 13, 2004

I am going to make an image gallery that loads jpg's. Around the jpg is going to be a border that resizes depending on the demensions of the image. I want the border to expand so that it encompasses the image, BUT i dont want the width of the border to change. SO, would this work:

Break the border up into 4 MC's (topbar, bottombar, leftbar, rightbar), and have the topbar and bottombar's width resize according to the jpg loaded, aswell as its _y postion change according to the height of the jpg, and have the side bars height resize according to the height of the jpg and its x position change according to the width of the jpg. If it did it right, could this result in a border that resizes depending on the demension of the dynamically loaded jpg, but the actualy width of the boarder all the way around stays the same? I'm thinking that I'm correct, but just wanted to make sure there wasnt any glaring problems before I procceded.

View 1 Replies

ActionScript 2.0 :: Way To Dynamically Resize A Border?

Feb 13, 2004

I am going to make an image gallery that loads jpg's. Around the jpg is going to be a border that resizes depending on the demensions of the image. I want the border to expand so that it encompasses the image, BUT i dont want the width of the border to change. SO, would this work:Break the border up into 4 MC's (topbar, bottombar, leftbar, rightbar), and have the topbar and bottombar's width resize according to the jpg loaded, aswell as its _y postion change according to the height of the jpg, and have the side bars height resize according to the height of the jpg and its x position change according to the width of the jpg. If it did it right, could this result in a border that resizes depending on the demension of the dynamically loaded jpg, but the actualy width of the boarder all the way around stays the same?

View 1 Replies

ActionScript 2.0 :: Gallery Resize Border Loading Swf

Dec 15, 2005

Currently I am using the gallery that has been posted on a link on Kirupa.com where it uses XML and loads in my case .swfs into a border that resizes according to the size of what is loaded. The reason I am using .swfs is because I plan to somehow make it so that the artwork being loaded can be zoomed in on once they are loaded, how I am not sure quite yet. Anyway, I was wondering if anyone could please tell me why that sometimes the .swfs load once or twice and then when clicking on other artwork thumbnails they do not load at all. THis just happens for the swfs and not when I would use the jpegs instead of swfs. The swfs just do not seem to be loading as planned, sometimes one or two load sometimes none. Was wondering if someone knew why this is happening and could please give me some help if possible, maybe pertaining to actionscript?[code]

View 1 Replies

ActionScript 2.0 :: Auto-resize Border With AttachMovie();

Feb 1, 2006

how i can use this script with attachMovie(); . Im trying to create a border that auto resizes when MCs (basically just an image imported into an mc) load. This will be expoted as a projetor then burned onto a CD. I just need them to load from the library.

Heres what i have so far:

space = 10;
photo_mc._alpha = 0;
MovieClip.prototype.loadPhoto = function(photo) {

[Code]....

View 2 Replies

ActionScript 2.0 :: [MX] Resize Border To Fit Dynamic Image?

Apr 9, 2004

I have a background with a border that is behind dynamic images. I am trying to resize the background to custom fit each jpg that is loaded. However, I cannot get the width/height from the movieclip the jpgs are loaded into and I can't get the width/height from the jpgs.

Here is what I tried:

setProperty("_root.serve_contents.photo_button.pho to_background_image.subpages.photo_examples_bg", _height, getProperty("examples/photo/event/amcel_medium.jpg", _height));

[Code]....

View 1 Replies

ActionScript 2.0 :: Can't Get A Border To Auto-resize To The MC As MC's Are Load With AttachMovie();

Feb 1, 2006

If i cant get a border to auto resize to the MC as MC's are load with attachMovie(); , can i get a border to animate a resize to a specific ._height, ._width (also with a var speed = #)? Am i just totally F'ing this thing up or what. Heres and example: [URL] i would make a second frame and have the AS for the border load a different value and a new MC.

View 8 Replies

Flex :: Flex: Swfloader - Flash File Overlaps It's Configured Size?

Dec 7, 2009

i'm using swfloader to load swf file in the middle of the screen using the following command:

<mx:SWFLoader id="game_swf" source="crazy_counting.swf" x="198" y="0" width="721" maxWidth="721" height="531" maxHeight="531" />

now stage of the flash file takes the exact size that i stated by the flash file itself is overlapping the stage with some graphics

View 3 Replies

Flex :: SWFLoader - How Integration Is Done

Oct 10, 2010

Flex is good at produce code, whereas Flash is good at animation, how the integration is done? If I want to insert the animation produced by flash, what's the recommend way to do the integration? Do I need to use SWFLoader?

View 1 Replies

ActionScript 3.0 :: Add A Visible Border To The Image That Allows To Resize The Image

Mar 19, 2010

i am building an editor which allows you to resize images and to do this (once an image is selected) I add a visible border to the image that allows you to resize the image. so i want to have a function something like,

[Code]....

and i have to call this redrawborder function inside the MOUSE_MOVE listener that controls the resizing (so that i am constantly removing and redrawing the border). constantly removing and redrawing the frame seems very inefficient. is there some property or better why to do this? i want to have, displayobj.scaleChildren = false or something like that

View 1 Replies

Flex :: Control SWFLoader Volume?

Jul 2, 2009

I am doing a elearning project in flex and it consist in a secuence of swf files and a player that load it based in a xml file, the problem is all swf files contents narrations and I need to control the volume of narrations from the player interface, anybody know how I can control the volume of a swf file from flex??

View 1 Replies

Flex :: Take Screenshot From Loaded Swf From Swfloader?

Dec 27, 2009

can i save a screenshot from a loaded swf using the SWFLoader class ?

View 1 Replies

Flex :: Swf - Hide Component From SWFLoader

Jun 15, 2010

How can I hide a component and what AS3 code to use to hide a Flex Component from an external swf file?

View 1 Replies

Flex :: Difference Between SwfLoader And ModulLoader?

Feb 18, 2011

what is difference between swfLoader(load application) and ModuleLoader(load module)?

View 1 Replies

Flex :: Unload Swf File In SWFLoader?

Mar 10, 2011

In Flex 3 I have a SWFLoader[url]...

and after some time I invoke player.unloadAndStop(). And I always get this error:

ReferenceError: Error #1056: Cannot create property __tweenLite_mc on _swftest_mx_managers_SystemManager.

View 1 Replies

Flex :: Swfloader With A Swf Which Loads Another Swf File?

Mar 23, 2011

I have one Swfloader. This swfloader loads file A.swf.On creationComplete event, File A.swf loads another swf(file B.swf).

Everything works fine when I run the application once in the same machine.But when I run two or more instance of the application, the first works fine (both file A and B are loaded) but the second swf (file B) is not loaded by file A.why the first swf (file A) doesn't load file B, when the application is running in multiple instance ?

View 1 Replies

Flex - Transparent Background For SWFLoader?

May 20, 2009

I created a "Loading" spinner in a SWF. I display this spinner in my main application SWF using SWFLoader.How do I make the SWFLoader transparent? Currently it uses Flex's default background color even though I've set backgroundAlpha="0".

My spinner SWF's main MXML: (Note the use of backgroundAlpha)

[Code]...

View 2 Replies

Flex :: Swfloader - Load A .swf And Use Its Library?

Jun 12, 2009

I have a symbol in a .swf's library, with a linkage name of "Pana". The Pana symbol is just a 100 frame animation that I would like to have timeline control over in Flex. So how can I load the .swf and then add the Pana symbol to the display list and control it's timeline?

View 2 Replies

ActionScript 3.0 :: Hide Flex Component From SWFLoader?

Jun 20, 2010

How can I hide (visible=false) a component and what AS3 code to use to hide a Flex Component from an external swf file?I have found out this doc, but I have no idea on how to implement it:

View 1 Replies

Flex :: Control SwfLoader And Sound Content

Aug 25, 2009

i am doing a project and i am loading .swf files in a FLEX 3 SWFLoader. i made a HSlider as a seeker to control the .swf file (forward and backword); BUT... if the swf file has sound and i drag the seeker forward or back word the sound does not effect i want to control the sound as i control the swf file note:: the sound is in the .swf file not loaded

View 1 Replies

Flex :: Detecting The Size Of SWFLoader Content?

Sep 23, 2009

I want to load in a SWF and set it to fit in the window, whilst keeping it's aspect ratio.When I do this by setting the height and width of the SWFLoader, the SWF will resize to best fit in the space (as it is keeping it's aspect ratio).However I can't find a way to detect the height and width of that SWF now it has been resized. The size of the SWFLoader reflects what I set it to, and the SWFLoader.LoaderInfo size seems to be totally random.

I have also tried the loaderInfo.content, but again I don't get a value that compares to the size of the SWF I have loaded (or at lease the size of what is visible).The only thing I can think to do is to know the height and width before and then figure out the aspect ratio, so if I resize the width to 50% of the window, I can do the maths on the height to make the swf loader the same height as it's scaled content.

View 1 Replies

Flex :: AIR SWFLoader CPU Usage Takes Over 50 Percent

Mar 5, 2010

I have an AIR application, I use SwfLoader to load another swf file to display in this app. The problem is the CPU Usage always takes over 50%, but it only takes 15% when the swf file runs in standalone mode.

View 1 Replies

Flex :: Play Youtube Video Using SWFLoader?

Nov 2, 2010

How can i play youtube video using SWFLoader?

Currently, i can play only 1 video at a time (suppose its name is A), if i try to play video B it doesnt play it. but if again i play vidoe A, it works.

View 1 Replies

Flex :: Specify ApplicationDomain.currentDomain When Loading Via SWFLoader?

Jan 26, 2011

I'm using Flex Builder 3 to build what will be a fairly large project. I'm suffering from modules stepping on each other and a conflict between application/module. My structure looks something like the following:

[Code]...

View 1 Replies

Flex :: Modifying Variables In A Running Swf From An SWFLoader?

Jun 23, 2011

I have a flex application that's compiled with flex 4.1.I want that flex application to load an swf that contains the variable score and i want to be able to modify this variable.I wrote two versions of swf, one compiled with as2 code and the other with as3. this is my flex application:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"[code]......

View 1 Replies

Flex :: Alert Gives PopUpManager Error When Used With SWFLoader

Jul 13, 2011

I am using SWFLoader to load a swf file. The code is below:[code]

View 2 Replies

Flex :: Memory Leak When Using SWFLoader In Adobe AIR

Aug 11, 2011

I'm trying to load windowed sub-application in another windowed application, The requirement is to replace one loaded application with another on user action.

I tried the documented method of unloadAndStop() on the swfLoader in the main windowed application, but somehow during memory profiling I could see the instances of those applications were maintained in the memory even after explicitly running garbage collection.

Where as If I make those windowed application as modules, and then try to load them using the Moduleloader things work smoothly and unloaded modules are removed from memory.

View 2 Replies

Flex :: Event Sets The Dimensions Of A Swfloader?

Aug 18, 2011

I am trying to scale a swf that has been loaded via a swfloader. When I get the complete event or the init event the dimensions of the swfloader are still zero. I don't see a value in the dimensions until I do a resize of the browser window. The swf is just an animation. Trying to resize the actual swf content gives inconsistent results.

View 1 Replies

Flash :: Flex SWFLoader Speeding Up Animation?

Nov 30, 2011

I am using SWFLoader to load a little animation into my flex environment but for some reason the animation is sped up a lot. This is the case with all of the animations I tried. Is there a way to slow it down or fix this?

View 1 Replies







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