actionscript-3

Any "Image Sprite" Class/Libraries/Helpers for Flash AS3?

Hello, Is there AS3 classes/libaries for Flash that, in the traditional meaning of 'Sprite', render only a certain part of one image? Short of making my own, I imagine some kind of convience method has been done before. But 'Sprite' meaning Sprite in ActionScript makes it impossible to Google etc. Many thanks, Ross ...

multilevel parsing algorithm

for now I have a pretty simple way of parsing out some commands through actionscript. I'm using regexp to find tags, commands and operands using... +key_word+ // any text surrounded by + [ifempty +val_1+]+val_2+[/ifempty] //simple conditional [ifisnot={`true,yes`} +ShowTitle+]+val_3+[/ifisnot] // conditional with operands my curre...

Problems loading a NetStream Video

I have been creating a custom video player for the web. On some machines that I run this on it will start loading the .flv file then no progress will be made for 30 seconds to one minute then show that the video is completely loaded. I am checking how much has been loaded using a bytesLoaded / bytesTotal in an Event.ENTER_FRAME. When ...

Flex Cursor management question

I have a spark borderContainer that contains a spark TextInput. I have an mouse_down and mouse_up event handlers on the borderContainer in order to drag it around the screen; while dragging I change the cursor. I would like to make the textInput behave as a "standard" textInput, i.e. when clicking on the textInput the user should not be...

ActionScript - Accessing TextField Context Menu Events?

TextField objects have a built in context menu containing items which target cut, copy, paste, delete and select all events. i would like to map keyboard keys and modifiers to these events to obtain their free functionality. is that possible? ...

Rotating a Text Field in as3

I am working on a Flash Project in which i have to rotate a text field.I am Rotating the text field using this function--- **function rotateAroundCenter(ob:*, angleDegrees) { var m:Matrix = ob.transform.matrix; m.tx -= point.x; m.ty -= point.y; m.rotate(angleDegrees*(Math.PI/180)); m.tx += point.x; m.ty += p...

Retaining advance search functionality criteria stored in Database as XML

Have an advance search functionality, we have dynamically create some components to make criteria as SQL query to search. For example, textbox, combo box are used here with different combinations. After sometime user wants to see that criteria by click the button named 'CRITERIA'. This time send the request to server and get the XML fr...

Equalizer animation is very slow and choppy in Flash AS3 when streaming?

So here's the scenario...sigh...My app makeup goes like this main FLA load mp3Player SWF mp3Player SWF loads mp3's via XML in which the XML is loading the mp3's through a full URL and not locally (url = "http://blahblah.com/song1/mp3, not "/song1.mp3") I have only one frame, no animations, and 2 movie clips for the equalizer. One for ...

auto movable gallery in flex

hi, i have to develop one image gallery in flex, this is how it looks, wht i have to do, is to make it run, like it keeps running, from left to right,(the items shown here should move from left to right) i am using repeater in an hbox, can u help me by telling, how to make it movable? Thanx in advance ...

What's the most fun: AS3/Flash or ObjC/Cocoa/XCode ?

It's a question for people who know both AS3 & ObjC. I know a little bit of both, but can't decide which would be the easiest language to learn & the most fun to use on a professional level. And why? Fun as in, most exciting & most interesting. ...

InteractiveScene3DEvent not firing in Papervision BasicView

Hi here, I'm using BasicView to setup my PV3D scene, and the scene itself works fine (3d carousel of movie posters) but the InteractiveScene3DEvent is not firing when a poster is clicked or moused over. I set my viewport to interactive... twice. view = new BasicView(stage.stageWidth,stage.stageHeight,true,true); view.viewport.buttonMo...

ActionScript: How to Import XML data as a variable (not as an Event)

Hi. I am attempting to import some simple XML data into Flash ActionScript 3.0. I can easily do this as an import that is posted to the stage, but I want to save it as a global variable instead. Here is the XML file that I am pulling from: <utilitySavings> <nameof file="academicWaterSavings"> <waterValue>100</waterValue> <el...

Flash Uploader not Calling upload php file.

Hello everyone I'm trying to make a flash uploader. The issue however that has me stumped the uploader doesn't seem to be calling the php file. I'm watching in httpfox and its dosen't seem to be calling any file. Yet it appears to be uploading. It never actually uploads anything but it acts normally I don't get any errors I check the...

Loading external SWF file issue.

I am building a SWF player which loads external SWF's. Rite Now. I could call the external SWF using URLRequest. but I am getting 2 problems How to run the SWF with the frame rate of the actual SWF movie. How can I know the frameRate of external SWF dynamically from within AS3. I have set a layer of 450px by 350px. How do I scale the...

Propagate custom event to Parent

I have got a custom event set up (see below), but when I listen for the event in my main class, and it gets dispatched from the child class, it never gets captured. TRIED: this.b.addEventHandler(GameLaunchEvent.GAME_LAUNCH_EVENT, this.eventHandler) package com.thom.events { import flash.display.MovieClip; import flash.events...

How can I remove a external SWF then reload it with new parameters?

Hi I am new at action script 3 but I have to finish a project about large TV shows. In this project I need to load several SWFs in a base scene and after some loops when my parameters is changed I have to clear display and memory then load them again. every thing in my project are working but I have a big problem and I can't remove the p...

How to send ByteArray to Flash without using php_amf extension

Hi. I'm working on a Flash tool that needs to send some data in the form of a flash.utils.ByteArray instance to PHP (amfphp service class) and get that data back from the amfphp service as flash.utils.ByteArray instance. Now I can do all of these with the php_amf extension enabled on the local WAMP server. And the tool works fine. But ...

replace an swf instantaneously

Just looking for ideas on something (tried to make this description shorter but didn't succeed): I want to be able to update an swf instantaneously - by that I mean don't refresh it until the entire new version of it is completely ready and then immediately replace the existing contents in the browser window (as opposed to the existing ...

Is there a way to access the remote IP of a RTMFP p2p stream?

I'm writing a communication system, using Actionscript 3 and C#. Flash is used to communicate with RTMP server and stream video and audio using RTMFP p2p, but the actual client logic is handled in C#. What I want to be able to do, is allow users to share files between each other also using a direct p2p connection. I have got the RTMFP ...

Flex How To Call A Function With A Variable Number Of Parameters?

Let's Say I Have This Class: package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ trace(getAverage(1,2,3)); trace(getAverage(1,2,3,4)); trace(getAverage(1,2,3,4,5)); } public function getAverage (...numbers) { var total = 0; for (var i = 0; i ...