Flash :: Self Updating Air Application Assets Without Re-downloading Assets Already Downloaded

Feb 10, 2011

I want an air application to be able to update the assets it uses, but minimizing the download needed, so only downloading files added since it last updated.I'm thinking this would include a server portion which would zip the needed files based on a version number? Has anyone implemented anything similar / got any thoughts on the best approach to building this sort of system?

View 1 Replies


Similar Posts:


Flash :: Save Library Assets Properly?

Sep 8, 2011

Specifically, various MovieClips seem to be missing all of its content. I work in flash for a while, make a series of changes, save the file and close it, and then reopen the file.  Upon reopening, the artwork inside the MovieClip does not appear.  The former artowrk can be bitmaps, shapes, drawn objects, or even other symbols.  I can take the time to replace the missing artowrk inside the symbol (the symbol is still there on the stage and in the library, just the artwork is missing), but three saves and closes from now, the artwork may be gone again, or new MovieClips may appear empty - there appears to be no discernable pattern yet.

View 1 Replies

Flash :: Use Relative Path For Assets In Library?

Dec 6, 2009

When I drag and drop images in flash library, the path is sometimes relative (./somefolder/someimage.png), and sometimes it is absolute (D:lahsomefoldersomeimage.png).

How can I use only relative paths in flash library in order to be able to update all images from any computer and/or from any folder ?

View 1 Replies

Flash :: Create Reusable Component Which Contains Assets In CS5?

Feb 26, 2011

I need to create slideshow for gallery. And one thing that i don't know is how to create reusable components. For example i want to create 3 components ImageLoader, Dock(that consist drom ImageLoaders) and SlideShow(that consists from Dock and ImageLoaders).

ImageLoader it is a container which loads image and while it loading showing some animation
Dock it is a container wich have few of ImageLoaders, it used to create Dock of thumbs images to chose.SlideShow it is a container wich have few of ImageLoaders, it used to preload images to ImageLoaders and the change them on mouse click.I need that all of this components was accessible fom action script, so i can create new instances of them.

Example code:

im1 = new ImageLoader('../im1s.jpg');
im2 = new ImageLoader('../im2s.jpg');
dock = new Dock(new Array(im1,im2));
ss = new SlideSHow(new Array(im1,im2),dock);
ss.init();

View 2 Replies

Actionscript 3 :: Use Flash Professional Assets In Adobe Air?

May 23, 2011

I built a game in Flash Professional and pure AS3. Now I wanted to port it to iOS using Air 2.6. I do this by first creating the SWC file from Flash and then I compile and package the game using the command line.This works fine except that I can't use some of the Assets that I created in Flash Professional.For example I have created a MovieClip in Flash Professional that's linked to the class file MainMenu.as. Within this MovieClip there is another MovieClip with the instance name background_mc. I declared the variable name in the AS file but when I run the SWF file the value of background_mc is null. However, when I delete the .as file background_mc can obviously be found.

View 1 Replies

ActionScript 2.0 :: Load External Assets Via Flash And XML?

Aug 27, 2006

I have a Flash file that will act as a slideshow, the images change when the sound that is to be played with each image is complete (using

soundX.onSoundComplete).

I have a folder for the sounds and one for the images. I have Flash load those assets via XML. I use XML to organize the order of playing the images /sounds.

[Code]...

My question:

Is there a way to not hard-code the image/sound names in XML and instead use it to organize and pull the assets from their respected folders? My goal is to be able to have Flash and XML working as an automated process and all I have to do is add images w/their respected sound files in their folders and never have to open Flash or XML. The Flash and XML would just automatically populate the slideshow per the number of image and sound files I add.

View 2 Replies

ActionScript 3.0 :: Flash - How To Store Game Assets

Mar 8, 2012

Is there a way for Flash to store content that will not be deleted with the browser's cache?Imagine a game that runs in the browser but is still heavy enough that you don't want your users to go through downloading assets again every time.Now that LSO obeys browser cache deletion (it does, right?), is there another way? Using Air would work but you'd have to download and install a client, which defeats the purpose of browser games.

View 2 Replies

Assets On Stage Are Not Visible At Authoring Time In Flash CS4?

Jun 30, 2009

I have an actions layer, a sound layer and an image layer. I put one image from the library onto the image layer and all I see is the border. When I test the movie the image is visible. This just started suddenly. What is going on? Flash CS4.

View 3 Replies

Flex :: SWF Assets Loaded Into Flash SWF At Runtime Within Same ApplicationDomain

