ActionScript 2.0 :: Resizing Externally Loaded Swf/xml/jpeg

Jan 24, 2009

I was wondering, after looking into loading external images via xml- how you would control the size of those images on resize and on first loading.

Do you define the size of the container mc?

Can you apply the same or similar onresize code as you would when applying it too images on the stage?

View 4 Replies


Similar Posts:


Professional :: Poor JPEG Quality When Loaded Externally In Flash Via .xml

Jul 26, 2011

I have a movie that loads images from an external source based on paths contained within an .xml. As far as I can see, there is no restriction to the size of the loaded image, which are are JPEGs, hence flash will not have these images resized. The images look fine when loaded in Photoshop or viewed separately, but the quality is just awful when loaded within the movie.
 
I've tried the usual hints like increasing JPEG quality in Publish Settings, but understand that since these images are not imporated into Flash CS5 before compiling, but are instead loaded when the .swf is run, these settings would not have any effect.

[Code]....

View 1 Replies

ActionScript 3.0 :: Poor JPEG Quality When Loaded Externally In Flash Via .xml?

Sep 25, 2011

Basically, my problem is that I have a movie that loads images from an external source based on paths contained within an .xml. As far as I can see, there is no restriction to the size of the loaded image, which are are JPEGs, hence flash will not have these images resized. The images look fine when loaded in Photoshop or viewed separately, but the quality is just awful when loaded within the movie.I've tried the usual hints like increasing JPEG quality in Publish Settings, but understand that since these images are not imporated into Flash CS5 before compiling, but are instead loaded when the .swf is run, these settings would not have any effect.Does anyon

Code:
stop();
var my_x:Number;

[code].....

View 3 Replies

Resizing Externally Loaded SWF?

Dec 23, 2009

i'm having some "big" issues with what seems like a pretty easy flash concept. But, im pretty green when it comes to coding in flash.

I have a SWF thats being externally loaded into another SWF file (see code below):

on(release) {
loadMovie("test1.swf",_root.dropZone);
}

