SWF Content Will Not Scale To Fit Loader Component

Nov 12, 2009

I have a flash file for a website section.  I inserted a Loader component component to load a .swf file, and set the "scaleContent" property (in the Component Inspector) to True, but the .swf loads tiny, like a thumbnail.  I also set the minimum dimensions (400x300), but this seems to have zero effect.  I also have the size of the loader component set to 424x350. I have played with both sets of these numbers to no effect. 

Here is where I've uploaded the file for testing:  [URL] If you click any 1 of the 4 images, it will load 1 of 4 .swf files within (but very small).

Furthermore...the size of the embedded videos is not always consistent. Sometimes, after re-uploading the main file, Some of the 4 videos will be correctly sized, but if visited more than once, they return to being small.  Very weird.
 
P.S.  I have attached a screen capture of the Flash program, showing the component inspector and properties.

Attachments:
screen_capture.jpg
(225.1 K)

View 4 Replies


Similar Posts:


IDE :: Flash Content To Scale When Scale Browser Window?

Feb 19, 2010

I want my flash content to scale when I scale my browser window.

View 5 Replies

ActionScript 3.0 :: Loader Event.INIT Fires But Loader.content Is Null?

May 9, 2009

The title describes the problem: Loader.load() is firing the INIT event, but in my listener it's reporting loader.content as null. The description for INIT event is "Dispatched by the associated LoaderInfo object when the properties and methods of the loaded SWF file are accessible."I'm loading a lot of JPG images, and 95 percent of the time it works fine; the init listener fires and reports valid loader. content.I absolutely need loader.content available because I need to set the bitmap smoothing property to true.I've tried using Event.COMPLETE and it has the exact same problematic behavior.

View 13 Replies

ActionScript 2.0 :: Content To Load Into The Loader And Have Its Content Change Once Click On The Other Button Flash 8

Aug 15, 2009

I'm have made some buttons (movie clip) and when I click on it, I want a file (home.swf) to load in a loader (mx.contents.loader) and I want the other buttons to do the same, all load into the same loader. I have no Idea how to do that. The way I have it set up now, the home.swf will load over the entire screen and that is not what I want. I just want the content to load into the loader and have its content change once I click on the other buttons. Here is a copy and past of that I have at the moment, I'm using Flash 8 to do it all.

[Code]...

View 1 Replies

ActionScript 3.0 :: Remove The Loader But Its Content Still Playing I Know That From The Sound Of The Content Was Loaded?

Apr 20, 2009

How to remove a loader and its content using removeChild or any other way, I had removed the loader but its content still playing in the background i know that from the sound of the content.this is the my code for removing:

removeChild(getChildByName("SampleLoader"));

View 9 Replies

ActionScript 3.0 :: Load External SWFs, AddChild(Loader) Versus AddChild(Loader.content), Etc?

Jul 29, 2009

I have a main "shell" swf which, by clicking several buttons, will load/unload various external swfs into a Placeholder_mc which resides on the main timeline in Shell.swf In the documentation and tutorials I've seen a couple different methods, and I'm not sure I quite understand the difference, or at least the reason you would use one over the other...In the 1st method, you can just add the Loader object using the addChild() method:

Code:

var myLoader:Loader = new Loader();
var myURLRequest:URLRequest = new URLRequest("ExternalFileA.swf");
myLoader.load(myURLRequest);
Placeholder_mc.addChild(myLoader);

This will apparently add myLoader to the display list once it has completely loaded.The 2nd method, you supposedly can add the Loader.content; however, it appears you can only do this once the content has completed loading, so you need to incorporate an event handler with the contentLoaderInfo object:

Code:

var myLoader:Loader = new Loader();
var myURLRequest:URLRequest = new URLRequest("ExternalFileA.swf");
myLoader.load(myURLRequest);

[code]....

What are the pros/cons of adding the entire Loader object, as opposed to the Loader.content and vice versa?

View 7 Replies

ActionScript 3.0 :: Scale The Content When Publishing?

Dec 15, 2011

I wanted to ask about resizeing things. Lets say that i have a stage with demensions 1280x720(with  few Movieclips in different locations ) and  web browser is working with max 800x600 how to scale the content when publishing

