flash

How can I import raw binary data into an image in Actionscript 2.0/Flash 8?

Let me preface this by saying that I am something of an actionscript newbie. We have a system that allows a user to upload any image, which we store on the server. Of course, it is simple to load an image (that you know the path to) using loadMovie, but I also want to load certain pieces of meta data about the image that is precalculat...

1136: Incorrect number of arguments. Expected 0.

I ask this question time and time again and havnt got an answer. Its driving me crazy evertytime I get it. Sometimes it works, and sometimes it doesnt. When I pass a object through the constructor, it gives me the error message. So I always got to make a second method to get it to work. Here is my code if anyone can please help me var d...

Select all MovieClips instances with code

Hi Supose I have a MovieClip called Egg and I have a lot of Egg instances with unique names (required) or without names. What if I need to write a code who break all these eggs refering to the Main object in Library? Instead to add code for every egg with every name in the Stage. This is possible? Thanks ...

How to set linestyle to solid/dashed/dotted/ragged/stippled in flash?

I am using Flash CS4, and it has a feature of drawing solid/dashed/dotted/ragged/stippled lines. But, I can't find API for drawing a line of these styles. Graphics.lineStyle() doesn't support it. How can I draw styled lines progammatically? EDIT: Included ragged/stipple style ...

flash editor slows down more code I write

I have flash cs4 and when I am typing code in the editor. It appears that the more code I add to my .as document, the more sluggish it gets. When typing, it appears to be a delay for when my text actually appears on screen. does anyone know what this could be. My computer is not even a year old. ...

repositioning objects based on a scale

In my game, I have airplanes that are flying past the screen from a top down view. when the air planes crash, I scale them down to make it appear as if they are falling closer to the ground and farther away from the screen. I have turrets on these crafts as well. they are seperate objects from the air plan. I scale them down as well. The...

Positioning and Sizing a Flash Element Properly in a Div

Here is the code I'm using for the div in question (which is the 3rd box of the javascript dynamic box): <div class="contentdiv" style="margin:-20px 0 10px -30px;"> <object height="100%" cellSpacing="0" cellPadding="0"> <param name="movie" value="images/tri.swf"> <embed src="images/tri.swf" height="100%" align=top cellSpacing="0" cellPa...

how does flash handle garbage collection when it comes to adding movieclips directly to another

Just curious, If i nest a movieclip inside of another movieclip, and the nested movieclip is attached to a custom class. And that custom class has a Event.ENTER_FRAME listener. when I destroy the container movieclip, will flash get rid of the event listeners inside of nested movieclip's custom class ? May seem like a silly question but ...

How to use Text as texture on Cube inside papervision3d?

What is the best technique to apply anti-aliased text as texture on cube using papervision3d? make dynamic textfield, convert it to moviematerial then apply it to the faces of cube. Design a bitmap using any picture editor and make a bitmapFileMaterial to apply on faces of cube. Any other suggestions please. ...

Actionscript TextFormat resets when changing TextField.text

I have a TextField that is formatted with bold and blue. Then, when I change the TextField.text, the formatting of the textfield resets and I have to setTextFormat again. This is the code I use to set my TextField. myText is the variable for my TextField. (this is just part of my code, it is part of a function for my EventListener. ...

as3: how to get a MovieClip to stop...

I'm working on a Flash project where all of my code is in an external Document.as file. How would I go about setting up an intro MovieClip that runs and finishes before other MovieClips are loaded? What happens right now is that the clip loads along with everything else in the Document class (content, UI... etc). I want the intro clip t...

Flash or FlashLite development for Android?

I'm investigating the possibility to develop Flash or FlashLite apps that runs on Android as stand-alone apps, but I'm not finding anywhere a clear, definitive and up-to-date answer. Questions: The HTC Hero supports Flash out-of-the-box (without installing it), right?...it's written everywhere, but which version? Flash 9? Flash 10? Fla...

How do I check if a swf file loaded correctly since put_Movie always returns S_OK?

I am using the latest flash player and have a swf file served locally from my dev machine. In one container test app I am able to play the swf and make calls to it, but in my "Real" application the same code path results in com errors (basically it looks like the swf isn;' loading properly) Additionally this is made more challenging be...

netstream play in the middle of a video

I'm using the netstream and video object to play a video in flash. Specifically a mp4 video. What I'm trying to do is start playing the file from a specific position (Ex. 20seconds). However with netstreamObject.seek(20) doesn't work unless the stream has been loaded past 20seconds. Is there a way to specify starting to load at 20s?...

What gallery script is this?

Hi there. I really need to know what flash photo gallery is used on this site? http://www.shad0w.ru/impression.html Also do you know any similar javascript script? ...

Embedded Flash MP3 player slow on some files, normal on others

I am using a embeddable Flash based MP3 player (The standalone Version of Wordpress Audio Player, to be exact) to play audio on the web page of a client. Given the nature of Flash based players - AFAIK they all use Flash's audio/video decoding libraries - the exact player product might not matter, though. She complains that some specifi...

Web service vs Socket connection

To create a client-server GAME applications in Flash, which would be more practical to use and faster in terms of client-server data exchange: a. web services (flash / flex the client and PHP the server) or b. socket connection (flash / flex the client and C / C + + the server) Any help is welcome. Thanks. ...

AS3: Graphics.lineStyle() -- Change ALPHA only?

In the method Graphics.lineStyle() you pass the alpha as the third parameter. I don't want to change the thickness or color which are the first 2 parameters, so is there a way I can just change the alpha? or at least "get" the thickness and color so I can re-pass them so they wont change? Thanks!! ...

need help in choosing a pc to run my flash-kiosk-app on - what cpu factors affect flash performance?

hey all i am a self-taught actionscript 3 programmer and i have written a gaming-app to run on an all-in-one touchscreen pc in fullscreen kiosk mode. this project is a "garage business" meaning i learn as i go and i dont have any of the resources of a full company ("only" a great idea and a great app). my question regards flash/air cpu...

Connect to adobe stratus server in a flex application from inside a proxy

Hi, I am trying to develop a P2P conferencing application in flex using RTMFP. So I have to make connection to Adobe Stratus server for Id of Flash Player instance. I am a student and behind the http proxy. I have checked in NetConnection class but, didn't find anything related proxy configuration.So, How can I configure proxy settings ...