Flash :: Unpack Zip Faster Than Loading Single Images?
Feb 15, 2011by using external libraries you can also unpack a preloaded zip inside the swf.
but is that method faster than preloading one file ?
by using external libraries you can also unpack a preloaded zip inside the swf.
but is that method faster than preloading one file ?
How to show different images for a single button?It should show different images when the mouse pointer is over the button and out of the button.
View 3 RepliesMy question is, does a better, faster CPU necessarily equal faster SWF compile times? Or does it rely on something else (OS, memory, etc). I only use AS3 and some of my projects take a while to compile. If certain hardware can guarantee me a faster compile time, it'd be worth including those things in my shopping list.
View 2 RepliesI can make a normal preloader, with a bar and percent shown and so on... But I want to make a little thing in the middle of the preloader that rotates faster and faster when the percent loaded goes up. This is what I thought would work:
[Code].....
unpacking data from a binary string. I realized it with a php code:
list($empty,$size) = unpack( 'V', fread($socket,4) ); $theresult = fread($socket,$size);
But how can i do this in as3 ? I didn´t find a possibilty to encode "unsigned long (always 32 bit, little endian byte order)". Is there a option like unpack in as3 ?
[code]in my original code..function "test" will change the x axis of the images by Timer..I wanna the x axis of the images can be changed after every two seconds..but when I run it..it's obvies faster and faster every time when the Timer dispatch the TimeEvent the delay always shorter than the last time.
View 7 RepliesI am new to Flash CS5 and I have created a slide show. I am trying to reduce the .swf file size for faster loading. I have been trying to adjust the size using the jpeg quality slider, but it doesn't seem to function whether I set it to 0 or 100 or anywhere in between. Publishing always generates the same size swf file.
View 3 RepliesI want to have an AS3 app load images from url supplied by the user. But I don't want a malicious user to be able to load an SWF file in place of the image, such as with an altered extension "maliciousSwf.png". Well, not sure how big a security threat that is above and beyond the ability of the hacker to decompile swf, but I think that ideally such behavior should not be allowed.
So, is there any way to prevent this? When people allow users to load images in their Flash apps, do they somehow guard against loading of SWF? Or is this really absolutely no big deal?
How would you defer loading of other graphics on the page until after the images in a Flash gallery's images.xml file are finished loading?Is there any way to detect for this, or would I only be able to check if the flash swf object is finished loading? I'm pretty sure the swf object would be loaded/ready as with document.getElementById('flashobject').onload = function(){}; before the corresponding images have loaded though, instead of after.
View 1 RepliesI am loading images of different size and then images are scaled and border is drawn for each image as shown in below link,[URL]... I want that border of images to be of the same width and height and for that I need to find out the max width and height size image before loading all the images. Is there any way that I can know the width and height of an image before loading it completely?
View 1 RepliesI am trying to stream images (single jpg) from webcams into a swf. I know little about actionscript, and what I have so far is from what I have found in other posts around the web. My first attempt worked, but caused a bad white flash between the image being refreshed. So from others I have learned that this will happen unless I use two movie containers and buffer in between them? Here is the code I have, and it does not work.
[Code]...
I don't get any compiler errors. I think this is as2, but I am not sure
how to create a single preloader that would load my main timeline and all external images? I'm using multiple instances of the loader component to import jpgs.
View 2 RepliesI'd like to import dozens of images and have them in sequence in a single layer. I did this once before, I made a .swf out of a video game cutscene and I recall importing the images to the stage then I asked somewhere else how to make them appear in the layers field. Then I did something that put each image in its own layer and I had to manually move them and make them appear in sequence.
So if anybody knows how to import and put in a single layer in sequence or simply import each image into its own layer
Is it possible, via Adobe Air, to save multiple types of data in a single file? For example, an application would allow the user to load in external images, position them on stage and label them. This data would be then be stored in a ByteArray (I guess) using BitmapData for the images and probably XML for the metadata.
I would then like to write this to a single file, with a bespoke file extension that could be associated with said Air app.
I have an AS3 swf which users can upload jpg images to my EC2 instances which sit behind and Elastic Load Balancer. The jpg images are converted into bytearray data and sent using URLLoader.load(URLRequest)I make 2 calls when uploading, one to upload a large version, then another to upload a thumbnail version. A PHP script to which the bytearray data is uploaded converts this to a file using file_put_contents($destination,$GLOBALS["HTTP_RAW_POST_DATA"])Is it possible to combine these two requests into a single request which contains both the bytearray data for the large and thumbnail images and 'split' the HTTP_RAW_POST_DATA to create 2 files at the server. This would be better than uploading the bytearray for the large version then using something like ImageMagick to resize the resulting image into a thumbnail which I realise is another option.
View 1 RepliesI am trying to load a single image on to the stage via an xml file.Here is my xml file<?xml version="1.0" encoding="utf-8"?><pictures><pic>image1. jpg</pic></pictures>I'm trying to figure out the actionscript 3 code but I don't know how to code it.
View 6 RepliesSo im trying to load in a single image using xml into Flash and i cant seem to find any information on how to load a single image into a movie clip. All the information i can find is on how to make a slide show.
What i would like it to do is to load in a single image per frame using XML and then animate the picture all with code.
I have a very simple xml file:
Quote:
<myImage>
<imagePath>Miscellaneous/#1.jpg</imagePath>
<imagePath>Miscellaneous/#2.jpg</imagePath>
</myImage>
I'm currently trying to put a XML updated swf gallery in my gallery menu. I have it loading just fine but when I navigate to another menu the loaded swf still stays on the stage! How do I get the swf to unload when navigating away from the gallery page? [code]I just added the unload stuff today but it isnt working. Yet it's not kicking back any errors.
View 1 Repliesload multiple variables from a single text document into one main dynamic text field. If it is possible could someone post an example for me i would appreciate it a lot
View 6 RepliesI have an old .fla file that has been working fine for a year. None of the javascript, xml, or actionscript has changed, and all of a sudden the Flash is not loading the images in IE6. It works fine in ALL other browsers, even IE7 and IE8.
Has anyone run into this problem before?
What is faster Flash or Silverlight? So I mean there is working Flash quake and Silverlight quake (not totally working yet)
So what is faster after all? Or Are they all same speed?
really need to know to get an idea on what it's better to start my cool programming project.
Explaination: MX 04' Pro Thumbnail Nav. loading images with XML Loader resizes and displays images when users click on Nav. reading XML Problem: Users click Thumbnail Nav. first image gets loaded and loader resizes to image. However the next choice by user on thumbnail click, the second image doesnt get resized in the loader. It goes beyond holder. Here is my code for Thumbnail and Loader:
[Code]....
Now the first image loads fine and the loader sizes to file from XML. However, when users click second choice from Thumbail the loader doesnt resize to new image size. It only gets resized on the first selction or if users click the next or prev. buttons then the images fade correctly but nothing fades back in. Now if they do hit next or prev and then hit a thumbnail option it loads and resizes.
My problem occurs when I try to load multiple images in one class in AS3.[code]My problem with this is, that every complete-method receives the same image. Sometimes they all get img1.jpg, sometimes they all get img3.jpg....I don't have any clue why this is happening.[code]Now the different Bitmaps and Loaders have distinct names and are called within the same method call. The event handlers now are inline.
View 2 RepliesIs there any way to load a multiple xml files in a single urlloader.
View 2 RepliesI want to know: is it possible to load several images using a single loader?
View 2 Repliesim loading multiple images but how do I make sure the program will start once all images have dispatched a complete event. like make a universal loader for all the other "small loaders" if you understand.
View 1 RepliesHow can we get .jpeg/.gif/.swf files present in server onto the stage dynamically?
View 1 RepliesMy xml structure is like this...
<photogallery>
<image caption="" url="pic1.jpg"></image>
<image caption="" url="pic2.jpg"></image>
</photogallery>
Since I'm teaching myself how to do this from scratch, I'm starting with something "simple" and then working my way up, so the first thing I wanted to do was just display the list of images (not the images themselves, the text list). The code I've written so far is this...
PHP Code:
var gallery = new XML();
gallery.load('gallery.xml');
gallery.ignoreWhite(true);
gallery.onLoad = function(success){
[code]....
Since the xml document is the parent, I thought that if I just used .childNodes, it would display everything in the xml file, which it did, but then I assumed from there, if I were to instead use .firstChild.childNodes it would display only the list of images and not include the <photogallery> tags. Instead, it just prints nothing (other than my homey message, that is lol).
So my first question is, what should I have written to get it to print just the image list or will it always include the parent tags when tracing it out?
I am loading images from XML and they are losing quality after they are loaded.
How do I fix this?
(i am using ASC3)
I am refering to this tutorial posted about a flash gallery which loads images from an external website.Now i would like to load the images from my hard drive where the fla is located. I tried to give the absolute path in the xml file but the images do not seem to load.
View 2 Replies