actionscript-3

Actionscript button linking issue

So this doesn't make any sense. I have actionscript in a flash-based button menu, and one of the buttons is linking to the wrong page, and i cannot figure out why. Here is the actionscript: var myURL1:URLRequest = new URLRequest ("home.html"); home_btn.addEventListener(MouseEvent.CLICK, home_btnEventHandler); function home_btnEventHan...

Best way to create interactive 3d rooms with Flash

Hi, Just after some quick advice. I want to create an interactive animated flash music website that involves the user being able to wander around a rehersal room and interact with objects. Can anyone recommend a good 3d tool to use along with Flash. Ideally something that I can use Illustrator tpo draw the room/objects, but not essen...

Force Flex 4 Spark Hslider snap to certain values?!

I remember using values array on good old mx:HSlider, is there any workaround for s:HSlider?! Basically I need slider to choose values between 300 and 2500 in following steps 300,500,1000,2000,2500. <s:HSlider id="franchiser" value="1500" skinClass="components.HorizontalSlider" x="0" y="0" minimum="300" maximum="2500" /> ...

How can I determined if I'm within an AIR app through Actionscript?

I'm seeking a method that tells me whether my code is running inside an AIR app or not. Something a lot less tacky than polling an AIR-only method. So far, searching the docs has been unfruitful. Anyone know of such a method? ...

ActionScript: Array Limitations/ How to handle lots of Data?

I am running into trouble with a multidimensional array. This works well with up to about 2000 "sets" var datasets:Array = new Array( // one "set" new Array( new Array( time:int, x:int, y:int, type:int ), // one "point" /* ... */ /* ~70 more points */ ), /* ... */ /* ~3500 more set...

Difference in Flash CS3 AND Flash CS5 Linkage option??

Well, I have Flash file which has one movie-clip (Box1) and it is exported for Action-Script in Linkage option but export for Frame 1 option is unchecked. Now my document Class is here package { import flash.display.MovieClip; public class GetTimeLineObjects extends MovieClip { public function GetTimeLineObjects() { var ...

Accessing a swf from another domain

When trying to load a swf from a domain different from my swf's domain, I get this error: * Security Sandbox Violation * SecurityDomain 'file:///C:/Documents and Settings/Welcome/My Documents/Flex Builder 3/SwfLoad/bin-debug/SwfLoad.swf' tried to access incompatible context 'http://mydomain.com/crossdomain.xml' loading of class ...

Actionscript 3 - Custom Event not being received.

Hi, ActionScript 3, just learning AS3 but know a handful of other languages. What would cause an event that the listen call executes without throwing an error and was successfully dispatched, to not be listened to? dispatch call (this runs ): private function HandleMouseClick( e:Event ):void{ if ( m_MouseState == MOUSE_STATE_SELECTED...

MovieClip is not visible at stage, however it exits.

My Flash file contains a movie-clip(Box1) that is exported for Action-script but it is not exported to Frame 1 in Linkage Dialog Box. Box1 has been put on frame-40 and the object is accessible in document Class but is not added to stage. However when it reaches to Frame 40, the object at Frame 40 get visible. My question is where is boxO...

help with actionscript 3 regex and xmpp stanzas

hi i have a string: <presence to="[email protected]/d9ec56e4" from="[email protected]/testsubject_2"> <x xmlns="http://jabber.org/protocol/muc#user"&gt;&lt;item affiliation="none" role="visitor"/></x></presence> how would i find out if it contains the presence attribute as well as who its from? ive tried using as3's x...

How to access to Object property When the propety I want to access to it's in a String variable

Hi Experts It's too complicate to explain but I'll give you an example I have an AS3 ResultEvent Object and this object has several propeties which can be accessed by this like: event.result.name or event.result.age ..... and, I have this String variable: eventProperty:String that contains "name" or "age" How do I access to event.resu...

Keep selection when refreshing datagrid in ActionScript

I'm working on my first ever AIR application with flashbuilder - just so you know. I've bound a mx:DataGrid component to a DataProvider which is a mx:HTTPService fetching an xml file with items. To keep the data up to data I'm polling the webservice on a given interval. My problem is that I loose the currently selected item in my DataG...

Two problems with scrollbar in List component

I want to hide/remove the up and down arrows from the scrollbar - how can i do that? the scrollbar is to fat - the skin i am using is not that fat. How can i make the scrollbar thiner. thanks ...

AS3 - CONVERTING THE LOADER INTO MOVIECLIP

Here is my problem. I am trying to convert the [Loader Object] into the MovieClip but could't do it. Please see the comment in to code to see my problem. The reason i want to do this is because i have other movieclips on my code, I like to be able to use those code instead of converting the code to works with the loader object. Thank yo...

Is Object the preferred Associative Container in AS3?

I've been using Object as a way to have a generic associative array (map/dictionary) since AS3/Flex seems to be very limited in this regard. But I really don't like it coming from a C++/Java/C# background. Is there a better way, some standard class I've not come across... is this even considered good/bad in AS3? ...

Flex: Remove all space around text in label

If I create a mx:Label or mx:Text control in Flex and then set an opaqueBackground to it, I notice that there is some space around the text. I would like to be able to get rid of that space to where the text is completely flush to the top and bottom of the label. Changing the gap, padding, and leading didn't seem to help. Is it possibl...

Variables from URL are loaded in random order

I'm have an issue loading URL variables into Flash where the variables are loading in random order each time the SWF is loaded. The way the variables are: var1=value1&var2=value2&var3=value3 but because it's loaded in a random order, the first variable will sometimes get omitted because of the way the & are placed. Here's the AS I'm...

Flex - How to change xml attribute name ?

For example i want to change <item id="1"/> to <item code="1"/> thanks. ...

Forcing JAWS to read FLEX content "on-demand"

I'm trying to make an existing FLEX application section-508-compliant, by getting it to work smoothly with the JAWS screen reader. It kinda sorta works, but one immediate problem is that when you first go to the login screen, your cursor ends up in the userid field, but JAWS doesn't read anything useful (like the label of the field you'r...

Using ICC Profiles in as3/flex

I am creating a flash site where someone can customize a canvas. Then they can preview this canvas on the product. Because of the way monitors display colors, we wanted to try to embed an icc color profile in the previewed image so the user can get a better idea of what the end product will look like. For instance, if they upload somethi...