ActionScript 2.0 :: Load Binary File (a BMP File)

Feb 23, 2010

it seems AS2/Flash 7 can't read BMP files. so I figure I'll write my own code to display a BMP file, like was doen here: (though it's AS3) [URL] just fine and dandy. but now I have to be able to load a BMP into memory first. AS3 can do this via FileStream or URLLoader, but what about AS2? * LoadVars attempts to parse the data it reads (ARGH!) so that's no good. * GetUrl could work if it could throw the data into a variable instead of a browser window, but that doesn't seem possible either.

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Remove / Unload External Swf File(s) From The Main Flash File And Load A New Swf File And Garbage Collection From Memory?

Sep 12, 2009

I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?

View 15 Replies

Flex :: Can Do Binary File Input And Out

Mar 14, 2011

I want to write a logging system to log errors but I want the format of the file to be binary. Can you write and/or read binary files in Flex 4? (actionscript to be more precise)

View 2 Replies

ActionScript 3.0 :: ByteArray To Cffile Binary File?

Mar 17, 2010

I m trying to write AS3 to take a screenshot of a MC thats on the stage and pass the data to a .cfc method which saves it as a jpg on the server.The current code I have kind of works except the jpg is unreadable.I think it has something to do with not using Flex, AMF, and writing binary files.When I look at the jpg via a hex viewer I think it doesnt have the right jpg header.The jpg begins with:c3 bf c3 98 c3 bf c3 a0 00 10 4a 46. When I think it should begin with:ff d8 ff e0 00 10 4a 46

//AS3 source code[code].......

View 1 Replies

Flex :: Read Binary Content Of A File?

Feb 7, 2012

I want to retrieve file's binary content using flex but failed. Here is the code so far:

// ActionScript file
package source.fileApi{
import flash.display.Sprite;
import flash.external.ExternalInterface;

[Code].....

But this did not give me the binary content of the file.. how to retrieve the full binary content of the given file using Flex (I am using FP 10.0).....

View 1 Replies

Java :: Binary Socket And Policy File In Flex

May 17, 2010

I'm trying to evaluate whether Flex can access binary sockets. Seems that there's a class calles Socket (flex.net package). The requirement is that Flex will connect to a server serving binary data. It will then subscribe to data and receive the feed which it will interpret and display as a chart. I've never worked with Flex, my experience lies with Java, so everything is new to me. So I'm trying to quickly set something simple up. The Java server expects the following:

DataInputStream in = .....
byte cmd = in.readByte();
int size = in.readByte();
byte[] buf = new byte[size];
in.readFully(buf);
[Code] .....

After that - EOFException happens on the server and that's it. So the question is, am I approaching whole streaming data issue wrong when it comes to Flex? Am I sending the policy file wrong? Unfortunately, I can't seem to find a good solid example of how to do it. It seems to me that Flex can do binary Client-Server application, but I personally lack some basic knowledge when doing it. I'm using Flex 3.5 in IntelliJ IDEA IDE.

View 1 Replies

Flash :: Source Control System For Binary File?

Oct 20, 2010

We use subversion, which works great for software projects. We also have a lot of flash projects, which we don't use any kind of source control. Each flash project contain quite a few images. The time frame of each project is a couple weeks, but few can go upto a couple months.

The number of files we create contribute to quite a bit of file size. To keep repository size at a minimum, we want to keep the latest version only and wipe out previous history once a project is finished. History is useless to us after a project is finished.

It looked into subversion, but it doesn't allow to remove anything from the repository. I need to perform this workaround here.

One easy way is creating a separate repository for each project. When the project is over, save the latest version to archive and wipe out the repository. The number of active projects is about 50 - 100. Is there any issue with creating one repository per project?

View 1 Replies

ActionScript 3.0 :: Binary Socket Policy File On Server

Jan 15, 2009

I am attempting to setup a binary socket connection between flash running on my desktop and a Rabbit RCM3800 Microcontroller providing the server on my home network, which has no file system and has a very basic http server on it. Due to limitations of the microC I cannot run Java/Perl/Python or any other server on it other than setting up a server using its own native Dynamic C language (essentially manually opening and controlling sockets in C). I am able to successfully connect to a socket on port 3333 of the server and transfer information between the server and the .swf file when it is the sandbox type "local-trusted" (while I'm debugging in Flash).

Because of this I'm fairly certain the code to setup the socket between the server and flash works fine. My problem occurs when I try to run the .swf file as "local-with-network" (such as running it after publishing on my desktop) or "remote" (accessing the .swf file when it is located on the server) and it then requires a socket policy server to host a socket policy file on the server. On my server I have code setup such that whenever a socket opens on port 843 or port 3333 (my data port) and sends a stream of raw data containing the request <policy-file-request/>, the server writes back in ASCII the below code and closes the socket.

Code:
Select all<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "[URL]">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all"/>
<allow-access-from domain="*" to-ports="*" />
</cross-domain-policy>
[Code] .....

So for some reason flash times out while waiting for the socket policy file. I have tested sending the <policy-request-file/> over telnet, and have received the above policy file. I have also sniffed using wireshark and saw that my desktop sent the policy request and received the policy file. I am guessing that Flash times out because it is waiting for some kind of terminating character that states the end of the policy file, and to that end I have tried sending. Interestingly, instead of sending the policy file I have tried sending random data from the server to flash, and flash displayed the Warning: Ignoring policy file at (URL) due to incorrect syntax. Because I don't receive this warning when I send my policy file I don't think it is formatted incorrectly.

I have also tried using the below flash code to hold the socket request open indefinitely, but it also errors after 20seconds.
Code: Select allSecurity.loadPolicyFile("xmlsocket://192.168.1.59:843");
The .swf file will eventually reside on the server itself at 192.168.1.59/myProg.html. I have only tested the flash file remotely on the server a couple times, and in addition to the previous warnings/errors, I received the warning: SWF from (URL) may not connect to a socket in its own domain without a policy file.

View 1 Replies

ActionScript 3.0 :: Parsing A Text File Full Of Binary Data?

Jun 22, 2009

i have a large text file full of several chunks of binary data, each chunk separated by "---"

so it looks like this:

[Code]...

I have loaded the data in an untyped variable. var data:* = URLLoader(event.target).data; so data contains all the text file content. my problem is that i want to parse this text file and put each chunk of binary data into a ByteArray.

any ideas of how i can go about doing that? i have never dealt with untyped variables before so i am not sure what to do. and i don't want to lose the binary data representation by casting (if that happens).

View 3 Replies

Actionscript 3 :: Create A Composite From Bitmap And Video File With FFmpeg Or Other Binary Via As3 Frontend

Nov 13, 2011

I need to create some sort of video-editor for dummies, which has to generate a video file as output.The editor has to load a movie-file scale and rotate it to a certain degree, and generate a composite video of a background bitmap and the rotated and placed video.The frontend will be done in Flash/AS3 and has to use some background tools for processing the video.Can I use FFmpeg to generate such a composite? Or is there any other good background task available?

View 1 Replies

ActionScript 3.0 :: Load A Swf File Within Another Swf File And Then Load Different Swf Files From Buttons?

Oct 8, 2011

I'm trying to load a swf file within another swf file and then load different swf files from buttons.This is the code I'm using, but I can't get any of the swf files to load.

var Xpos:Number = 0;
var Ypos:Number = 0;
var swf:MovieClip;[code]...........

View 0 Replies

ActionScript 2.0 :: Load Images & Test From External File " Text File?

Jul 27, 2011

i have banner with 5 images fad in fade out effecti need to load images & test from external file " text file or xml file " with keeping fade effects on imagesall ways i know can't keep fading effect on images so

View 4 Replies

ActionScript 3.0 :: Scaleform Workaround - Create File That Could Dynamically Load File?

Jan 18, 2011

Having got into flash about a year ago, I have a fairly good understanding of as3, but I have never had any reason to learn as2. For an upcoming project, we were looking to use Scaleform GFx, with the UDK. (Unreal Development Kit) Trouble is, Scaleform only supports as2. From what I've been told, as3 is supposed to be better in just about every way, so I really don't want to learn a language that?s most likely on the way out, if I have any other options.

Is there any converters out there, that can convert script from as3 to as2? Or another workaround possibility, since flash communicates with the UDK by means of just calling a function, could I create an as2 file that could dynamically load an as3 file?

View 2 Replies

ActionScript 2.0 :: Load Variable From Text File To Main Movie (swf File)?

Jan 14, 2004

i want to load variable from text file to my main movie (swf file).what should i put in the second parameter of the function loadVariables ("target" parameter) - should i insert _this? _parent? _global? (nothing works.

View 3 Replies

ActionScript 1/2 :: Load An External .swf File Into A Precise Location On The Stage Of Existing Flash File

Nov 20, 2009

All I'm trying to do is load an external .swf file into a precise location on the stage of my existing Flash file. I've spent an hour and a half on this site search and found nothing. What do I add to my loadMovie command to place the file at specific x,y coordinates?

View 3 Replies

ActionScript 3.0 :: Load The External Swf File And Unload The Parent Swf File?

Aug 17, 2011

i have a question. let say i have file1.swf , file2.swf, and file3.swf, how can i link this 3 files together,let say suppose file1.swf is the main content file, but as i load file2.swf, i want the file1.swf get replaced by file2.swf. How could i unload file1.swf at that time, so that my file2.swf will become the main content file?and again, when my current position at file2.swf, and i want it get replaced by file3.swf by clink on a button. so that the i can unload the file2.swf and let the file3.swf become the main content file.

View 13 Replies

ActionScript 2.0 :: Load A .swf File Into A Flash File At A Fixed Size?

Dec 13, 2010

I would like to run a .swf file into an existing flash file, but the dimension size of the .swf file is too big. I am a beginner to flash and not sure of the steps to execute this. Would anyone be willing to walk me through the steps to import the code?

View 1 Replies

ActionScript 3.0 :: Playing Flv File And After That Load External Swf File

Apr 7, 2009

i have a button that when it is pressed plays and loads an external flv file. this part works fine but directly after the flv video is finnished i want to load in an swf file. does some one have an idea how to do this? first show flv and then load swf?
this is the code as it looks now..

[Code]...

View 16 Replies

ActionScript 3.0 :: Repeating Code - Load A Different Xml File Not Just Use One File

May 24, 2010

So I have this code which loads an xml file

[Code].....

I want to have several buttons however load a different xml file, not just use one file. Would this mean I would have to recreate the above code for every button, or is there anyway I could reuse it?

View 1 Replies

Actionscript 1.0 :: Load External Swf File To Parent Swf File?

Mar 27, 2011

i'm building a website using flash. i have a external swf file that i want to import into my website. i thought this would be an easy task but for some reason when i load the movie, it flickers. my website (parent swf) was build using 1.0. The external form swf was build using 3.0. My approach:

1.create an empty movie clip called mcForm

2.go to the mc clip page i want to pull the external movie into

3. within my actions layer, I call the following function loadMovie("main.swf", mcForm);

If i write:

LoadMovieNum("main.swf",0);

then the my main.swf opens correctly but closes the parent swf file. I wan the main.swf file to be embeded within the parent file.

View 1 Replies

ActionScript 2.0 :: Load An Xml File From Via Http Into Flash 8 File?

Dec 2, 2009

I'm trying to load an xml file from via http into my flash 8 file. Locally it works fine but when on the server it fails. I assume this has to do the flash security sandbox. How do I get around this. I own the servers so is there some sort of fix that I upload to allow the swf to receive the data?

View 1 Replies

ActionScript 2.0 :: Preloading From The Main Swf File To Load Other Swf File

Mar 31, 2010

I am using preloader from the main swf file to load other swf file, if i use a preloader inside my other swf file then it wont show so sorting that problem I am referencing this nice material on preloaders [] I have sorted the preloader problem by calling the preloader from the main swf file and hiding the other swf file till its fully downloaded. but now the problem is I have got no functionality from that swf file, i mean i have got that mouse effect in the other swf file that where ever you move the mouse in the screen the showreel adjusts itself but its static now.

I have got this container mc in my main swf file, and i am using the other swf file by clicking the button, the swf file loads in the container mc after showing the preloader but its kind a static.

View 9 Replies

ActionScript 2.0 :: Load A Txt File Into Flash By Putting The Url In A Xml File?

Feb 26, 2007

I am trying to load a txt file into flash by putting the url in an xml file. The XML file is structured like this:

HTML Code:
<pic>
<image>pictures/AW0001.jpg</image>
<description>text/AW0001.txt</description>
</pic>

Now I load it into arrays in flash: image[0] and description[0]. The images is displayed the way I want to, the thing is I want to pass on the url that is in description[0] to a loadMovie or something like that. If i say desc_txt.text = description[0]; it will just show AW0001.txt in flash. I've also tried this with load and loadVars but I can't figure it out.

View 1 Replies

ActionScript 2.0 :: Load One Xml File To Swf File That Located In Different Servers?

Aug 21, 2008

i want to load one xml file to swf file that located in different servers...

like

[URL]

but i have only one xml file that update of those flashes..

how i can to do allowdomain to the xml file?

this is what i have and it's not work

Code:
System.security.allowDomain("www.studiomor.com");
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://studiomor.com/upload/google_AD.xml");

View 2 Replies

ActionScript 2.0 :: Load Another File In The Quicklinks File To A Level

Apr 24, 2009

I have a movie from this directory "childmovies/quicklinks_menu.swf" which is loaded using loadMovieNum into level 3, in the root file. I am then trying to load another file in the quicklinks file to a level. This is called contact_us.swf. Im just getting confused as to how to load this contact_us.swf movie. with all these levels involved.

View 1 Replies

ActionScript 3.0 :: Load An SWF File From A Main Swf File

Feb 2, 2009

I wanna know if it is possible to load an SWF file, from a main swf file, but OUTSIDE of it. What I mean to say is, to open it as it was a completely different thing.. like, for example, when you click a link of a video on a website and it automatically brings up your windows media player.. i dont wanna load the swf inside the main swf, I want another flash player to pop-up and play it separately..

View 1 Replies

ActionScript 2.0 :: Load A .swf Within .swf File As Per Text File Value?

Feb 4, 2004

I just want to load a .swf file withing my current .swf file as per the value the external text file.

I have done few experiments too.

1) I have writter below code on the first frame of my movie. here "myMC" is my target movie clip inside which i want to load another swf file.

loadVariables("myData.txt", "_root.myMC");

2) the code of my external text file is as below sm=one.swf;

Now my doubt is where and how i should write the loadmovie command to load my swf file.

View 1 Replies

ActionScript 2.0 :: Load A Jpg File That Is Outside Flash SWF File?

Mar 2, 2005

I'm trying to load a jpg file that is outside my flash SWF file and I've tried this code:loadMovieNum("1.jpg", 1);

View 5 Replies

ActionScript 2.0 :: Load A .swf File Without Naming The File?

Jan 15, 2007

I'm trying to load a .swf file without naming the file. Put more clearly, can I tell Flash to just load a random file that has the .swf extension without naming the .swf file?

View 1 Replies

ActionScript 3.0 :: Load The .swf File Into My Index.swf File?

Aug 2, 2011

i'm working on a project, where i purchased a news scroller...and now i'm trying to load it into my original project with this code

Code:
var l:Loader = new Loader();
l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);[code].......

i have tried other different codes and it just won't load the file, i've tried to load in other files and it works without any glitch at all..so i'm wondering if there is any other way to load the .swf file into my index.swf file...

View 4 Replies







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