flash

Flash type casting gone wrong

Sorry, I'm new to flash I have this line of code: BaseEntry( _entryList[i] ).topTeamName = ((Team)(teamList.getNameAtIndex( i*2 ))).Name; and I get the error: TypeError: Error #1034: Type Coercion failed: cannot convert "[object Team]" to ncaa.Data.Team. What do I need to do to fix it? ...

Licensing Scripts

Hi, I've had my first nightmare client recently who was messing me around with payment for a project. So... I've come to an agreement with another client to use some of the sites scripting to build a site for them. But, now the original client wants their site too. I have made a deal to licence the reused parts of the site (some jQuer...

Is it possible to load an external JavaScript file by flash and then call its methods

I am talking about doing something like this: http://stackoverflow.com/questions/1375714/load-external-javascript-on-function-call from flash by using ExternalInterface probably ...

Problem parsing XML data to Multi dimensional array

Hi there, i'm still transitioning from as2 to as3, i'm having trouble with parsing XML data to Multi dimensional array, below is the onComplete handler which is succesfully tracing 'event.target.data' but outputs 'A term is undefined and has no properties' when tracing _vein_data[0][0].xPos . I'm guessing there is a easier way to approa...

Flash: Are there RTMFP tutorial for Video streaming ?

I need to create a simple video streaming without using Flash comunicator server or other streaming server. So I am thinking to use RTMFP but I haven' t found any good RTMFP tutorial for this issue. Do you know tutorial for Video Streaming using RTMFP ? ...

How create a peer-to-peer Video Streaming WEB app ??

Hi guys! I was wondering if it's possibile to create a web-client that can connect two users and then it sends their webcam stream to each other. This should happen without using Red5 or any other flash/media server. What protocol can I use? What api etc... ...

Are there RTMFP tutorial for P2P video streaming ?

Are there RTMFP tutorial for P2P video streaming ? ...

count clicks using actionscript 3.0 in flash

I want to change the variable value based on the number of clicks. So if you click the button once, the cCount should equal 1 and twice it should equal 2. Right now all I'm returning for the value is 0, no matter the amount of clicks. Any ideas? btnRaw.addEventListener(MouseEvent.CLICK, flip); btnRaw.addEventListener(MouseEvent.MOUS...

get the value of a textbox from a nested movieclip in flash

I got an fla file with nested movieclips. The "username" text box is present in a movieclip "login" which is included in another movieclip "member". How to access the value of the textbox "username" in actionscript when a button is clicked(on(release) event ). the button is also present in the "login" movieclip ...

How to find the path to the user's Temp folder from Flash/AS3?

How can I find the path to the user's temp folder (e.g. C:\Users\lisnil\AppData\Local\Temp) from Flash/AS3? It needs to work on any version of Windows, at least XP, Vista and 7. ...

Writable file location / Communication AutoPlay Media Studio -> Flash AS3

I have an application built with AutoPlay Media Studio which needs to be able to communicate with an embedded .swf, built in Flash CS3 with AS3. The APMS application needs to send a filename to the embedded flash. I've tried using flashvars but these don't seem to work from the APMS app. I've previously written the info to a text file ...

How to add a new Stage to my default stage?

I want to add a new Stage called field to the default stage (i need to place different elements on it later). And then i want to add a bitmap called myBitmap to the field. But nothing happens. I don't understand what should i do... var field:Stage = new Stage(); field.x = 200; field.y = 200; ...

Is it possible to capture audio stream in browser via flash/js/silverlight ?

Hi, Im working on a project where we need to capture a 5 sec clip of whatever is being played through the users line-out (audio). Is it possible to do this reliably through a browser (using flash/silvelight/js..) ? ...

What is the easiest way to swap items inside an array (Actionscript 2.0)

I have an array that I want to sort based on the value of one of the values in the array. The way I want to sort it is to evenly distribute the value I am searching for throughout the resulting array. For example - Original array = [a,b,c,d,1,2,3,4] I want to achieve - [a,1,b,2,c,3,d,4] I can work out when to insert the numbers (tota...

Clearing input text feilds when clicked on in Flash (AS 2.0)

I have a problem where I want a text field that by default has the word NAME in it, to become empty when a user clicks on it. The text field has the instance name 'nam' and is inside a movie with the instance name 'input_text'. I've searched around and found samples of code where everyone keeps suggesting this: textboxinstancename.onS...

How i can catch data, sended by compiled flash applet to server?

I have some compiled flash applet (swf) on web page, which interact with remote server by sockets. How i can catch sended data, without using complex sniffer, if possible. Thanks! ...

Advance from current position, Tweener, AS3

I want my animation to advance 120 pixels each time. Instead, my animation goes back to the bottom, rather than advance from it's new position. It assumes a new position, but always go back to the bottom first. How do I get my animation to advance from it's current position each time? GOAL I want my animation to advance 120 pixels from...

Is it possible to auto-play .flv or .f4v file using SWFObject v2.2?

I am using SWFObject v2.2 http://code.google.com/p/swfobject/ to play swf/flv files. I have tried two different SWFObject files to auto-play same .flv file. Auto-play is not working in case of "SWFObject V2.2 but it worked when I used "SWFObject v1.4.4: Flash Player detection and embed - I can not use "SWFObject v1.4.4" because ther...

Flash video capture

Hello, is there anyway to save the following flash video locally, perhaps by streaming it directly to drive? I primarily use Python, but any method would do. http://www.cbc.ca/video/swf/UberPlayer.swf?state=embed&RSI=cbc-production&clipId=1354327087 ...

How to fix: "NPMethod called on non-NPObject wrapped JSObject" error?

HI, I am trying to call a method defined in flash object from javascript (firefox-3.0/Linux) and getting the exception: "NPMethod called on non- NPObject wrapped JSObject". If I use eval on window.document.flash_object.func() it throws "NPMethod called on non-NPObject wrapped JSObject". Where as, if I define a javascript function in s...