View 1 Replies

Resize Your Stage And Scale Content?

Mar 9, 2012

I have to adjust to a new size and my objects have to adjust accordingly. Is there a way to select multiple objects on separate frames and resize as a group?

View 1 Replies

Professional :: Dynamic Scale Of A Flash Content?

Mar 20, 2010

I use Flash CS4 and most of the explanations you find online are for CS3.I used a mechanism once in HTML that set the flash site to 100% width, 100% height, which did scale it but there was no maximum limit and all the content got scaled equally. I would like to do it like in the HP above, where certain elements are differently scaled.

View 1 Replies

Iphone :: Flash - AIR - Make The StageWebView Content To Scale?

Jul 20, 2011

I am using Flash Builder 4.5 to build an iPhone app.In order to display ads I plan to use StageWebView and load a webpage containing the ad code.Lets say the ad will be 320x50 pixels.So the Actionscript code would look similar to this:

adView = new StageWebView();
adView.loadURL("http://www.myadishere.com/ad.html");
var top:Number = navigator.actionBar.measuredHeight + 1[code]....

In the application I have set the applicationDPI="160" so the application is displayed properly when run on iPhone3 and iPhone4.However the content of the StageWebView looks tiny on iPhone4.If I do adView.drawViewPortToBitmapData() the bitmap's size is OK.how to make the StageWebView content to scale accordingly, so it looks OK regardless of the screen DPI?

View 4 Replies

IDE :: Flash Full Screen In Browser - Lock Certain Content To Not Scale?

May 6, 2009

I am trying to create a website that will full scale the browser window with all the flash elements inside but I am having trouble deciding what resolution to design in and how to lock certain content to not scale.

I am trying to achieve the effect that will consist of a high resolution image as the background for each section of the website that will full screen. Content such as logo and footer etc should always remain locked. An example of this can be found at http:[url]..... If you shrink the browser window all content stays centralised and the top and bottom footer do not scale, although the central part of the site does change. I was wondering how this effect was achieved? How does some content remain locked and others scale. I really can not figure out what dimension size to design in and achieve the high res image effect for the site. I too will require a top and bottom footer.how that site was published and constructed that would be brilliant.At present I am playing around with the following code:

fscommand("fullscreen",true);
Stage.scaleMode = "noScale";
Stage.align = "C";

I then know the publishing settings should be set at 100 x 100 percent and that when the swf is imported to the html to write the following style tag:

<style>
body {margin;0px:padding;0px}
</style>

View 1 Replies

ActionScript 3.0 :: Re-using Loader Content?

Nov 27, 2009

I've run into something I find very, very odd. Bordering on bug-level odd, even.I load a gif file with a Loader. No fuss there.I then attempt to instantiate two different bitmaps with the loaded content:
 
image = Bitmap(loader.content);
image2 = Bitmap(loader.content);
 
I then place them apart on the stage so I can see them both:
 
image.x = 50;
image2.x = 200;
 
Finally I add the bitmaps to the stage:
 
addChild(image);
addChild(image2);
 
But only one of them turns up - depending on the order in which I assign the x-values. The bitmap I assign to first, is the one that renders on the stage.I should have two distinct bitmaps after the first two lines.When I examine the values, it's as if there's only one object on the stage, yet debugging info suggests that there are in fact two objects, both referencing the same bit of memory for the image.
 
trace(image.x);trace(image2.x);trace(stage.numChildren);
 
These traces yield: 2002001
 
How do I force it to make an actual copy of the content, not just the memory reference I think is going on here? I'd really prefer not to load the gif file for every new instance.

View 9 Replies

ActionScript 3.0 :: Variable For Loader Content?

Jan 7, 2009

Is it possible to create a variable that references a loader content ? For instance, in the example below, is it possible of having something like:

var LoaderContent:SOMETYPE = new SOMETYPE();
LoaderContent = pictLdr.content;

And then using LoaderContent variable instead ? What type of variable should it be ?

var container:Sprite = new Sprite();
addChild(container);
var pictLdr:Loader = new Loader();[code]........

View 5 Replies

