flash

Director 11 and Flash with AS 2 communication

I have a Director project with 3 scripts (2 behaviors and 1 movie script). I have the following code in my movie script: on startRecording () --do stuff _movie.script["script2"].passGrade(75, 3, 4) end and in one of my behavior scripts, I have the following: on passGrade (acc, dur, tim) member("Assessment", "Assessment").displa...

Why is motion tweening changing the size/proportion of my movieclip?

Hi there, I am having a really odd problem with Flash CS4. I have a MovieClip with the dimensions 652x400. When I create a motion tween for the layer containing the clip, and move the playhead to the last frame of the tween, I check the dimensions of the same MovieClip, and it's been changed to 660x408, regardless of the fact that I hav...

ActionScript 2, list of nested movieclips

Hello, has anyone ever tried to get the list of all the movieclips (even the nested ones) that are on Stage at a specified stopped (and current) frame in Flash 8, AS 2? I did the following: for(i in _root){ if(typeof(_root[i])=="movieclip"){ trace(_root[i]);} } But this is good for a first level search: that is, if inside the moviec...

What is wrong with this SQLite query?

I'm creating an AIR application which connects to a SQLite database. The database balks at this insert statement, and I simply cannot figure out why. There is no error, it simply does not move on. INSERT INTO Attendee (AttendeeId,ShowCode,LastName,FirstName,Company,Address,Address2,City,State,ZipCode,Country,Phone,Fax,Email,BuyNum,Prim...

Hand cursor on hover over texfield

I know about the buttonMode property on a MovieClip (to get the hand cursor on hover) and I'm looking to do the same with a TextField, but it doesn't seem to implement this property. Does anyone know if there's anything similar or, failing that, another way to control the cursor for the textfield? Thanks for any ideas :) ...

Check component initilaze before add events in actionscript 3

How can I check component (move clip or button) isInitilazed before add event (release or click) for it in actionscript 3? ...

Can you use Adobe's Alchemy to execute a batch file?

I was going to make an AIR application but I need to execute an external application and because of the security restrictions in Adobe AIR... I was thinking why not try and bypass it by writing some C code that does something like System("file to execute"); and then use Alchemy to change it into a swc and us that in my application... ...

Flash loads twice workaround?

While investigating a reported problem with my site loading slowly, I came across an issue where I noticed (via firebug) that my flash file was loading twice. After a bit of investigation I tracked it down to a firefox bug combined with the usage of SWFObject 2.0. Now, I noticed on the thread that someone mentioned that you can workaro...

Saving MovieClips and ActionScripts - Flash Shared Objects LSOs

I know its possible to save an object (and all subclasses, arrays, strings) into a Flash LSO, locally to a user's computer. Is it possible to save a MovieClip or a Function? I tried once with MovieClips, but it just stored the reference (pointer) to the MovieClip into the LSO and therefore it was unable to retrieve the whole MovieClip ...

Simulating ByteArrays using ActionScript 2?

Any replacement for the AS3 ByteArray where you can read raw binary data via any medium? Maybe load a TXT file and access the characters byte-by-byte? Any ideas? ...

Flash Player trust file not working with Embedded browser on linux

Hi, I have an application which embeds a browser based on Xulrunner inside it. I have couple of flash swf files I need to load in the browser. The swf files talk with a javascript to change the page title and also to change the URL when I am browsing through the content in the URL. I need the URL change because I need to remember where ...

Partially loaded XML in Flash

In Flash it is possible to read XML data as the XML File loads? i.e. reading the partially downloaded XML string as the rest downloads, so we can process it as quickly as possible. Do you get an event that fires everytime small chunks of data downloads? like with URLLoader? Do you get access to the raw string since partial XML cannot b...

Flash - Change the CDATA end character?

Since I want to store raw binary streams in CDATA Sections of XML files, the 3 character CDEnd code might mistakenly match my binary. Any way to change the CDEnd code for Flash? I'd like it 10 char just for reliability. ...

Flash server-side Shared Objects - LSOs

The Adobe docs (I can't find which) state that Flash can read Shared Objects (.SOL files?) off a server. This could be an interesting way to store data and retrieve it client-side. Any ideas on how to do this? ...

Whats AMFPHP and how do I use it to read binary files?

I need a solution to read raw binary from any filetype stored on a server. I heard of AMFPHP but initially got put off since I believed it required admin-access to install the service on the server. Can I use it to read binary files? Any solution to this would be greatly accepted. (No, I tried binary in XML CDATA sections but there ar...

How to determine latency of a remote server through the browser

I run a couple of game tunnelling servers and would like to have a page where the client can run a ping on all the servers and find out which is the most responsive. As far as I can see there seems to be no proper way to do this in JavaScript, but I was thinking, does anybody know of a way to do this in flash or some other client browser...

Action Script 3.0 - How to control a dynamically loaded SWF

I have a flash piece that loads external SWF files. I need to be able to move the loaded swf file to the next frame in the main timeline. How can I do that with ActionScript 3.0 Update: Here's the code snippet: var request:URLRequest = new URLRequest(file); loader.load(request); var swfTimeline:MovieClip = loader.content as MovieC...

Using flex components within a papervision3d application

I am in the process of designing a 3D panorama viewer using papervision3d for the 3D library. I am coding entirely in ActionScript3 using FlashDevelop. I am at the point now where I need to add simple components (button, dropdown menu, toolbar, etc.) I know that using mxml it is easy to create UIs. Does anyone have any experience wit...

Flex VideoDisplay text quality

I am trying to display arbitrary mp4 videos in a flex application. Often videos have text on them. Sometimes when I have to scale the video down (on the client size height or width less then videoHeight or videoWidth) keeping the aspect ratio Flash Player makes text look blurry. Is there way to tell Flash to handle scaling more accur...

What is so evil about a Flash based website?

I have the feeling that Flash-based ( or Silverlight-based) websites are generally frowned upon, except when you are creating games or multimedia-content rich applications. Why this is so? ...