actionscript-3

How to export indices data from collada to as3 drawtriangles method

In Blender 2.5, I UV mapped the default cube and exported it as a collada file and saved it here: http://codepaste.net/4ffqhw I am trying to export the vertictes and indices information for the cube but I cannot figure out which of the data structures contains the indices values. The ultimate goal it to get this data to provide it to t...

update array then update stage

I'm trying to write some code for a simple product scroller. I have an array of product items and when the user clicks the next button I want to remove the item at the last index of the array add add it to the start index and then update the stage with the results. ...

Communication between c++ and actionscript 3

Is it possible to use any IPC mechanism for calling a c++ api from Adobe Flash actionscript? Are there any good examples? Update: I primarily want it for desktop apps now i.e Adobe's/or anyuone else's desktop runtimes ...

if I load a flv with netStream, how can I call a function when the flv stops playing

I have a website in ActionScript 3 that has lots of FLV animations that happen when you press buttons. Right now this is how I have it set up. in AS3, im loading FLv's (which are animations I exported in FLV form from After Effects) with net stream. I have a timer set up for the same amount of length of time that the animations (FLV's) ...

When closing flex application it clears clipboard

When open flex application inside flash player in browser. Then copy to clipboard some data. Then close tab and as a result clipboard is empty. How to prevent clipboard clearing on application close? [UPDATE] It looks like it works correctly on Windows, but clears clipboard on linux and mac. ...

Flex: how is loose coupling achieved by using interfaces?

Ive looked this up in a few different locations, but to be honest, i dont really get it. I get what loose coupling is, but not how interfaces in Flex would help to achieve it? ...

Flash / Flex virtual tour of room

Hello! I want to make a virtual tour of a room in Flash / Flex. How can this be achieved? Firstly, is it enough to have pictures taken from a still point? If yes, how can I turn them into a real tour? Also, is there a library for this kind of thing for AS3? Thank you. ...

Approach for Creating background in games

What are the best (considered by professionals) approaches while creating a platformer based game for Creating game levels & background (static ones). Create a single background and scale it? or Display it on-the-fly by loading objects (probably repeating them often). If the first one is the choice then it would become essential to c...

tidy way to manage constants

I have a series of movieclips, all with sets of constants to manage width, height, color, etc: public class MyMovieClip extends MovieClip { public static const MY_WIDTH:Number = 200; public static const MY_HEIGHT:Number = 200; public static const MY_COLOUR:uint = 0x000000; public function MyMovieClip() { // etc } Anyhow, this...

[AS3, AIR] Load External Class from content in another sandbox.

The problem is: I have (for example) font embeder class, and I want to load external SWF not from application storage folder, but another local path ( "D:\blah-blah\123.swf") in AIR, but as you understand I can't find any decision on the Internet (Google, Adode.com) Security.allowDomain() not working in AIR ( documented on adobe.com) ...

Flex 4: Detect click outside of RichEditableText

Hi Is there any easy way to detect click outside of RichTextEditable? just like FlexMouseEvent.MOUSE_DOWN_OUTSIDE is used in popups. Thanks ...

Is it possible to tween scroll position of ScrollPane component with TweenLite?

In actionscript3, using the ScrollPane component and the TweenLite package, would it be possible to animate to a particular scroll position? This seems like it should be possible, but I'm not sure exactly how to go about it. Thanks! ...

Generating HTML Page on the fly

Hi I'm writing a simple html page creator that will generate html code on customized settings. Now i want to add a "Demo" button that will generate a html page on the fly for the user to see the end result. Is there any way to generate it in an online application? Thanks ...

AS3 - Deepest XML Elements.

Hi All, I've building an XML editor and am having a little trouble parsing XML files that are passed in. At the moment I can only parse a certain depth of XML elements, and I was wondering how you could get the deepest XML element, because at the moment I have a series of for each loops that loop through xmlElem.children() but this on...

What is wrong in grammar

I am trying to get the simple expression evaluator example on the ANTLR website working within ActionScript, I have been able to get the java version to work. But my ActionScript version is getting the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at org.antlr.runtime:...

AMFPHP: Can't map PHP class to AS3 class

Hi, I'm using AMFPHP 1.9, ActionScript 3 and Adobe Flash Pro CS5 with Flash player 10x. I was trying to get data by calling amfphp serices. I'm running the app from within the Flash IDE. For primitive types like string or integer it's working fine. But when trying to get a custom object it shows the following error: SecurityError: Erro...

problem in action script3 function prevFrame

i made a button if you rollover on it it's size is larger i want if you roll out on it it's size return back to it's original size i use this function prevFrame but my problem is when i use it it stops on the previous frame only and i want to stop from the starting ...

Is it possible to use a non-embedded fallback font when using an embedded font with AS3 TextField?

I have an embedded font in my AIR/AS3 app that lacks support for most international characters. Using TextField and StyleSheet with the font-family property, I assumed I would simply need to do this: font-family: Interstate-Regular, _sans; This works if TextField.embedFonts = false; but then Interstate-Regular isn't embedded for users ...

How to place a mc above an embeded swf

Hi I am struggling to embed a swf in a flash movie so that it appears beneath a mc menubar. The menu is in a mc on the main time line at the top layer. The swf is embeded into a mc using the following : swapChildren(fullmc, swfbox1); var myLoader1 :Loader = new Loader(); swfbox1.addChild(myLoader1); var url1 :URLRequest = new URLR...

Flash Play/Pause sound toggle button

I've googled and googled but got no where or outdated tutorials. Anyone know how to make it so I can toggle audio with buttons using ActionScript 3 on Flash? ...