Dec 1, 2009

I'm trying to load a swf compiled by the Flex SDK into a swf exported by the Flash IDE and instantiate the assets by way of getDefinition(). Normally this works fine with assets exported from the Flash IDE then loaded into another swf also from Flash IDE.This is how I could normally do this using only the Flash IDE:Loader - > Using same ApplicationDomain - > getDefinition(class)Now, using the 'Test.as' compiled from Flex SDK using the [Embed] metadata tag:Loader - > Using same ApplicationDomain - > getDefinition("Test_" + class)The problem is I'd rather not have to keep track of the asset libraries loaded to prefix the class name I'd like to get (('Test_" + class) vs (class)). Is there any way of doing this without referencing the library the class is being pulled from or without accessing the original loader? This way I don't need to know which swf the asset is coming from, just the class name that I could instantiate from the current ApplicaitonDomain.

View 1 Replies

Actionscript :: Embedding Flash Assets In Flex Project?

Jan 28, 2010

I'm creating a project in flex builder but it's not using the flex framework, it's just pure actionscript.

At the moment I have some bitmap resources embedded for drawing things, but I'd like a little animation and thought I could create swf animations for them in flash and use the [Embed()] thing to embed them in the actionscript project.

This works perfectly well for me, however I'm a little concerned about efficiency and how well this approach will scale when my project gets larger.

Does anyone know if there are any efficiency implications to embedding maybe 20 or 30 swf files, or do they get efficiently integrated into the main swf file? Most of the animations are really simple and I could probably redo them in actionscript if needed but it's a lot easier just to draw them in flash and embed them.

View 1 Replies

AS3 :: Flash Using Custom Graphical Assets In Pure Project

Mar 27, 2011

I created some button states in flash (swc), and I want to use them in a pure AS3 project. They are movie clips with class of neatButton_on and neatButton_off respectively. I call them like this:[code]I've also used assets, especially for different states of the same item, where I've put everything in one movie clip and then switched frames as needed. Is one way faster than the other? is there a best practice?

View 2 Replies

Actionscript 3 :: Automated Importing/renaming Of Flash Assets?

May 17, 2011

So I have an AS3 flash project with A LOT of assets, roughly 1000 at the time being but that may expand to several thousand later. They are all images but half of them are Animated GIFs so I can't import them at runtime. I considered simply dragging them into the flash project but I don't seem to have any control over the naming scheme. Basically, what I want to know is:

Is there a way to automate importing and renaming of flash assets, like "Import these 1000 files and export them for Actionscript with this name"? Additionally, is there a better way for me to be doing this? I've tried [URL].. AS3GIF but it struggles with larger animated gifs like the ones I'm working with (650x450).

View 2 Replies

Flash :: Prevent Standalone Projector Apps From Trying To Open Assets?

Mar 17, 2011

Is there a way I can exclude apps from the "Open With menu?

Finder mistakenly lists all standalone Flash apps I've built as possible choices when opening a SWF.

View 1 Replies

ActionScript 3.0 :: Adding Game To Flash File - Load Assets And XML

Feb 29, 2012

I am trying to add games to a Flash file. They are in different folders and the assest and xml information is not coming with it? I get the error :
"[BulkLoader] Error loading LoadingItem url: images/, type:text,
status: error Error #2032: Stream Error. URL:
file:///G|/%2D%2DWORK%2D%2D/Gilcrease%20Projects/Kravis/images/
Here are the files I need to load into the main file.

View 11 Replies

Flash :: Flex - Using The Vanilla Preloader To Load Additional Assets?

Jan 27, 2010

I have a Flex application that automatically loads the SWF and it's contents and displays the default progress bar like in all Flex apps. Currently I have a class in the application using a Loader instance to load an external bitmap to be added to the stage/canvas. I'd like to handle the loading of this bitmap in the Flex default preloader and get rid of the Loader instance entirely.

View 1 Replies

Flash :: Smoothly Play FLV Video While Loading Assets In The Background?

Dec 8, 2010

Working on a 'video heavy' Flash site that has an intro video. While the intro video is playing, assets(images,flv files) should be loaded in the background. The problem is that, while the assets are loading, the intro video play gets jittery. What can I do to make the video playing smoothly while still loading assets? It might be the single threaded nature of actionscript, not sure. After using @Demian Brecht suggested method, I noticed that the culprit might be Memory allocation. As the FLVs load the memory usage goes up by ~266MB and while the videos are written to memory, the framerate drops to 1FPS.

[Code]....

View 2 Replies

