actionscript-3

Flash CS5 referencing design time objects in AS

If I create an object on stage in Flash Pro CS5 and want to reference it in code, how would I do so? Let's say I have 2 movie clips which I have converted to symbols and given instance names. How would I reference one of the clips? The instance name doesn't seem to work. ...

AS3 Matrix Rotation

I'm trying to rotate a string file by utilizing flash.geom.matrix but I'm clueless. How do you essentially input data into a matrix? I know that you can input data into a, b, tx, ty, etc. but these affect skewing, enlarging, and other stuff. I simply just want to create a M X N matrix with some data that can be rotated. Any help? ...

Flex 4: idleCounter seems to have changed - most online examples now broken!

Guys- I have what I THINK is a simple problem here. I'm calling a basic timer on login success, followed by setting up a couple handlers to refresh some data on a schedule. (I haven't pasted the timer handlers cause i don't think it matters what they do) Anyway, I'm trying to shut OFF those timed refreshes when the app is IDLE, but th...

Where is the normal button skin

I'm trying to copy/modify the spark skin for the default button, but not sure how to find that skin. When I hover over <s:Button and Ctrl + Click it, it takes me to the Button class, but there isn't any skin information there. ...

Can Rect rounded corners be different

When I use <s:Rect> to create a rectangle, I use radiusX to get rounded corners. Problem is all are the same roundedness. Is there something similar to Rect that lets me control the radius for each corner separately? If not, what's the best way to create this from scratch? graphics library or what? ...

A Better Way To Make SelectedIndex Correspond To Selected Item In Flex ComboBox

Isn't there a better way to accomplish this?: (RegionID is a Flex ComboBox) RegionID.selectedItem=value.Region; var N:int=0; for each (var E:Object in RegionID.dataProvider.source) { if (E==value.Region) { RegionID.selectedIndex=N; } N++; } this.validateNow(); All I want...

Creating custom MXML components

When I define custom propertie in my MXML component, I also want to define a set of possible values of that property to make Flex Builder show then (possible values of the custom property) when I invoke code completion function. Any idea how it could be done? ...

seekSeconds() problem in as3

hi, I use seekSeconds() to start a video from a specific time.But when i write seekSeconds(1),seekSeconds(2),seekSeconds(3),seekSeconds(4) and seekSeconds(5) the video starts from fifth seconds.when i write seekSeconds() from fifth seconds to fifteenth seconds the video starts fifteenth seconds.How i can solve this problem .thanks fo...

Flex Individual image loading

I want to know if anyone can point me in the right direction for individually loading images (I think thats what is happening) in Flex 4. I saw this site and I like the way each individual picture gets loaded when a new category is opened and thought it would be very useful in our next project. ...

to combine html and flash

protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string sUrl = "C:/Documents and Settings/stajer_it/Desktop/Yeni Klasör/inna.flv"; string sBaslangic = "10.000"; string sBitis = "15.000"; lblObje.Text = @"<object classid='clsid:d27cdb6e-...

5008 error in flash cs4 as3

HI i try to add a class in my project and show me this error "the name of definition "Box" does not reflect the location of this file.Pleas change the definition's name inside this file, or rename the file." What can i do for that the name is correct in class and in folder! Is anybody help me please....... ...

How to draw smooth lines in actionscript 3 (Flash)

How can I draw smooth lines with actionscript 3 (using flex 4)? I mean: I do something like this: var grap:Graphics = this.display.graphics; grap.lineStyle(8, 0xFF0000, 1, true, "normal", CapsStyle.ROUND); grap.moveTo(180,330); grap.lineTo(200,130); But the result looks like this: http://sub.ited.nl/...

How to create a textbutton in flash using Action script 3

When i tried using a textfield as a button , it seems it is not having the buttonMode property. So can anyone tell me, how can i programatically create a text button using Action script in a flash project. It should be a simple text, which is clickable. ...

how to replace all instances of a sub string in a string

Hi, I'm trying to work with RegEx to split a large string into smaller sections, and as part of this I'm trying to replace all instances of a substring in this larger string. I've been trying to use the replace function but this only replaces the first instance of the substring. How can I replace al instances of the substring within the...

get object from a method in as3

Hi, Is there a way to know from which object a method (a Function object) came from? tx ...

How to pass array for Inspectable paramether

When I create a custom component, I define a property which is array that could accept values from the enumeration, see code below: [Inspectable(type="Array", defaultValue="day, month", enumeration="day, week, decade, month, year")] public var selectionMode:Array; I would like to know how I can pass array of values to my component fr...

Notes and remarks over the GUI

Hi guys, I am developing a flex application for collaborative data analysis. To present the data my application uses standard and custom components (grids, charts etc.). I want to deliver the feature that allows users making notes over the GUI of my application. So, other users will see they notes late on. At the moment my question i...

Flash Page Flip

What properties are used to animate a Flash "book"? Are there any open source projects that I can use to make something like this? ...

Is there a tool similar to FlashDevelop for Ubuntu?

For developing Flash / ActionScript packages on Windows, there is no better free tool than FlashDevelop. Unfortunately, its reliance on the .Net framework make it ill-suited for AS3 development on Ubuntu. (My attempts to get it working with Mono failed - the installer wouldn't even work.) Is there a similar tool for use with Ubuntu? ...

Is there a simple ActionScript class that fetches the content from a URL and returns it?

Is there a standard class that simply returns the response received from a URL given a URL? Looking through the documentation, I found mx.servicetags.HTTPService, but I don't think it's what I'm looking for. Update: The request is happening inside of a function and therefore that same function has to return the result. In other words, ...