actionscript-3

Draggable scrolling. How to scroll while dragging?

When I was starting to drag any element, mouse wheel scrolling is turned off, how to scroll while dragging? I'm newbie here, so I can't insert a picture, here's a link http://i.imgur.com/4tp69.gif ...

how to integrate betweens flash (action script 3) and JavaScript

how to integrate betweens flash (action script 3) and JavaScript ...

How do I fix this potential bug with the ComboBox Component in Flash ?

When I add a ComboBox component into a Sprite, the height of the container is larger than it should. Here's what I mean: import fl.controls.ComboBox; //add combo box inside a container sprite var combo:ComboBox = new ComboBox(); var container:Sprite = new Sprite(); addChild(container); container.addChild(combo); //draw the outline of t...

AS3 additive tone synthesis. playing multiple generated sounds

Hello Everybody! Inspired by Andre michelle, I`m building a tone matrix in AS3. I managed to create the matrix and generate the different sounds. They don´t sound that good, but I´m getting there One big problem I have is when more than one dot is set to play, it sounds just horrible. I googled a lot and found the additive synthesis met...

change Preloader background color

I have a custom preloader that I designed in flash. When I load it in flex, it loads with a white background. When I try to change the background to black in my flash file & load it in Flex, the background color remains white. I've also tried to update the compiler settings in Flex, adding "-default-background-color #000000" but I still...

ActionScript 3 - Draw two shapes on the same movie clip's graphics avoiding alpha blending between them

for example: var mc:MovieClip=new MovieClip(); mc.graphics.beginFill(0x000000,0.5); mc.graphics.drawRect(0,0,100,100); mc.graphics.endFill(); mc.graphics.beginFill(0x000000,0.5); mc.graphics.drawRect(0,0,100,100); mc.graphics.endFill(); with this i will get a box with an alpha value darker than 0.5. I want a 0.5 alpha square without...

Dynamic images from LIBRARY!

Trying to load images dynamically from library NOT externally since i want these images to be loaded when the site is launched. Basically i have several buttons, each button returns an event that throws a specific image name to grab. Here is the function; function sendDisplayData(e:MouseEvent){ display_mc.displayName.text = e.curren...

DataService.commitRequiredOn() recursive check?

We're using LCDS and the "commitRequiredOn" method in the DataService class to check if there are pending changes for an entity. However, it seems like "commitRequiredOn" does not check the complete graph of an object, but just the object itself. For now, we have implemented a recursive check on the complete object graph, but this seems ...

How to create multiple tab loops in AS3 by using fl.managers.FocusManager?

Hi, I want to create a tab-enabled popup window in an AS3 Air project. Currently, when I press tab several times, the focus goes through all the components in my popup window and then starts focusing the buttons and TextFields from the components that are behind the popup. I have tried to solve this problem in two ways, but none of them ...

Focus back to datagrid column after editing in flex

Hi, How can I get back the focus to the column after editing datagrid by Keypress.Enter, so that I can move to another column using arrow keys. Now its stuck in the edited cell and I cant move to another column. Thanks, Rej ...

Actionscript 3 drop down menu link error.

I'm having issues with the following menu. I've been adapting a script from kirupa into actionscript 3. When I get to the last level of the menu it won't link properly. It always takes the last url of the bunch as the url for all links in that branch of the tree. Can anyone help me get it to link properly? A zip with the fla and the xm...

SliderEvent.clickTarget does not change

Hi, In my web based flex app I have a HSlider to which 'change' event listener is binded. Inside the event listener function I have the following. trace('slider click target: '+e.clickTarget); I am changing the slider value from a timer (say every second). At this time, in the console I see that traget is being printed as null every...

Passing properties to a custom component in Flash Builder 4

I'm trying to pass some properties to a component I've created in Flash Builder 4. In my example below I want to pass the "label" property to update the label property of the Button. Any help would be greatly appreciated. Thanks in advance. // MyApp.mxml <?xml version="1.0" encoding="utf-8"?> <s:WindowedApplication xmlns:fx="http://ns....

How can I implement a "pause" button for music in a Flash game?

I'm making a flash game, and I want to make a button. When I click on it, pause the music. When I click again, resume the music. ...

Flash Builder 4: Error #1009 in when Button is wrapped in BorderContainer

This is really bugging me, but I have a component where a Button is wrapped in BorderContainer. I'm passing a custom property to the component at run-time to change the label of the button but Flex is reporting the following error: Cannot access a property or method of a null object reference When the error occurs, Flex highlights the...

how can i make eyes follow the cursor

like this by action script 3 http://www.albinoblacksheep.com/flash/movingeyes ...

Should I be learning Flash/Flex/ActionScript or HTML/CSS/JS ("HTML5")?

I'm fairly new to this whole web-development thing (2 weeks maybe, my 1st scraping of code exists here, I quite like it) and I ended up learning to use Adobe's Flash Builder 4, which I have come to quite like (although Action Script annoys me at times). Recently however I've been reading a lot about "the future" of web development, RIAs...

Changing properties of several objects in Flex

In my example below I have several objects. I want to change the label of all objects in one go, without calling each element by id. I know how to do this in HTML, but not in Flex. // HTML <div class="text" id="text1">SomeText</div> <div class="text" id="text2">SomeText</div> <div class="text" id="text3">SomeText</div> // jQuery $(".te...

ActionScript Cue Points for closed captioning in Video control?

I am using using Flash Builder to create an AS3 video player which needs to support Closed Captioning. However, I am not using the FLVPlayback component. Is there a way of doing something like addASCuePoint() to flash.media.Video;, or is my only option using Flash's Timer to do my own check? I would imagine there must be lib out there ...

Make a visual object in Flex 4 move along a circular motion path

I can't seem to figure out how to accomplish a fairly simple task: I have a simple graphic and I'd like to apply an "orbiting" effect to it - so that the graphic moves in a circle around an arbitrary point (without rotating around its own center). <s:Ellipse id="circle" width="100" height="100"> <s:fill> <s:SolidColor color="0x000...