Flash :: Company Require Designers To Deliver Their Assets To Coders?

Aug 26, 2011

How do you or your company require designers to deliver their assets to coders? Do they deliver a PSD? A series of 24-bit PNGs?

If you are a coder, what would you include in a best-practice guideline to designers? If you are a designer, what questions would you like to see answered in such a document?

[Code]...

View 1 Replies

Flex :: Swapping Movieclips With Other Assets At Runtime In A Flash Component

Sep 2, 2011

I have an animated character swc that is an empty skeleton basically (has all the body parts, animations, and functions/vars). I want to essentially put different clothes on that character at runtime so I don't have to have many copies of this character in my resources.

For example, I have 'skeleton' (the non-clothed model) and 'Bob', 'Jane', and 'Mary' characters. 'skeleton' is animated and fully works as an exported swc, and to get the other characters in their clothes/skins, I open up Flash CS5 and replace the movie clips with the 'clothed' versions of the components. To clarify,'skeleton' has "body parts" as movie clips that are all animated on the timeline, such as "head","face","left arm","right arm", etc. I open up 'Bob', who has the same exact design as 'skeleton', with the exception that 'Bob' has all the clothes and such as differently-designed movie clips. The size, shape, orientation, and reg points are all the same across all the components. After I've replaced all the movie clips in 'skeleton', I export it as a swc named 'Bob.swc' and I do this for all the characters.

What I'm asking is, how can I do this process ^, but at runtime instead, so I don't have all these duplicate root swcs ('skeleton' has a lot of frames on it) so I can cut down on a bunch of space? So I can do something like:

// bob gets all the actions and animations of skeleton
var bob:UIMovieClip = new skeleton()
// replace the body movieclip with a new looking one
bob.body = resources.bodyassets['bob']['body']

View 1 Replies

Android :: Flash Builder - Loading Assets For Mobile Devices

Oct 18, 2011

I am using flash builder to make an app for android/ios. How would you recommend I use assets such as images and sounds. Should I embed them or use loader? Any benefits to each one. I have a fair amount of assets.

View 2 Replies

Flash :: Flex - Statically Embedding Of Assets File Weight?

Mar 21, 2012

When embedding assets of any size in the following manner -

[Embed(source="../../assets/Assets.swf", symbol="LargeButton")]
public static const ButtonAsset : Class;

it looks like the resulting SWF size jumps up ~2.8KB (in addition to the size of any assets that are actually embedded).

So I have a few related questions:

Is this because flex_sdk/frameworks/libs/core.swc must be statically linked? Is there any way to get around this restriction, perhaps by cherry picking the necessary files and compiling them to a SWC file?? Note that in the app I am writing file size is critical.

Is there a command/plugin that would allow for the transcompiling of vector graphics (drawn in the Flash Professional Authoring Environment) into raw ActionScript 3 ?

Use cases compelling this feature are improved workflow - would allow designers to draw assets in Flash Professional, compile to an asset SWF, and then be able to embed those assets (versus having to take the time to load them at runtime, or going to the effort myself to write them in ActionScript).

View 1 Replies

ActionScript 3.0 :: Custom Class Which Uses Multiple Assets From Flash Library - How To Do It

Jul 11, 2009

