actionscript-3

as3: bitmapdata.hittest collision detection

Okay this is going to be hard to explain, there are a lot of things going on here. Firstly I should mention that I'm not using adobe's creative suite, just notepad and flex to compile. Secondly what I am trying to do is to detect when two externally loaded png images have collided. The images are drawn by two separate classes. The first ...

Source from external Folder (linked Source) not appearing in Flex ?

i have a Air Project in which i have added three extenal source folders. but when i reopen project or strat flash builder again i get icon on those folder like this but when i open the configuration for that project and try to validate the path and adding it again i get message like this but the path is valid. proof is this pic ...

How to create a pattern randomly without overlapping? Flash AS3

Hi, I am still a newbie to flash....still trying to learn AS3 atm I got some movie clips with different shapes and I would like to make a pattern from those movie clips. I have assigned the x y co-ordinates of those movie clips with the Math.random function. However, the shapes overlap all the time, what can I do to avoid it? Someone ha...

sending SESSION to jquery to use with flashvars

Hello everyone, I have a SESSION that looks like this: array(1) { [1]=> array(11) { ["aantal"]=> int(1) ["id"]=> string(2) "29" ["filmtitel"]=> string(16) "2_fast_2_furious" ["film_id"]=> string(1) "1" ["zaal_id"]=> string(1) "1" ["zaaltitel"]=> string(6) "zaal 1" ["tijdstip"]=> string(8) "17:30:00" ["stoeltjes"]=> array(3) { ...

Flex web application gets progressively slower and freezes

I have a Flex web application where I am visualizing data (for different countries) in the form of charts. The data is in the form of CSV files. There are individual files for individual charts i.e. one file has all data pertaining to one chart for all countries. I have a left navigation menu that allows one to see data on a country by ...

How to get email address from a string

Hi I am searching for a way to retrieve all emails addresses from a given string. For example: if i have the string "AB CD [[email protected]]" i want to receive only "[email protected]". I guess i should use RegExp and String match function, but i am not sure how. Any ideas? ...

Faking progress bar

Hello everyone. As a total beginner in Flash, I am on an assignment where I should create a fake progress bar that should go from 0% - 98%. Right now I have my line of progress with a total white tween over it that goes from left to right to indicate the fake download. See picture. While the tween is running I want to increase the ...

Help with regex - email address matching

I have the following regex which suppose to match email addresses: [a-z0-9!#$%&'*+\\-/=?^_`{|}~][a-z0-9!#$%&'*+\\-/=?^_`{|}~.]{0,63}@[a-z0-9][a-z0-9\\-]*[a-z0-9](\\.[a-z0-9][a-z0-9\\-]*[a-z0-9])+$. I have the following code in AS3: var mails:Array = str.toLowerCase().match(pattern); (pattern is RegExp with the mentioned regular exp...

XML for maintaining Flash timeline

Is it possible to define the scenes and the frames in XML in Flash CS4, so that we can parse it in actionscript 3.0 and define the interactivity. I want to define all the UI elements and the event associated with UI like List control or button in XML format (XUL??) and then use actionscript to build the application logic. Are there some ...

ctrl button sometimes block KEY_UP event for 'c' key

Try the following code: myListener = new Object(); myListener.onKeyUp = function() { if (Key.isDown(Key.CONTROL) && Key.getCode() == 67) { //Ctrl+C trace("Ctrl+C key down!"); } }; Key.addListener(myListener); hold ctrl key and start pressing 'c'. From some point you will notice that there is no KEY_UP event fo...

as3 dynamic index change for added objects on stage

I have added some backgrounds on stage and then on top of that adding another background and all these are movieclips. At some time i have to remove the backgrounds and then it should be added but here problem am facing is the background become coming front. so is there any function like send to back or bring to frond based on the mov...

problems moving to swf frame with javascript

Hi Further to my previous post ...and thanks so much for the responses .... This is the real situation I'm trying to resolve. Just need to call a swf from javascript to move the swf on to another time frame. AS3 Import flash.external.ExternalInterface; function moveOn (frame:int ) : void { gotoAndPlay (frame); } ExternalInterface....

Setting up dynamic images and event handlers for each in Flash Builder

How can I add a set of dynamic images and then add event handlers to each that trigger a different event? My scenario is that I have a remote service that grabs a set of data (ArrayCollection) that has a className, classID and classDescription. I would like the images to have event handlers that trigger a new panel display that would s...

Flex: rotating buttons and changing focus

Hi, I've got a problem with rotated buttons in Flex. They seem to contaminate other components' focus rectangles. Take the following source code, which couldn't be much simpler: <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:VBox width="100%" height="...

ActionScript: Scaling a nested SWF to fill the container

I am completely new to ActionScript. I am nesting an SWF in another SWF container to be able to send the clicks from the flash object to the javascript outside. I am able to receive the clicks outside and that part works fine. But the inner content is not scaled to the size of the outer container. I use mxmlc from the 3.5 SDK, without an...

Adobe AIR NativeProcess - UAC problems when trying to run update installers.

Hi, I'm Adam. I'm trying to use Adobe AIR 2's NativeProcess API to emulate the ApplicationUpdater but I'm encountering problems when I try to run the downloaded AppUpdater.exe file on computers with UAC (User Account Control) enabled. When run without UAC enabled, the AppUpdater opens as usual and displays the standard Adobe replace di...

Calling javascript via AS3 externalinterface within a colorbox

I have a swf that opens up inside a colorbox window. When the video finishes playing, I make an externalinterface call to a javascript function to close the colorbox. I'm trying to execute the following AS3 code: ExternalInterface.call('parent.$.fn.colorbox.close()') I can't seem to get this to work. The colorbox won't close. I also ...

Flex / Parsley - Internal class quirk with compile mode.

This is a puzzler. Relevant Environment: Flex app, running parsley, which gets built by ant. Problem class: package com.foo.bar { public class ProblemClass { // constructor public ProblemClass(enforcer:Enforcer) {} public static function build():ProblemClass { // Do some setup ret...

Return anonymous getter function in Flex / Actionscript?

Getter functions allow obj.meth syntax instead of obj.meth(), I'd like to create an anonymous one of these to return from another function. function get ():Object { } is invalid syntax. I don't suppose Flex offers an easy way to get this functionality, if it's even possible? ...

AS3: Detect Read-Only Properties

I have a simple AS3 class that just holds private variables. Each private variable has a getter function, but not all of them have setter functions. At runtime, Is there a way of telling which properties do not have setters but are read-only? Then I can decide to give the user an input field to edit the properties that have setters. ...