Swf Byte Loss
i'm just wondering if anyone else has noticed problems when uncompressing swf files out of zip archives?
often i have swf files that are off by 2 - 6 bytes when they come out of the archives. we are currently using zip archives to transport media between servers. i'm wondering if it is a zip problem or if it is a compression problem. switching to a new archiving method (.tar) is possible, but a huge level of effort becuase a lot of the .zip's are created by applications so it will require code changes both in the applications that create them and the apps that read them. it would be much simpler to just add in a compression property to stop compressing the files.
has anyone else run into this problem before?
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 10-17-2002, 06:25 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Reading A Byte In A Byte Array
I'm trying to read and process single values stored within the computeSpectrum byte array. I am unsure how to pick out individual bytes from a specific location within the array, then convert them to numbers.
Can anyone help? Did I make sense?
Thanks.
Convert AMF Byte Array To Regular Byte Array
HI,
I recently had some code that read a stream of bytes from a stream reader into a byte array.
For various reasons the code had to be changed and I can no longer fill my byte array with bytes from the stream.
Meaning that I cant use the readBytes functions.
Instead of using the streamReader to get my bytes I've had to use byteArray.writeObject to fill my byteArray.
As I understand when writing an object to the byteArray it is encoded as AMF. This is giving me trouble when I try to read data from the byte array as I did previously when I was using the stream reader.
For example, previously when I was filling my byteArray using stream.readBytes I could write
"chunkId = bytes.readMultiByte(4,"utf")" and I would get a string value returned "RIFF"
Now when I try the same "chunkId = bytes.readMultiByte(4,"utf")" reading from the AMF Object in my byte array it returns a garbled string
My question is is it possible to convert the AMF object that I have into a regular byteArray?
Thanks
dub
Convert BYTE To KB
hi there,
I am going to convert the TOTAL & LOADED strings to MB. Can u please help?
TOTAL = CONTENTS.getBytesTotal();
LOADED = CONTENTS.getBytesLoaded();
Cheers
Byte Preloader
I want to make a photo gallery that the user will be able to navigate through by simply using NEXT and PREVIOUS buttons.
I want to be able to have a progress bar showing that the next photo is loading each time the next or previous buttons are pressed.
I want to put the galley in one movie and a picture in every other frame with the preloading code in between each photo frame.
Can this be done, or is there a better way to do this.?
Leroy
Byte[] Image
hi all
i have page is aps.net and flash. On my page asp.net i get in database a image is type byte[] on Database
I want show this image on flash
how will i do that ??
GetBytesTotal() = 12 Byte? HELP
I load an external file, the size file is 273.073 byte, but when trace tot the size is 12 byte. Why?
this.onEnterFrame = function() {
stop();
_root.mini_b.loadMovie(_root.Promo);
//_root.Promo Contains the Movie name
//_root.mini_b is a clip on the root
var tot = _root.mini_b.getBytesTotal();
trace (tot);
var car = _root.mini_b.getBytesLoaded();
trace (car);
if(car==tot) {
trace ("finish");
delete this.onEnterFrame;
}
}
Getting Byte Sizes
Hi all,
Just a quick question, if i am using sound/music in a flash movie and i would like to create an instance for it then play it in actionscript, how would i go about getting the size of that sound file?
Here is the code i used, btw the sound file has a linkage name of 'tune'
Code:
musik = new Sound(this);
musik.attachSound("tune");
musik.start();
varsize = musik.getBytesTotal();
A dynamic text field is placed in the doc to show the value of varsize but when the movie loads, it shows as undefined!
Can anyone shed some light on this?
Thanks in advance.
Please Help External Byte Preloaders
Hello everyone!
I was wondering how to make a bytes preloader file that can serve as preloader for an external movie.
How do I do this?
Thanks everyone!!!!
Byte Preloader Problem
Hi,
I've just made a byte preloader for a movie.
In my movie I have imported an mp3 and set de linkage for playing it.
When I play the movie it doesn't jump to the next scene. Even my bytes aren't counted. (my text doesn't change)
If I remove the linkage of my mp3 everything works fine, except for the problem that my sound doesn't work anymore.
Is normal behaviour?
Could anybody help me with this?
THX
Byte Array In Flash
Hi All,
I am developing a client server application where my server is built in Java and client in Flash MX. I am using xml socket for my connection. Now the problem is my server is sending me data in byte array format where the data is in xml format. My flash client is not able to read the data as it is sent in byte array. When I am sending the data as string it's cool.
Can anyone tell me is it possible to read byte array in Flash? If so then how?
Thanks in Advance....
Amit
Byte Array In Flash
Hi All,
I am developing a client server application where my server is built in Java and client in Flash MX. I am using xml socket for my connection. Now the problem is my server is sending me data in byte array format where the data is in xml format. My flash client is not able to read the data as it is sent in byte array. When I am sending the data as string it's cool.
Can anyone tell me is it possible to read byte array in Flash and convert it to string or xml object? If so then how?
Thanks in Advance....
Amit
Get Byte Size Of Scene
Hello everybody,
I have a question.
I have a flash movie with serval scenes in it. Is it possible to just get the size of just one scene instead of the complete movie?
Thank you for you time.
Greetz Edwin
Simple Get Byte Preloader
On my preloader I have the get byte which displays in a dynamic text box. The display of #'s when I test the movie is tons on decimal places.
How can I set it to a certain number of decimal places or just none?
Getting The Byte Total Of An Object
Hi,
Is there anyway of getting the byte total of an object created at runtime which is a combination of some loaded objects, library objects and API drawn?
I have a dynamic object thats coming in at 60k, even when I remove all the objects from it !
I'm using the loaderInfo.bytesTotal
Byte Array Webservice
I want to send a picture from Flash as a bytearray via webservice to a MS SQL, and then be able to read it into Flash again. Do anybode novs if this is posible?
XML Socket And Termination Byte
Hello,
I am programming an application to control an specific device by a flash interface.
This device allows telnet connection.
In order to do this telnet connection I am using XMLsocket.
When I proceed to this connection the connection is stablished ok.
But this device ends his messages that it sends with "
" not with " |