actionscript-3

Make mask visible in ActionScript 3.0

I have Loader object containing loaded swf. I don't know how the shape of this swf looks like - it's not necessarily rectangular. I want to add some light reflection on it. I need to mask this reflection with Loader, but in the same time I need this Loader to be visible. I don't want to load swf twice, because it may contain some dyna...

AS3 window class which can hold components

I need to create a "popup window" in AS3, which can contain things like textboxes and datagrids and stuff like that. I have searched thoroughly, and have been unable to find such a component or class. Why did they remove the AS2 window in as3? That would have been perfect for this. The closest thing I could find was http://fatal-except...

Security Error when trying to call ActionScript function from JS.

Hello.. I have a little test swf to test calling an ActionScript(3.0) function from JavaScript. I am using the Flash documentation as a reference: (http://www.adobe.ca/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00000340.html) When the page loads I am presented with a Flash Player err...

array of loaders?

How does one create an array of loaders? The bigger picture: I have written a mapping program in flex. I want to change my mapping program so that all I need to do is drop in a new xml file instead of going into my flex file and adding the exact number of item loaders I need. So I guess I'm looking for an array of loaders that can load...

AS3: Accesing function on the maintime line from a extended movieclip class

I have some movieclips on my main timeline with a class to extend these movieclips ClickableMovieClip.as: package { import flash.display.MovieClip; import flash.events.*; public class ClickableMovieClip extends MovieClip { public function ClickableMovieClip():void { this.buttonMode = true; th...

garbage collection best practices

Hi If you're removing a MovieClip from the display list, and that MovieClip in turn has child MovieClips which have their own event listeners, is it necessary to remove ALL listeners from the child MovieClips? or just the parent MovieClip that is being directly removed from the display list? ...

implementing captcha in Flash

Hi I'm developing a flash registration form and I need to incorporate dynamic 'captcha' images for confirmation. Can anyone recommend a best solution for doing this? ...

controlling mousewheel events flash

Hi, I'm working on a menu system in flash. If the mousewheel scrolls up each menu item shift up and visa versa for mouse wheel scrolling down. The problem I have is there seems to be multiple "steps" going on. In my mouse wheel handler I trace out the text "wheel" to test. If I mouse the mouse wheel just once "wheel" gets traced out t...

Passing and receiving data from a module to my main application using interfaces.

Hi there! I read (twice) this very useful article: http://blogs.adobe.com/flexdoc/pdfs/modular.pdf And, I know that the best way to make a connection from my main app to my modules is through interfaces. So, my problem is, how can I implement an interface so my module can send and receive data from my main app?, cuz, I understand that...

Accomplish this task in C++; Migration from AS3.0

I've got way too much information to work with, so for now I'll consider this question answered until I can sort it all out and decide on the final implementation! Thanks a ton gf and Simon Buchan. I wish I could accept both of your answers, since they're both definite possibilities! Additional / Revised Conceptual Information as sugges...

How Do I handle IOErrors From HTML Enabled Text Fieds in AS3

If I'm loading images via the <img> tag in a dynamic text field and an IOError is thrown, what would I attach the event listener too? the text field? I tried this... var textField:TextField = new TextField(); textField.htmlText = "here is some text <img src='image.jpg'> and then some more"; textField.addEventListener(IOErrorEvent.IOErr...

multilingual application, which font sets to embed in flash?

Hi Building a multilingual application that should work with the most prevalent global alphabets but confused as to which font sets I should embed. For instance for Chinese there is Traditional Level 1, Simplified,Traditional (all). and Chinese (all). For Japanese there is Kani, Kanji, and All. ...

Flash: Improving data rate/quality of Camera

I'm working with a good quality usb camera at the moment. The video quality of camera is quite good when viewed in the viewer supplied with the drivers (I presume it's implemented using C++). And as to be expected Flash cannot deliver the same level of quality. But what are my options to improve the quality of an incoming local video s...

Flash contextmenu

I have a problem with the following Flash AS3-code: When I change "Delete1" to "Delete", the menu item disappears. When I call it anything else but delete, then it reappears. Why? It also occurs when I comment out hideBuiltInItems... // create new context menu var mymenu:ContextMenu = new ContextMenu(); mymenu.hideBuiltInItems(); // hid...

How do i access query string in flash action script 3.0?

Hello, In as2 it was very easy to access query string just using _root, but this doesn't seem to work on as3. <embed src="loaderInfoExample.swf?a=123" quality="high" bgcolor="#0000ff" width="250" height="50" name="loaderInfoExample" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-fla...

AS3 code equvalent of the greensock code?

hi i have a code var timeline:TimelineLite=new TimelineLite ; timeline.append(new TweenLite(MyClip,1,{y:367,ease:Expo.easeOut})); I need the corresponding code in Action Script 3. EDIT: How can i perform this animation with out using the GreenSock plugin functions? Here "TimelineLite" is a class, and "append" are the member functi...

What is the error :a conflict exists with inherited definition flash.display:DisplayObject.mouseX in namespace public ?

This appeared as I was trying to use a mouseEvent to move an object. I placed the variables for mouseX and mouseY in the public class. I did the same for direction X and Y but there was no error message for those. ...

How do I get a servicemark into my property file?

I have an existing project using Flex SDK 3.3 which uses a property file for all the static text in our Flex application. There's one specific tag which has a copyright symbol but it needs to be changed to the servicemark symbol. I'm aware that some fonts may not have support for the service mark. The existing text looks like this: hea...

How to get width and height from Loader object

package { import flash.display.*; import flash.events.*; import flash.net.URLRequest; public class Main extends MovieClip { // state private var iname:String = "image.gif"; private var w:int; private var h:int; private var loader:Loader; // constructor public f...

Errors when Upgrading Flex 3.2 to 3.5

Here's are the errors: VerifyError: Error #1053: Illegal override of allowInsecureDomain in _SwdModule_mx_core_FlexModuleFactory. ReferenceError: Error #1065: Variable _SwdModule_mx_core_FlexModuleFactory is not defined. SwdModule is a module used within the organization and there's an application that loads this (and various other mo...