Hi,
I have a TabBar Control with 3 tab, i need to add controls(Button,Label) dynamically in to each tab,
I can add the controls to the initial selected tab but when i add to next tab , i am getting
Null exception error..
That is when TabBar property selectedIndex="0" means i can add to 1st tab.but not in 2 and 3rd.
when Tabbar pro...
Hello all,
I am trying to understand if having different number of columns for different rows in a flex data grid is possible. For example, in Microsoft excel, you can select multiple columns and then merge them without effecting other rows that you did not select. Is something like that possible in flex data grids?
Thanks in advance
...
How do I do this? I have a seekbar which I'm retrofitting to resize with the FLVPlayback. Right now it gets the mouseX when you click the seekbar, and divides that by the length of the seekbar in order to know what percentage it should seek to.
My problem is that now that I'm dynamically setting the width of the seek movieclip the width...
I have a VideoProgressEvent on my FLVPlayback but when I test the video I get these posted in the log:
_streamLength = NaN
calling getStreamLength
calling getStreamLengthResult(279.066)
And the event never fires. What's going on here?
...
I am having an issue rendering images in flash via a character array. I am sending it from a webhandler via Context.Response.Write as a Base64CharacterArray. It functions 100% properly in a windows environment, however when using a Mac the image data is not retrieved correctly causing the image to appear incorrectly. It does not affec...
In Actionscript 3.0, the Color class has a method called interpolateColor. It seems strange to me, but the method takes two unsigned integers for the colors as opposed to two instances of Color. Additionally, it returns an unsigned integer for the resultant color. Anyhow, I don't see anything in the API for converting a Color to an un...
Hi ,
i need to download a file ex:pdf from a url and store in applicationsirectory or ApplicationStorage directory , i have a code to download but its opening save dialog box to get the userinput for where to save the downloadig file ,,
this is the code iam using
downloadURL.url = urlLocation;
configureListeners(file);
...
I have a variable that I'm using like a constant (it will never change). I can't declare it as a constant because the value gets added at runtime.
Would you capitalize the variable name to help yourself understand that data's meaning?
Or would you not because this defies convention and make things more confusing?
The larger question:
...
HELP! How would I fix this Actionscript 3.0 so that it creates a Dynamic Page title for each page?
I am new to Actionscript 3.0 and I am trying to generate a page title using Dynamic Text for each page. I have four pages in my site, and here is the actionscript that I have so far:
stop ()
function createTitle (whichpage:String) {
pageTi...
I'm writing an interface that requires classes to implement a clone() method. My naive approach to this went along the following lines:
public interface ISolvableGame {
function clone():ISolvableGame;
//...
}
elsewhere:
public class MyGame implements ISolvableGame {
public function clone():MyGame {
// ...
}
}
...
I'm writing a game where the mouse-driven controller object clicks on a player object to have it do something.
There are 2 ways of initiating the interaction between mouse and player:
Controller calls player's function:
Controller listens for mouse events. When a mouse click occurs anywhere onscreen, the controller searches all obje...
Hi, I just started learning how to code games in flash using a tutorial that was for action script 2. I am wondering if you can accomplish enough in action script 2 or if I should just learn how to use 3. I heard you can do a lot more with action script 3 but is it really that important for me to switch? (I am not going to make any 3D ga...
I see a lot of AS3 libraries are written in strict mode compile fashion. They are all very Java like. I haven't seen any libraries that requires compilation in normal mode. More functional programming like, and probably use a lot of prototype and scoping magic, since ActionScript 3 can be very much JavaScript like if used normal mode com...
the idea is to access MC's on the stage with sequantial instance names,
for example: mc1, mc2, mc3 ...
now, in as2 i would do: this["mc" + i]
(where "i" represents a number between 1-3)
how would i do such thing in as3?
thanks in advance
...
Many library classes in AS3 have "read only" properties. Is it possible to create such properties in custom as3 classes? In other words, I want to create a property with a public read but a private set without having to create a complex getter/setter system for every property I want to expose.
...
I have the following problem:
My datagrid has a custom item renderer, showing a sparkline. Each row of the DG is displaying a sparkline based on the values found in the datprovider (arrayCollection). Now I have an index (to display a unique number for each value in the sparkline) counting up within the ItemRenderer.
It seems to work, t...
I want to call my update(id) javascript function from my flash menu with actionscript 3. How do I do?
...
I've recently started working with an application written using Adobe Flex 3. We're using several deprecated functions and unfortunately we can't remove these dependencies.
The documentation says to set -show-deprecated-warnings=false into the Compiler Additional Options. This isn't accepted, but I've found that using -show-deprecatio...
I'm working on a reporting app which displays incoming data as pie by default. We'd like to offer the user the ability to switch to bar, or column, or area, or any of the other charts with the click of a button. Since we already have the data in the app, it should be fairly simple no? Does anyone have an idea of how I might approach this...
Hi,
I would need to write a RegExp in AS3 which parses an Excel formatted currency value into a number:
E.g.
RegExp($35,600.00) = 35600
And checks if it is correctly formatted (with the "," as the thousands separator, and the "." as the decimal point. The currency symbol could be any (not just $) and could stand at the beginning or...