ActionScript 3.0 :: External SWF Runtime Linkage PNGs

Aug 11, 2008

Flash can compress .png files like Photoshop can compress .jpg files better than any other tool hands down. I have 77 .png files that are 1.8 .megs on my c: drive after I imported them and setting the file compression under the "File > Publish Settings" to 75% for jpg and published the .swf with all the .png on the stage the file size is 350K that's about 20% of the original file size of the .pngs downloaded file by file with 77 separate request.

I can create linkage in the shared .swf and test the movie with code in the shared .swf to add the movieclip holders for each:
.png to the stage but when I load the shared .swf into the main
.swf Flash acts like it can't create the classes based on the
Linkage I setup or that the MovieClip linkage doesn't exist.

I tried a test to have the shared .swf with all the .pngs and linked movieclips to add the assets to it's own stage and it works fine but that means a lot of my code and logic is included in the shared .swf that the designers need to add .pngs to. We need to have the main .swf get a handle of the linked .png assets and place them in the main .swf to load the assets to different parts of the main .swf. It's cute that the shared .swf can add the linked assets to it's own stage but not too useful.

Also the way we deploy we cannot roll out a new release/build to update the .pngs but we can upload a new .swf to the asset server so the .pngs need to be in a separate .swf. I can get the shared MovieClip to add the linked assets to it's own stage when testing and when loading my problem is the main .swf that loads the shared .swf cannot create instances of the classes that are exported for runtime sharing using linkage.

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Linkage IDs At Runtime?

Sep 22, 2006

Is there a way to see what linkage IDs are available at runtime?Like an object I can loop through to list all the linkage IDs availabe at that time. That or a way to check to see if a linkage ID is available?

View 1 Replies

ActionScript 2.0 :: Linkage / Runtime Sharing?

Aug 25, 2005

Lets say i have two movies.1.swf (contains movie clip in library with linkage ID "thing")directory/2.swfInside of 1.swf I load 2.swf inside of a emmpty movie clip.On the root of 2.swf I attach the "thing" from 1.swf's library:

Code:
attachMovie("thing","test_mc",this.getNextHighestDepth());
Nothing happens. The movie is not attached.

[code].....

View 1 Replies

ActionScript 3.0 :: Loading External Pngs And External Text With Html?

Jul 19, 2009

I want to load external png's through this code:

(for this code, check the mcBandPreloader in de .fla file)

