flash

getting the accurate time for every mousePressed event

When someone clicks in my flash activity, sometimes it triggers a lot of computation. If the user clicks again (e.g. a double click), this event gets queued and dispatched after the heavy computation is complete. If I clicked many times, the problem is just compounded -- if clicked fast enough, the queued heavy computation finishes up ...

Flex: type was not found or was not a compile-time constant: Button

Hi guys.. I am trying to build a pure as3 project in flex and I got the following error: type was not found or was not a compile-time constant: Button type was not found or was not a compile-time constant: TextField My code is: import fl.controls.TextInput; // import my textinput import flash.display.Shape; import flash.dis...

Can not add font to dynamic text field.

I am Tring to Add Font in my dynamic text field But it just dont happens here is the code var format:TextFormat = new TextFormat(); format.color = stringColor; format.font="Palentino linotype"; mysidepanel.badgeHolder.defaultbg.usernameholder.engraveUsername.setTextFormat(format); mysidepanel.badgeHolder.defaultbg.de...

Concurrency and Networking in Flex and Actionscript

I am interested in making a RIA in Flex that will communicate with my server. The application will be downloading and uploading very often. It will need to be able to download hundreds of images over the course of its runtime. However, I have read that Flash does not support threading. Would this be a major problem if I want the UI to ...

Indexing Array, Non-Null Error AS3

Hello, This picture gallery adds children. It does what it needs to, but throws a #2007 error. There's a garbage and range issue I want to fix. Is there an easy solution for this? Thanks, //PICTURE GALLERY var um0:MovieClip = new z0; var um1:MovieClip = new z1; var um2:MovieClip = new z2; var um3:MovieClip = new z3; var AR:Array = [um...

In Flash, how do I import a package, instantiate the class, and call a method without getting an error?!

This is driving me absolutely nuts. I've scoured threads on the subject and NOTHING seems to work. I have an FLA file with the following code on frame 1: import TestClass; var tstClass:TestClass = new TestClass; tstClass.testMethod(); In the accompanying AS file, I have the following: package { public class TestClass { ...

System.setClipboard() inside event handler

Any thoughts on a good way to accomplish something along the lines of var request:URLRequest = new URLRequest("http://myurl.com"); var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, function(event:Event):void { System.setClipboard(loader.data); }); in actionscript 3? It seems as if System.setClipboard() ...

Actionscript: working with the audio / video of FLV

Hi, I'm wondering if what I want to do is even possible with flash. If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video? Thanks for any advice on where to start! ...

iPhone to Flash porting

I need to port an existing game written for the iPhone to Flash. The iPhone game is mainly written in pure C rather than Objective C. I'm wondering if there are any good tools for converting the C code to Actionscript directly, or in general if anyone has some advice on how to do this porting in an efficient way given its C based source...

MinimalComps Flash GUI and Transcoding Errors.

Basically, irrespective of what changes I make to my source, compiling alway yields either a transcoding error, or a missing definition. I'm new to flash so it's difficult for me to understand how to go about fixing the problem. Anyway here is the source. The stack overflow link I always put in all my source, to look at for encouragement...

Adobe Flash Professional - runtime error line number?

Compiled error show the line number well, but how about runtime line number? I often get error such as: ArgumentError: Error #1063: Argument count mismatch on cards::Game/myfunction(). Expected 0, got 1 and if I have many myfunction() in my AS3. It would be frustrating if I have to check one by one. Isn't a line number would...

Can I use SWF file to import in Python web application

Hey all i develop one project on python and upload on google app can i use swf file to import in python web application??? if u have any link or idea give me some suggestions please. ...

Compile AS3 into a SWF online using Flex SDK's mxmlc

Read my question thoroughly before responding, I know there’s a site called wonderfl.net I‘ve got the Flex SDK 4 on my Mac and I found a way to compile AS3 into SWF files using Flex's mxmlc compiler in Xcode, so I wondered, would it be possible to do this sort of simply online? Using for example a language I'm familiar with, PHP? I tho...

flash.net.URLRequest ignore browser proxy settings?

Hi guys, Played a bit with http://demo.swfupload.org/ Sniffed the queries, to my dismay, swfupload ignores the Chrome/Firefox's proxy settings and communicate with server directly. Is this a bug or flash.net.URLRequest just ignore proxy settings? Could this potentially leak my IP online even I am behind a proxy? ...

Is Flash Player 10's SoundTransform volume 1+ value supported?

Hi there, When reading the FP10 SoundTransform documentation (http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/media/SoundTransform.html) one would believe that the volume value cannot rise above 1. Or, if it can, this should have no effect. That's what the documentation says. However, it does appear to be possible t...

how to download video flv video directly from youtube

Hi, I'm trying to download flv video directly from youtube using http://www.youtube.com/get_video?video_id=9Mu23wVb--4=TOKEN Note:In place of TOKEN i placed the value of obtained from below url.... youtube.com/get_video_info?&video_id=9Mu23wVb--4 After trying this option, i'm getting page not found. is there any way to get the flv ...

flash media server FMS 3.5 and IIS on same machine

We are deploying a media management system within a local network. FMS will be used to serve the media within the local network. Since we will only have max 100 users and we have a powerful dual 4 core xeon and the plan was to install IIS and FMS on the same machine. But now I read that there will be a conflict because the embedded Apach...

How to guess maximum possible outgoing bitrate for a NetStream with RTMFP for Flash?

Hi there, I've setup a sending NetStream connection in Actionscript 3 for Flash. I would like to automatically select the highest possible encoding quality for transmission. To do so, I need to get the approximate possible outgoing bitrate (the "upload" speed) and then choose the corresponding quality. My question is, how do I approxi...

pass a string statement from a class, AS3

Hi, I want a way to pass a string statement from one base class to an other. The two classes are CLICK and READ. What's an easy way to do this? I haven't worked in classes that often to know some of the simple tricks. I appreaciate your help. Thanks, Class: CLICK Base Class: ClickClass Object I've turned in to a base class and placed in...

Flash webservice (remoting) calls in CS5 using Flash 10

I'm finding little info out there on using Flash and remoting services. Currently I'm starting out using AMFPHP which works pretty well for sending back simple sets of data but I'd like to send back complex query types which translate to RecordSets. I have two problems: 1) Is this the way it's currently done? PHP backend with AMFPHP ...