actionscript-3

Again, Flex 4, Actionscript Complex data filtering of XMLList filter and data-sets with special conditions.

So I tried to format this properly the first time, but it published and all the stuff in carets wasn't parsed properly, so I'll try again: I have been trying to decide what the best way to filter a set of data for a tree view is. The filters are in the following XML format: using periods instead of carots Filterin...

Flex - ILog Elixir ColumnChart3D Labels not formating properly

Okay, I've looked through all IBM doc and Adobe livedocs, My labels for my columns which are loading dynamically are not centered properly under the columns. Here is the component code. The labels are off center to the left, and some overlap the one left of where it should be. I tried adding styles to several different areas but couldn...

How to prevent the addition of dragged item in tree which drag accepting. ?

i have two tree one tree lets say TreeDrag is drag enabled and other is drop enabled lets say TreeDrop.. when i drag item from TreeDrag to TreeDrop,, i want to show feedback and everything else normal except the addition of dragged item in TreeDrop.... ...

Flash: How to share embedded fonts with text fields in multiple movie clips

Hello All, After a lot of experiments and reading many articles, Q&As, I still didn't find the answers to my problem, then I decided to ask my question at great stackoverflow forum:-) The setup of my project is as follows: - Create an AS3 project in Flash Builder 4 (Main.as3proj), and write source code in it; - Create graphical assets ...

Switching between DynamicStreamingVideoItems

I'm making a custom spark videoplayer able to play multiple rtmp stream with multiple bitrates using DynamicStreamingVideoItem. But how do i switch between DynamicStreamingVideoItems ?? ...

How to turn off anti-aliasing on an embedded font.

I have a pixel font from www.fontsforflash.com. I have embedded it using flex then loaded the swf in flash CS4 to make it available. But its very blurry and I can find a way to turn off anti-aliasing in as3. Its the right size and placed with whole numbers. The reason I have embedded this method is because I don't want to load an entire...

Accessing header variables with Actionscript 3

Hi guys, I would like to know if it is at all possible for AS3 to grab header information and process it? I am trying to avoid having to use PHP to get the information, then store it in a DB, give it to flash, then go and delete it again, or something alike. Basically the flash is waiting for three variables that get sent through the...

What interfaces/base-class should my AS3 engine's base renderable class implement/extend?

I'm writing an AS3/Flex4 game engine, and I want to have a base class for any item that can be put in the scenegraph. I wondered if extending UIComponent is the right approach, but there seems to be a whole lot of internal stuff there I don't want to get tangled up in... if possible I'd have some separation between my engine and the Flex...

Flash AS3 - Wait for MovieClip to complete

I'm writing some code that (I think) requires sequentially playing MovieClip objects. I would like to be able to leave this at a single frame and using only external source files. The way I wish to use this is to switch between sections of my program. remove current child construct movieclip add new child wait for completion of new...

Creating a custom progress bar in flash? (not a preloader)

I need a progress bar that's kind of in an odd shape, I've attached an image. It's not a preloader; it's for periodic progress while the user is performing other action on the website. I've played and played with tweens from a symbol of a fill of the bar to no avail. I'm not great at flash, so apparently even this simple thing is a stumb...

Drawing a stick-man in AS3

A stickman is defined as a set of points, a set of lines between certain points, and other simple shapes (like a circle for a head). It looks to me like the easiest route in AS3 is to use a Shape/Sprite's Graphics property to draw these lines, clearing and re-drawing each time the stickman changes. But some of the newer Flash 10 stuff s...

Controlling Flash Professional Library Components in a .as file

Hello, I'm trying to control the behavior of components in my Flash Library using a .as file class, but it doesn't seem to be working. For example, if I have a Button in my library called exampleBtn and attempt to do this in the .as file: exampleBtn.visible = false; ... nothing happens. The button is still visible in my application...

Using (Flex)Sprite objects in an MXML-based application

Canvas.addChild() insists any DisplayObject added implements IUIComponent. But I don't want my core graphics engine dependent on Flex. Is there an obvious/common way around this, to have simple graphical objects like Sprites & Shapes in a Flex application? The individual DisplayObject children I want to add as children represent objects ...

Loading and playing more than one .mp3 file

Hi, I'm trying to set up a .flv file that will have buttons for two different pieces of sound. I've been able to get the first piece to load and to play and stop, but when I try to load the second piece, I trip up. I'm still a novice, but do think I understand the basic problem -- Actionscript can't distinguish between one sound request...

Actionscctript 3.0 preloader loads once then when the page is refreshed it doesnt load

I have a .fla that has a preloader on frame one and the rest of the file on frames 2 thru 55. The preloader code is the one that comes in Flash cs5's sample files. there is a movie clip with the instance name lbar and text with the name lpc. here is the code stop(); import flash.display.*; this.stop this.loaderInfo.addEventList...

Actionscript 3.0 Resizing the parent without effecting the childrens

I have the parent movieClip with multiple children in it. How do i resize the parent without effecting the children movieClip? Memo:The children must stay with the parent. import flash.display.MovieClip; import flash.events.MouseEvent; /*The parents*/ var motherFather:MovieClip = new MovieClip(); motherFather.graphics.beginFill(0xAA00...

[SOLVED] AS2, flash 10 - swap different colour rectangle in movieclip

hi everyone I am trying to create a basic example. Using frames i know how to do that but i want to know how this can be done using as3. Using frame: A movieclip in which there are 6 frames: Red rectangle in first 3 frames Blue rectangle in last 3 frames Can someone please tell me how to do this using AS3? Thanks alot for help Re...

Flex 4 - Skinable container Horizontal Scroll Bar?

Okay, I can't seem to get my container component to add a horizontal scroll bar when browser sizes down, whats the proper way to do this? ...

Importing swf files into Flash Builder

Hi All I am trying to import an swf file into Flash builder. My swf file is correct, and displays the correct data. However, when I import into Flash builder and launch my project, I get a blank HTML. Not sure why? I am carrying out the following steps in the sequence listed below 1. Create an FLA component in Flash Professional. 2....

How to change controls position and add a mouse out fade out effect in flash playback component

Hello i'm importing a video in flash cs5, using actionscript 3.0. I have copy the SkinOverPlay.fla and i'm changing it to fit my needs. I am looking for just a play/pause button (no other controls) in the center of the screen that disapear when the mouse it out of the video. I am looking also on how to play the video in loop. thanks! ...