Code:
var imageLoader:Loader;
var RespJpeg:String = "images/arch1Proj.jpg"
function loadImage(url:String):void {

[Code]....

Here the problem is that I can't type html in my external txt file. (I did checked the html button in Dynamic Text Properties. What am I doing wrong here?

.fla can be downloaded at [URL]

View 2 Replies

ActionScript 2.0 :: Flash8 Bitmap Smoothing For External Pngs?

Apr 20, 2010

I'm having a helluva time trying to figure out the syntax for smoothing of dynamically loaded png's. It's such an easy function for as3, but seems very complicated in as2.

Actionscript Code:

import mx.utils.Delegate;import mx.transitions.Tween;import mx.transitions.easing.*;var numOfItems:Number;var radiusX:Number = 100;var radiusY:Number = 40;var centerX:Number = Stage.width / 4;var centerY:Number = Stage.height / 2;var speed:Number = .001;var perspective:Number = 3;var home:MovieClip = this;theText._alpha = 0;var tooltip:MovieClip =

[code]....

View 5 Replies

IDE :: Drag-and-drop Recognize Transparent Areas Of External PNGs?

Jan 21, 2009

I have a simple Flash movie which loads several external PNG-24 images into movie clipsEach movie clip is partially transparent (using alpha transparency), and made drag-and-droppable. Everything works properly except that for each movie clip, I am able to drag and drop the clip using the transparent space around the image. I want the "grab-able" area of each clip to correpond to only the non-transparent areas of the PNG, not a rectangular box around each movie clip.

View 2 Replies

ActionScript 2.0 :: Set The Linkage To "Export For Runtime Sharing" And Put It On The Stage

Apr 6, 2008

I must be missing something. I'm trying to set up a Shared Library. I created one Symbol, set the Linkage to "Export for runtime sharing" and put it on the stage. Publish, looks great.

Whenever I create a second (or third or fourth) Symbol and set it to "Export for runtime sharing" it won't appear on the stage, and further creates havoc with the first Symbol already on the stage, changing it's appearance when published.

AND, when placed into a .fla that's accessing the Shared Library, the second or third symbol when placed on the stage also won't appear when I publish that file

The URL for all Symbols is the same, library.swf, and it's in the same directory as the

View 1 Replies

ActionScript 3.0 :: Using External .swf Linkage Audio?

Sep 1, 2008

Because flash doesn't loop external mps file correctly, there is always a pause in the loop. The work around is to load the AIFF, or WAV, file into the .fla and let Flash compress the audio file, then the loop works without the pause. The problem with this is that when I have many music loops it takes a long time to publish and test, so in AS 2 I would publish .swfs that compressed the raw audio file and gave the audio file a linkage. Then I would load the .swf into the main .swf and access the loaded .swfs linkage file.

[Code]...

View 1 Replies

ActionScript 3.0 :: Default Value (uint=null) - Create An Object From A Library Symbol With Linkage 1180: Call To A Possibly Undefined Method [linkage Name]

Oct 16, 2009

Flex complains if I want to create an object from a library symbol with linkage: 1180: Call to a possibly undefined method [linkage name]. So to avoid this, I create a class for that symbol, in this case extending BitmapData using Flex's new ActionScript Class feature. Flex create that class for me and the constructor looks like this: public function CustomBitmapData(width:int, height:int, transparent:Boolean=true, fillColor:uint=null)

[Code]...

View 6 Replies

ActionScript 3.0 :: Duplicating MovieClip From External SWF Without Explicit Linkage

Mar 5, 2010

In Flash CS3 I was able to duplicate any MovieClip from an external SWF by loading the SWF, and then executing the following code:
var targetClass:Class = MovieClipToDuplicate.constructor;
var duplicate:MovieClip = new targetClass();

Note that the MovieClips I was duplicating did NOT have any linkage explicitly defined. Flash would automatically assign a unique class to each MovieClip. Now, in Flash CS4, when I try to do the same thing the .constructor property returns only the "MovieClip" class, such that the "duplicate" variable above is but a blank MovieClip. If I compile the external SWF using CS3, my old code still works. But I want to do it in CS4.

View 4 Replies

Professional :: Linkage : Cannot Find The Linkage Instance?

Apr 20, 2010

I'm trying to create a linkage to swap movie clip dynamically. I already create a linkage and after my movie clip symbol actuall say Export: contact_idea. But when I try to attachMovie("contact_idea"). It does nothing. Is there anyway that I can test that the linkage is actuall linked?

View 2 Replies

ActionScript 3.0 :: Refer To A Class Linkage Set In Library From External Code?

Jan 12, 2011

If one uses [Embed] to refer to external graphic assets its easy to instantiate and use them.However, I've got a png in an Fla, with the Class identifier set to "Symbols", Base class is BitmapData.I need to instantiate it like this:

var symbols:BitmapData = new Symbols(1, 1);
addChild(new Bitmap(symbols));
 
Of course the compiler complains about a call to a possibly undefined method Symbols.For a temporary fix I guess i'll put the graphic external to the swf, but for this project it needs to be in the library along with everything else.

View 9 Replies

ActionScript 3.0 :: Runtime External SWF Classes

Jun 26, 2009

I usually lurk, but on and off over the past 2-3 months...I've been trying to solve a problem and I can't seem to find a good solution for it. Here is my problem: - I have a SWF that acts as a Shell. This shell will contain the Design Template, the functions/class calls to make it run, and a call to the external SWF that contains all the core code classes.

- My main goal for this setup is to separate the front end Design part (which can be edited and modified relatively easily) from the core code. Now the core code is something the person making the Design Template should not have to mess with. They call it and they are done; they can now use the classes for most of the functionality they will need.

- The problem is, when I change the external SWF with the core code and distribute it... the Design Template needs to be recompiled to get any updates the external SWf core code has made. I want this to be done at runtime so that the user will not have to recompile their Design Template when the core code is updated. - Now, I've seen some people talk about a runtime library... but you have to go into the IDE and set things up a certain way or something something... I don't want that. Is there a way to make all this work in actionscript?

[Code]...

View 6 Replies

ActionScript 3.0 :: Runtime External SWF Classes?

Jun 25, 2009

Here is my problem:

- I have a SWF that acts as a Shell. This shell will contain the Design Template, the functions/class calls to make it run, and a call to the external SWF that contains all the core code classes.

- My main goal for this setup is to separate the front end Design part (which can be edited and modified relatively easily) from the core code. Now the core code is something the person making the Design Template should not have to mess with. They call it and they are done; they can now use the classes for most of the functionality they will need.

- The problem is, when I change the external SWF with the core code and distribute it... the Design Template needs to be recompiled to get any updates the external SWf core code has made. I want this to be done at runtime so that the user will not have to recompile their Design Template when the core code is updated.

- Now, I've seen some people talk about a runtime library... but you have to go into the IDE and set things up a certain way or something something... I don't want that. Is there a way to make all this work in actionscript?

Additional Notes:

- Yes, it must be an external SWF. My requirements are adamant about not using an .as file.

- From my tests (though a bit fuzzy and may be flawed) an include statement will work in runtime. Correct me if I'm wrong.

- I've seen some PNG encryption method for games suggested somewhere. I haven't tried this (because encryption isn't the main goal...), but in theory, would this make the code from an updated core code external SWF refresh in realtime without recompiling the Design Template SWF file?

View 0 Replies

ActionScript 3.0 :: Loading External Swc File At Runtime?

Nov 9, 2011

Is it possible to load an external SWC file (at runtime) and place them at the stage? Is it possible to refer to them by strings? For example: var sprite = getExternalLibrarySprite("sprite_name")?

View 4 Replies

Flash :: Loading CFF Embedded Fonts In An External SWF At Runtime?

Nov 29, 2010

We have a large flash site which is translated into 11 languages. We have a font loading system whereby all the characters required to display the site in each language are embedded in external swfs (so 11 swfs).recent update to the site requires us to use the Text Layout Framework (TLF) for one area of text display, which of course only supports fonts embedded in the new CFF format. I've attempted to embed a second instance of the font using the tag embedAsCFF="true", and after loading in the font SWF I can see this font is correctly registered as it shows up in the array returned by Font.enumerateFonts.The TextFlow instance I am using has the following properties set:

textFlow.fontLookup = FontLookup.EMBEDDED_CFF;
textFlow.renderingMode = RenderingMode.CFF;
textFlow.fontFamily = "HeadingFontCFF";

[code]....

View 2 Replies

ActionScript 2.0 :: Export Mc's Positions At Runtime In An External File For Reuse

Jan 29, 2005

i'm trying to hardcode a complicated looping movement of an mc on the stage. the way i plan to deal with it is first, to use a guide layer to actually tell the mc where to go, and then save at runtime the sequence of position (x/y coordinates) the mc goes to to follow the movement. With this set of coordinates, i will reproduce the movement via actionscript instead of guiding.

how i can output those variables into an external txt file from flash at runtime ?

View 1 Replies

ActionScript 2.0 :: Export Mc's Positions At Runtime In An External File For Reuse?

Jan 29, 2005

i'm trying to hardcode a complicated looping movement of an mc on the stage.the way i plan to deal with it is first, to use a guide layer to actually tell the mc where to go, and then save at runtime the sequence of position (x/y coordinates) the mc goes to to follow the movement. With this set of coordinates, i will reproduce the movement via actionscript instead of guiding.

View 1 Replies

Does Flash Support Pngs

Oct 28, 2009

I keep trying to place some pngs in an XML file inside flash. The jpgs work fine but when it gets to the pngs nothing shows up. Do you need to have a special Action Script?

View 5 Replies

ActionScript 2.0 :: Way To Post PNGs?

Oct 28, 2009

I have a flash site which draws from an XML file for loading images. The jpgs work fine but nothing shows up when I try to load the PNG files. Does flash not support it?

View 1 Replies

Different Patches Appearing Over PNGs?

Nov 26, 2009

I'm putting together a flash animation which has 1 png file replicated quite a few times. to be more precise, a snow flake. When they build up on top of each other im getting strange blotches that should not be there.I have a feeling that because of how many times the image is replicated it is struggling (Flash, not my computer), as when there were only half of the flakes it did not do it.

View 1 Replies

Importing PNGs In Flash 8?

Aug 29, 2009

I've been trying to import 258 PNGs into Flash.  It gets up to around 200, +/- 1-2, and anything after that has "Bitmap not loaded" were the thumnail image should be in the library.
 
My computer is running 64 bit Vista with 4gb of ram.

View 1 Replies

Php - PNGs Alpha Transparancy?

Apr 6, 2010

After whittling down of the options we've encountered a problem with PNG's and ActionScript 3 (AS3).

When loading a PNG 8 or PNG 32 with alpha transparancy we're getting the following error reported in Flash:-

"Error #2124: Loaded file is an unknown type" Now, we're dealing with some legacy images, and it appears as though this problem isn't universal - some images believed to be 32bit alpha PNG are loading. BUT, some conclusions:-

converting one image that was 32 bit alpha (NOT WORKING IN AS3) to PNG 8 index transparency DID work.
And converting that same image to PNG 8 alpha DID NOT work.

[Code]...

View 1 Replies

Professional :: How To Convert .pngs To Jpeg

Jul 7, 2011

i have about 70 imgs i brought into the library in Flash CS5. Now the SWF is to big bc there all .png files, i tried to go into properties and change there .png to .jpeg but its a very looooong process, is there any way to highlight them all and either change them but updating the .pngs to .jpeg files ?

View 4 Replies

Html :: Set Of PNGs To Run Cu3er Slides?

May 27, 2010

I'm using a set of PNGs to run my cu3er slides. They keep the transparency, until the transition and then they're boxed with a white background. Is there a way to either keep it transparent or set the background color? http://205.186.139.193/ is the test site

Javascript:

<script type="text/javascript">
var flashvars = {};
flashvars.xml = "<?php bloginfo('stylesheet_directory');?>/slider/cu3er.php";

[Code].....

View 1 Replies

Flash 9 :: PNGs Not Rendering As Transparent?

Sep 3, 2008

Has anyone ever encountered this weird, unique error I am gettingWhen I export my program to a SWF all the imported PNGs with alpha transparency (ie; soft edges) render totally wrong - no transparency, very blocky and pixelated. See the attached image for an example;this is out of the blue. Has exported fine recently.

View 1 Replies

ActionScript 2.0 :: Important Transparent Pngs Into My SWF?

Apr 20, 2008

I need to important transparent pngs into my SWF, and have them clickable as buttons. Right now, I'm using JPGs with the loader component, but I'm aware this method does not work with PNGs.

View 5 Replies

Professional :: Loading Gifs Pngs And Bmps?

Dec 22, 2010

I have been experementing the the loadmovie command in AS1

it works for JPGS

but i cant make it work for PNGs, GIFs, or BMPs
 
how do i load external images of these types into flash

View 1 Replies

ActionScript 3.0 :: Alpha Transparency Not Working On PNGs?

Jun 17, 2011

I'm currently constructing a scrollbar as part of a website using as3 and png images. I've got loaders for each image inside of an array, and when loading on each image finishes, it's added as a child to a sprite on the stage. I've got a background image with no transparency, which loads fine. On top of that, I've got the actual slider, which loads the RGB data, and appears to be using the alpha as a 1-bit mask. So anywhere that I have partial transparency, it just shows up as black, where it should be showing the background underneath. I can't find any attribute that will change the way loaded images process alpha transparency.

View 2 Replies

Flash - Getting Transparent Background PNGs From SWF Animation?

Jul 26, 2011

I have an artist I'm paying to do animation art for me. I need PNGs for each frame in the animation but she is most comfortable doing her animations in Flash. It sounds like getting the frames for me will be difficult for her. She was able to do the still art we needed and give us that as a frame, but for some reason the animation is different? Keep in mind we need PNGs with full transparency support in the background. We can't be clipping these frames out by hand.

View 1 Replies







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