(If i'm understanding the above code correctly...its loading the SWF into a blank MC i created called dropZone) This part seems to work correctly when tested.

I've got 4 different SWF's that need to be loaded seperatley when its coresponding button is clicked. The issue arises when I import the external SWF file...it resizes itself to the size of the flash stage. I need all the SWFs to be loaded and remain there original size (1257x847) or be scaled to the correct size. Then if I click another button it should load the new SWF and "unload" the old SWF.

View 3 Replies

ActionScript 2.0 :: Resizing Externally Loaded Swf's (createEmptyMovieClip() )?

Jun 8, 2006

Im having a problem. Im trying to load external swf's into an MC using reateEmptyMovieClip(), but what i cant do is resize the swf in the new MC.I need it to fit whatever size the MC is (50% smaller in this case).

View 4 Replies

ActionScript 2.0 :: Making Flash Test If A Jpeg Is Present When Trying To Load It Externally?

Mar 14, 2004

is there a way of making flash test if a jpeg is present when trying to load it externaly?

View 3 Replies

ActionScript 2.0 :: Preloading Flashvars - Ensure That All The Content Being Loaded Externally Is Loaded Before The Transition Plays?

Aug 30, 2005

I am in the process of building a site for an Architect... Jamie Fobert Architects (projects) I am useing transitions between the projects and am loading details/text and images externally through flashvars, php and a mySQL database. Within my transitions I have a a preloader on the forst 2 frames the code is as follows (taken from a Voetsjoeba tutorial):

[Code]....

This works pretty well if the content is within the .swf, but when it is loaded externally it doesnt preload it at all. Does anyone know how I can adapt/improve this preloader? or somehow ensure that all the content being loaded externally is loaded before the transition plays?

View 2 Replies

ActionScript 2.0 :: Externally Loaded Swf Does Not Stay Loaded?

Feb 16, 2006

I am loading an externally loaded swf that uses a mask to transition in. When the user clicks a different button I am doing a gotoAndPlay that goes to a mask that "unloads" the content (it doesnt actually unload the info is just outside of the mask area. As soon As I jump to that section the movie is no longer loaded and just shows the container clip that I had created for it. The Container Clip is never changed and is the same throughout the whole process. The only thing that changes is the mask animation.I have tried both loadClip and loadMovie but no luck on keeping the clip loaded.

EDIT - I have narrowed it down. When I change the mask movieclip the movie unloads for some reason. Is there a way I can keep it loaded?

View 2 Replies

ActionScript 3.0 :: How To RotationY A Loaded Jpeg

May 17, 2011

I am trying to apply rotationY/X/Z to an externally loaded image. The problem is that when I rotate the image in '3D', it does not appear. When I apply normal rotation, the image does appear. I have verified that the jpg is loaded, just does not display after rotationY/X/Z. The code below are snippets of my attempts.

PHP Code:
//LOAD IMAGE
public function load_img():void

[code].....

View 1 Replies

ActionScript 3.0 :: Transparency In A Loaded JPEG Image?

Oct 10, 2008

Im quite new to the ActionScript scene so apologies if thisquestion has already been answered elsewhere. I am creating a 2dshooting game, and Im loading multiple images of various enemiesfrom several jpg files, but when I display these on screen heimages have a big black square round them. Now when I amprogramming in another language such as OpenGL, if I wanted to getrid of this I would enable an alpha blending function and set 100%transparency for the black colour which I want to hide. So I loadthe jpeg file and store it in a BitmapData variable, and then Icopy this into a new BitmapData variable with transparency enabledand set to 0x00000000 (fully transparent black). I thought thiswould solve my problem butt no joy. My code is shown below:public class GraphicsLoader extends Sprite {

public var loader:Loader; // The bitmap loader
public var bmp1:Bitmap;
public function GraphicsLoader(path:String)

[code].....

View 4 Replies

Loading External JPEG Files And Keep Them Loaded

May 19, 2009

I have a flash file that loads jpeg files and runs through each on the timeline. I have nav buttons to go back and forth. Here is the problem, all images load on frame 5 and I do this while another image is displayed so that they are loading in the background. I do this so that my initial file size is small, but I can load images in the background making the flash file appear to load quickly and loading other elements after it starts.

So all images load on frame 5, then I go frame by frame until I hit frame 11. If I click one of my nav buttons to go back to say, frame 7, the jpeg is gone and is no longer loaded. How to load jpeg files into the library, or at least, keep them loaded after they have loaded once? I have attached my fla file for reference. I had to rename the extension to eps, but it's a fla file, just rename the extension.

Attachments: hm-slideshow2.eps (1.1 MB)

View 2 Replies

ActionScript 3.0 :: Set Jpeg Quality On Loaded File?

May 9, 2011

way to set the quality of a loaded jpeg the way we're able to set the quality on library item? It's pretty neat to be able to set the smoothing, is there a similar way to set quality?? Is there an approach anyone would recommend for dynamically setting the quality on a loaded image? 
 
var loader:Loader = new Loader();
loader.load(new URLRequest("myImage.jpg"));
addChild(loader);

[Code].....

View 2 Replies

ActionScript 2.0 :: MovieClip Size Once Jpeg Loaded

Jun 16, 2005

I am creating an empty movieclip and loading a jpeg into it. The mc does not seem to resize to account for the jpeg's size, also the parent mc (thisClip) which is also created dynamically (with attachmovie), is set at 500 why:

thisClip.createEmptyMovieClip("theJpeg", 2);
thisClip.theJpeg.loadMovie(url);
thisClip.theJpeg.onEnterFrame = function(){

[Code]...

View 8 Replies

ActionScript 2.0 :: Getting Loaded JPEG To Fit Dimensions Of MovieClip

Nov 9, 2006

How can I get a jpeg that loads with the loadmovie command to fit to the dimensions of a movieclip that is being used as its "place holder"? Also if this image starts off initially at a much larger resolution than the place holder movieclip and therefore has to be shrunk down to start with, what happens when browser window is then resized to a larger window? (i.e the whole flash movie is enlarged). Will the image be stretched from the size it has been shrunk down to or will it still reference that external file? So if the image was larger than the site would ever need it to be would it look the best quality at all times?

View 6 Replies

ActionScript 3.0 :: Cannot Convert Loaded Jpeg To Bitmap?

Jan 6, 2010

why I cannot convert a loaded jpeg to a bitmap.I've found similar posts on this forum but the solutions provided are not working for me. I have a very simple example of what I'm trying to do below:

Code:
private function loadImage():void
{
var imageLoader:Loader = new Loader();[code]...

For whatever reason I get the error:

Code: TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Bitmap@3a0926d1 to Function.at com.ncnmar.interphaz::People01/loadedImage()

View 1 Replies

ActionScript 2.0 :: Getting / Using _width / _height Of A Loaded Jpeg

Jul 7, 2004

I'm having trouble getting the _width & _height of a jpeg loaded using loadMovie. I'm trying to reposition it (pseudo-registration point) for rotation in a container movie clip. If I use hard-coded numbers, it works fine. However, if I try to position it based on its _width and _height properties, it's no go... in fact, it doesn't even show up on stage.

View 7 Replies

ActionScript 2.0 :: Dynamically Loaded JPEG For Tiled Background?

Oct 15, 2007

Is it possible to dynamically load a JPEG image and use it as a tiled background for a fullscreen flash movie?Everything I see online is for bitmaps already loaded in the library.

View 1 Replies

Actionscript 3 :: Stopping An Externally Loaded Swf From "playing" When Another External Swf Is Loaded?

Nov 8, 2011

I have a homepage with five "links" to each swf. Now the first swf I have a custom cursor that hides the mouse. When I click on that link it plays and when I quickly go to the homepage again it hides the mouse there when it's not supposed to do it.

Same with every other link. When I was busy with the first swf and want to go to the last swf of the five, my mouse just disappears! It is almost as if it keeps on "playing" without seeing the swf...

Here is the code that I have so far!

var currentpage:uint = 0;
//one loader object per project:
var loadingobject1:Loader = new Loader();
loadingobject1.x = 445;

[Code]....

View 1 Replies

ActionScript 2.0 :: Swapping The Jpeg Loaded Into A Movie Clip With The One In A Button?

Jul 10, 2005

I have three buttons, which when clicked load an external file into a movie clip called container. The first jpeg (1.jpg) is loaded into the container when the movie loads and the thumbnail buttons have the files t2.jpg, t3.jpg and t4.jpg loaded. When these are clicked they load 2,3 and 4.jpg respectively into the container. The problem is that I can only have 3 buttons but need to display 4 images. So I want the image that is loaded into the container to swap with the one that is in the button. I can't find any code, either on this forum or on the web, that retrieves the name of a file that is loaded into a movie clip.This is what I need.

Because all the images are named 1,2,3 or 4.jpg and the thumbnails for the buttons are t1,t2,t3 or t4.jpg I should be able to easily write the additional code to change what happens when the button is clicked, because when the picture on the button has changed to what was loaded into the container, the on(Release) code will need to change too.

View 2 Replies

ActionScript 3.0 :: JPEG Error 2124: Loaded File Is An Unknown Type

Jun 27, 2008

I'm trying to load images from [URL] but there are strange errors These 2 urls are giving errors...

[Code]....

is this because I can't read from that server ?? I can open the images in the browser...

View 9 Replies

Loader For Externally Loaded SWF?

Dec 2, 2009

if a loader can be added to let the user know the video is being loaded rather than a blank 20-30 seconds...

View 18 Replies

Xml :: Order Of Externally Loaded Swf?

Feb 10, 2010

I'm loading swf's via an XML file. I'm wanting them to be added onto the stage in the same order that they appear in the XML. The problem that I'm having is that they are added to the stage only when they are fully loaded.

This is my xml (_config.xml)

<campaign>
<component SWFsource="logo.swf"/>
<component SWFsource="gallery.swf"/>

[code].....

View 3 Replies

IDE :: Loader For Externally Loaded SWF?

Dec 2, 2009

I have a fairly chunky swf that I am loading through the loadMovie function. Just wondering if a loader can be added to let the user know the video is being loaded rather than a blank 20-30 seconds...

View 1 Replies

ActionScript 3.0 :: Remove .flv From Externally Loaded .swf?

Aug 7, 2009

With the assistance of a very kind member of this forum, I have got as far as getting an .FLV to load into my API via its own .SWF.

[URL]

click on "Animalia - Verse from the Zoo" to load the VideoPlayer .swf which contains the .FLV

I will add more functionality when I've solved this. Now that I have a Video Player which closes, the next set of hurdles to overcome are these:

Click "Close" with the .FLV playing and the sound keeps playing because the .FLV is still playing. Click "Close" with the .FLV paused and when you call the player back, it plays from the same spot. So, my tiny brain says it's an "add/removeChild" issue. Obviously when happy user clicks "Close" and then re-loads by clicking "Animalia", happy user wants the video to play from scratch. That's what I want, anyway. Not from where it left off after clicking "Close". I've made several attempts at adding a "remove FLV" object to the function and Event Dispatch method, but what I did is wrong because the code I put in removed the .FLV permanently and when you call the player back by clicking on "Animalia", the .FLV does not play at all. I'm going round in circles looking for the correct NetStream/removeChild/unload.nsplay/etc/etc .. AS3 coding and where to put it.

My .FLV video load object on "NewPlayer.swf" is:

var myVideo:Video = new Video(360, 264);
addChild(myVideo);
var nc:NetConnection = new NetConnection();

[Code].....

My questions is:- What is the correct coding to get the VideoPlayer .swf to unload its .FLV completely, SO THAT when a user clicks "Close". Either with or without the .FLV playing, everything closes completely and when re-loaded, the video plays from scratch?

View 2 Replies

ActionScript 2.0 :: Pause Externally Loaded Flv?

Sep 16, 2009

I am externally loading an flv into an empty movie clip container using loadMovie into a main swf. The flv is in a standard flv playback component and works fine on its own. But what I'd like to be able to do is pause the flv when any of the buttons in the main swf are pressed.

View 7 Replies

ActionScript 1/2 :: Control An Externally Loaded SWF?

Jul 26, 2009

I'm working on an flash movie and the interface is a small town (simiar to "doritos.com" and "comcasttown.com") if you reference both the doritos and comcast sites their little movie runs smoothly. I have several elements in the town. For example, one of the elements is an airplane hangar. When you rollover the hanger, I created a movie, the doors open and an airplane flies out of the hangar. I have several little movies throughout the interactive such as this. I created the hangar animation as a seperate swf file. In my main movie I created a button, on rollover it loads the hangar swf into an empty movieclip. When I publish and view the swf it plays slow and choppy. First, is it possible to write actionscript to load the external swf ,but it stops on the first frame of the animation and when you rollover it continues to play.To put it all in a nutshell, I want to create several buttons throughout the movie with loadmovie functions, once the swf movies are loaded I want them to stop on the first frame of the animation and when you rollover loaded swf movie I want it to continue to play the animation. Should actionscript be applied to the swf movies first and preloaded into the main movie. And what will make the movies run smoothly once it's published and viewed in a browser.Also if this makes a difference, I created the animations in after effects, exported them as FLVs imported them into flash and exported them as swf. Again it runs really slow and choppy

View 1 Replies

Previewing Externally Loaded Images?

Jul 30, 2009

I was wondering if there was a way in Flash to preview externally loaded images in Flash while still working.I am loading images externally to keep the file size down on a piece of elearning but now I'm afraid maintenance will be a nightmare since you don't actually see the screens until you publish. I have interactions on the screens so I need to see them for their placement on screen.

View 5 Replies

ActionScript 3.0 :: Externally Loaded SWF Files?

Aug 3, 2010

I have the action script that loads external SWFs on a button click, but I don't know how to make it so that the slides switch after a few seconds on their own as well as on a button click. I know it has to do with a timer - but I have no idea how to do that (i'm super new to AS) Can someone please either tell me what code I need there or direct me to atutorialHere's the code I'm using so far:

var Xpos:Number = 0;var Ypos:Number = 0;var swf:MovieClip;var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/one_btn.swf");

[code]......

View 12 Replies

Access Main Swf X,Y From Externally Loaded It?

Jan 7, 2010

I have a site that I'm working on that I am loading an external swf page into a main one. The main one is based on a totally liquid state and stretches the background to fill the browser and the components are relatively position based on browser window dimensions.

Now inside of the main swf I load an external swf through the loader command. This swf has a set dimension and stays centered in the stage.

I am trying to make a button in this swf that loads yet another swf that is stretches the full browser. However I do not know how to access the properties of a main swf from this external one, or if this is even possible.

View 3 Replies

Actionscript 3 :: Getting Information From An Externally Loaded SWF?

Mar 30, 2011

So I have an SWF that I've made and I need to appened some instructions to the beginning of the project. I figured the easiest way to do this was to make the animation in a separate SWF then import it to the start of the first one. My problem is that I can't find a reliable way to tell when the first SWF is finished playing. I've googled the heck out of this but I can't seem to find anything that works. For some bizarre reason, no matter what I do the program seems to think that the external SWF only has 2 frames, if I put an ENTER_FRAME listener and trace externalSWF.currentFrame I get "1, 1, 2, 2, 2, 2, 2, 2..." My code looks something like this.

[Code]...

Also, for the record, the external SWF plays properly when I add it as a child. The problem is removing it from the stage when it's done playing. It's interactive so I can't just do a frame count.Edit: So I tried doing a getQualifiedClassName() call on extSwf and I got "Instructions_fla::MainTimeline_Preloader_" which could explain the frame discrepency. How can I have access to the actual timeline?

View 2 Replies







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