ActionScript 3.0 :: From Loader To Movieclip And Other Content?

Nov 24, 2008

I have an XML-file which holds some info about picture and text.A designer have made some mc's and I have to load the pictures (which has URL from XML) into this mc-animation. I can only load the images into the loader and then I cant get the image from the loader in memory into the animated timeline mc. how this is done? I have tried addChild but this doesnt help me attach the loaded picture to the anim_mc. or...?The designer also have a textlayer, which is put in a mc and then animated. And the text from XML must go into the textfield and be animated.

View 5 Replies

ActionScript 3.0 :: How To Get Loader Content Width

Dec 11, 2011

I have tried to get width of my thumbnail, it is loading and showing jpg image, I stuck to find it's width.
ld=new Loader()
ld.load(new URLRequest(obj.@thumb))
addChild(ld)
ld.contentLoaderInfo.addEventListener(ProgressEvent.PR OGRESS,preload)
private function preload(event:ProgressEvent):void{
[Code] .....

View 2 Replies

Actionscript 3 :: Loader Content Always Null

Feb 18, 2010

I load successfully an external image using a Loader class but every time i trace the loader.content property is found null.

View 1 Replies

ActionScript 3.0 :: Unload Content In A Loader?

Feb 9, 2010

I have a URLloader that load an xml file, what i need is to be able to clear whats in the loader once the data of my xml has been loaded, is it possible to use unload in the on complete function? for example[code]...

View 3 Replies

ActionScript 3.0 :: Slideshow With Content Loader?

Sep 8, 2010

I am looking to develop a slideshow with images that are loaded from an external source. I am able to write the code for one loader but if I try to duplicate the frame, it says my functions are duplicates.

View 1 Replies

ActionScript 3.0 :: Loader Not Loading Content?

Jul 17, 2009

I have a loader, and it doesn't seem to be loading my content when I am viewing it on my website. However, when I open up my loader.swf in a browser, it loads up my content once it is done loading.

Loader AS3:
var loader = new Loader();
loader.load(new URLRequest("slideShow09.swf"));

[code].....

View 3 Replies

ActionScript 3.0 :: Load Different Content Into One Loader?

May 2, 2009

Im making a main page that will load different content into one loader. I have the loading URLRequest calling a variable for the link and then on a certain button click it will change the swf to be loading.The problem is this: This code is being called in a movieclip inside the main timeline called "loaderHolder"

[Code]...

View 3 Replies

ActionScript 3.0 :: Scaling Loader Class Content?

May 27, 2009

I have a "master" SWF file into which I load content (other SWFs) via the Loader Class (with code below).
var contentLoader:Loader = new Loader();this.contentContainer.addChild(contentLoader);I load the content (these other SWFs) into a MovieClip container on the stage called "contentContainer". The "contentContainer" is much smaller than the "master" SWFs stage and also much smaller than the original size of the SWFs that the Loader is loading in. Also, and this is very important, the "contentContainer" itself is sized -- not scaled -- (see code) and placed on the stage depending on how large the stage is scaled (I am trying to make one of those "liquid stage" flash sites that fills the browser window with flash content regardless of window size).//this resides in a function that is called whenever the stage RESIZE Event is fired

[Code]...

View 3 Replies

Actionscript 3 :: Getting Size/Coordinates From Loader Content?

Mar 23, 2010

i'm attempting to position a textfield to the bottom left of an image that is added to the display list from the Loader() class. i don't know how to access the width/height information of the image.

var dragSprite:Sprite = new Sprite();
this.addChild(dragSprite);
var imageLoader:Loader = new Loader();
imageLoader.load(new URLRequest("picture.jpg"));

[code]....

within the displayPic function, i could assign the evt.target.content.height and evt.target.content.width to variables that i could use to position the text field?

View 1 Replies

Actionscript 3 :: Turning Loader Content Into MovieClips?

Jul 3, 2011

So heres a loader that works:

public var loaders:Array = new Array();
public var loaderClip:Array = new Array();
function loadPersonmenu() {

[Code].....

The wierd thing is, my function fileCompleteListener() doesn't even referance any of these Loader instances or swfs, which is why I didn't include it in my code. This isn't a problem in the first conde

View 1 Replies

ActionScript 3.0 :: Convert Loader Content To Bitmap

Oct 12, 2009

I've seen mention of there being some security risk with loading images and leaving them in loaders. A few articles I've run across said that you should always draw them as a bitmap when the loading is done.

Is there any truth to this? I have a few loaders I have left in my project, do I need to hand their content off to a bitmap? What is the advantage of always having a bitmap represent the loaded image?

View 9 Replies

Actionscript 3.0 :: Loader Listen For Content Event?

Jul 18, 2009

I have an external SWF with a custom event.Custom event:

Code: Select allpackage
{
import flash.display.Sprite;[code]...

Now,I would like that my loader (main.swf) listen to this event.How can i do that? I tried:

Code: Select allloader.content.addEventListener(MySprite.MYEVENT, doSomething);

But got this error:

Code: Select allTypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event@51866881 to MySprite.

View 3 Replies

ActionScript 3.0 :: How To Create Bitmap Of Loader Content And Resize It

Mar 10, 2010

I am loading a fairly large image file and want to create a bitmap of the loader content. I want to then use this Bitmap and resize it according to the current dimension of the stage. However, I also want to keep the loader content as "originally loaded" as a reference in case the stage is resized and the user wants to view this particular image again. The way my AS is written as of now, I am manipulating the loader content. How do I not do this? How do I "copy" the loader content so I can manipulate the bitmap copy while leaving the loader content unaltered?

<AS>
var lightboxImage:Bitmap = new Bitmap();
function resizeLightbox():void{
lightboxImage = myLoader.content;
lightboxImage.width = myLoader.content.width;
lightboxImage.height = myLoader.content.height;
[Code] .....

View 8 Replies

ActionScript 3.0 :: Loader Object Content Property Not Updating?

Jun 1, 2010

I have a SWF on another server, it loads the first SWF.  Here's my basic code:

Security.allowDomain("my.central.server.com");var loader:Loader=new Loader(); // used to load external SWF.var mcExternal:MovieClip; // used to store the loaded SWF.loader.load(new URLRequest("http://my.central.server.com/data/FSC_Test_Automation/called.swf"));loader.conte

[code].....

View 6 Replies

ActionScript 3.0 :: Loader Reporting Incorrect TotalFrames Of Content?

May 9, 2011

detecting the totalFrames of content loaded into a Loader?
 
I made a dummy animation just for testing (150 frames of text just tweening across the screen) to load. I load that in and when it's loaded I'm always told it's only 2 frames long.
 
e.g.:
 
package {
import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;

[Code].....

I just wrote that by hand now as an example so there might be a typo here or there but you get the general idea. I'm using CS5, flash player 10, just testing the movie and every time it traces 2 total frames. how to tell how many frames the loaded content actually has?

View 2 Replies

ActionScript 3.0 :: UI Loader Content Scaling - Loading External SWF

Aug 18, 2009

I've devised a preloader using the ui loader and progress bar components in flash cs3. The goal being to load an external .swf into the uiloader and that has been achieved. I'm having problems with the scaling now. In my code I have set the content scaling to "true" and that isn't supposed to cause distortion of any type but it does. It squishes my external .swf in width wise.

HTML Code:
var imageURL:String = "portfolio.swf";
var imageURLRequest = new URLRequest(imageURL)
uiLoader.scaleContent = true;
uiLoader.load(imageURLRequest);
progressBar.source = uiLoader;
[Code] .....

View 1 Replies

ActionScript 3.0 :: Loader Technique For Multiple Dynamic Content?

Jun 11, 2009

Would like to find out what are the techniques people are using for pre loading multiple dynamic content for example using Loader.load()I understand if i just had one Loader.load() then I can listen to it with contentLoaderInfo.addEventListener(Event.COMPLETE, callback)But when I have multiple Loaders, what technique is used for ensuring all the content is loaded before playing the swf?Currently I use an counter such a that on each Event.COMPLETE from different Loaders, I increment that counter until I have register all the COMPLETE events. But I think this is certainly not a good method?

View 6 Replies







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