I've seen that it's very simple to create a document class (a class associated to the main timeline itself), or an instance of a class which is linked to a single asset (e.g. a movie clip).But what if I need to implement a class (let's call it Main) which uses multiple assets from the Flash library? The only way I know to do this is by instantiating any asset with its linked class, and passing them all to the Main constructor like this:

ActionScript Code:
var asset1:Asset1 = new Asset1(...);
var asset2:Asset2 = new Asset2(...);
var asset3:Asset3 = new Asset3(...);

[code].....

This is kind of a tedious process, especially when the composition hierarchy is long and you have to pass them all as arguments through many nested classes.For instance, I needed to link a preload sprite (the typical circle in gradient color which is constantly rotating until the load is complete) from the library to any thumbnail class of a gallery, which in turn is part of another class, which in turn is part of the main class. So I needed to pass this preload clip as an argument throughout the nested classes.

View 8 Replies

ActionScript 3.0 :: Optimize Flash For Loading External Assets (videos/pictures)?

May 17, 2010

I'm loading a lot of external videos and pictures and I'm wondering what is the best way for handling the loaded videos and images. Should I unload them after they have finished playing and reload them whenever they are needed, or it's not required since they just use the clients memory and not the cpu cycles when inactive?

View 2 Replies

Flash 10 :: Import Assets From Illustrator And Photoshop To Get Low File Size For Final Swf

Mar 31, 2012

I am looking for information on how to best import assets from Illustrator and Photoshop to get a low file size for the final swf. In particular:I have text that has been effected in Photoshop and a few images that can be brought in from Photoshop or illustrator. Right now I am exporting for web and bringing to Flash. Looks good but file size of end swf too big. I have gotten .fla files before from so-workers that have text or graphics as shape objects rather than images - is that possible and how is it done?

View 1 Replies

ActionScript 3.0 :: Loading Assets From A SWC?

Apr 22, 2009

Wherever I look it says that loading external assets(.png, .jpg, gif) from a SWC is supported. However, I can't find a single example of doing this with anything else than Classes and Components.

I have 7 swf's that are loaded and unloaded by a main swf, a sort of menu system. These swf's all rely on loading in some .png's at runtime.

I made a new "Library Project" in Flex, filled the scr folder with my .png's, set the loading type to "external". Because I don't want the .png's compiled into my application .swf.

But how do I get a hold of my raw .png's from within my classes?

I can do:
var obj:AComponentFromSWC = new AComponentFromSWC() no problem.

But I want to do:
var pic:Bitmap = BitmapFromSWC();

Is this possible or did I completely misunderstand the use of SWC's?

This way I could let all the apps use the same SWC and it is easy to distribute all the graphics as one package and the loaded swf could share common graphics.

View 5 Replies

Loading Assets From Different Libraries

Sep 8, 2009

I currently have a "container SWF player" that loads SWFs externally and plays them.The sound file for the SWF is in the library of the container SWF player, because the player is using the duration of the sound file to determine how long the scrubber bar goes.The problem is, it sort of defeats the purpose of having a container SWF player if I have to create a different container SWF player file for each external SWF because there's a different sound for each external SWF.Is there a way to pull the sound file from the library of the externally loaded SWF into the container SWF player?So that depending on what external SWF is playing, it will pull the associated MP3 file from that SWF's library?

View 1 Replies

Collect All External Assets?

Mar 25, 2011

Is there any way to collect all external assets (images, videos, etc) and put them in one selected folder?

View 2 Replies

How To Get XML Library Assets Back Into New FLA

Dec 15, 2010

I started using Flash CS5. I spent many hours working on a .FLA file. Saving as I went and at one point Flash CS5 crashed during the save. The .fla file is now corrupt. The new .fla format is essentially a .zip file. So I was able to change the file name to *.zip and explore inside of it. The DOMDocument.xml file is corrupt and dead. The DOMDocument.xml is the timeline so all my placement and animation is gone. However, my LIBRARY folder is in tact and has all of my library items as *.xml files. How I can get those library items into another .fla file so I don't lose ALL my work? I've tried creating a new .fla file and dragging the LIBRARY folder into the new .fla, but my library items don't show up when I load the new .fla in the Flash CS5 IDE.

View 2 Replies

ActionScript 3.0 :: Packaging Assets In A SWC?

Jan 27, 2009

i am currently working on a project that would be greatly advanced if i can find out how to package a number of assets into a SWC file so i can use it as a theme pack.I have looked everywhere on the web and in a large number of books i have sitting in front of me and cant find out how to do it.

I want to put a bunch of images and movieclips into a SWC file and then retreive the swc dynamically at run time, however i do not know how to access indiviual assets within how to load an SWC and then gain acces to its assets?

View 4 Replies

ActionScript 3.0 :: Get SWC Assets With Children?

May 18, 2011

How do I publish and import a SWC in a way that allows me to access the exported symbols as well as their children? working on an action script project in Flash Builder 4. In my SWC I have a sprite called SP_ViewHome. That sprite has a child called mcContent which is another sprite instance.I've included the SWC so that the FB4 recognizes the class SP_ViewHome (and auto completes when I create references to them). But my problem is that I can't access it's child by using the regular syntax for accessing children (compiler error 1119: "Access of possibly undefined property mcContent through a reference with static type flash.display:Sprite")

Code:
public class ViewHome extends Sprite
{
private var s:Sprite;[code]....

I can access that child with the getChildByName() function. However this seems inefficient both in terms of development and run time performance.I need to do to be able to access children of SWC classes more easily?

View 1 Replies

Protect External Assets, XML On CD?

Oct 1, 2009

I'm developing some elearning material to be distributed on CD. The main swf loads text, images, sounds via an XML file. protecting the assets/XML from being edited/stolen?

View 3 Replies







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