i'm attempting to cast an object's property as an actual property of another object.
here's my object variable:
var propObj:Object = {prop:"width", width:50};
now i want to assign the property of a sprite using that object's properties.
var sp:Sprite = new Sprite();
sp.(propObj.prop as Sprite.property) = propObj.width;
now, i'm no...
I need to develop a cube that contain 10 little cubes and manipulate everyone like an object..Somebody have any idea or some tutorial for do this on PaperVision3d and Flash CS4..Thanks Folks!!
...
hi guys.
ive been pondering how to create the same type of resizing that acrobat connect does. i did read the documentation of percentage sizing. and i have implemented it. but its not how i want it to look.
to see an example : https://admin.na3.acrobat.com/_a204547676/flextras/
sorry Jeffrey to use you as an example. :)
just try...
i have built a custom class, which i call from a frame script. the custom class takes only one parameter, which is a string URL of an XML file.
SUDDENLY, when i move all the files off of my desktop into a different folder, i receive compiler errors, stating it can not find my custom class .as file, even though it's in the same folder!
...
Hi, as the title suggests, I'm looking for a Flash page flipper which I can integrate with an existing database of users and allow them to create their own flash books - I don't need anything complex as this isn't a CSS, just something which allows users to insert images and some text in each page. I've had a look at quite a few now and ...
Hi all,
I have a red box called mc1_mc and every time when you drag on it you get a new little blue box added to the stage. Yhe idea is that you can drag those blue boxes too. however I dont know how to detect them.
this is the code:
var newBlok:Boolean;
var blokIndex:int = 0;
var blokje:blok;
var huidigBlok:DisplayObject;
var prullen...
Hi.
So i have this function
capture_mc.buttonMode = true;
capture_mc.addEventListener(MouseEvent.CLICK,captureImage);
function captureImage(e:MouseEvent):void {
//lalalala
}
I want to call this function every 2 seconds (after mouse click event happens).
I tried using setInterval
setInterval(captureImage,2000,e:MouseEvent);
but...
Lest just say i have a movieClip A which contains movieClips B1,B2,B3,B4,B5
I write code in A to receive all movieclips that a contains and like print there name.
i tried this with no succes:
for each (a:MovieClip in this)
trace(a.name);
does anyone know how to get this working.
** note the trace name is actually an example i ...
I have multiple LineSeries within a LineChart, sort of like this:
private var data:ArrayCollection = new ArrayCollection( [
{ Time: 1, Bob: 5, Joe: 5, Sarah: 6 },
{ Time: 2, Bob: 4, Joe: 6, Sarah: 7 } ]);
public function doItemClick(event:ChartItemEvent):void {
var hi...
I'm programatically dragging the play head back and forth along a timeline based on a mouse event listener. The faster the mouse drags the faster the playhead rips through the frames (it's linearly proportional).
I'm also firing a starter=getTimer(); event at the inital mouse_move Event trigger (and only on the initial event) and then ...
I'm trying to open a connection to a URL that will periodically send over a JSON object. I know that I need to use URLStream and some event callbacks, but I'm in the dark when it comes to knowing how streams of data "work," or the general flow of operations. Assume I know how to open the connection and send the correct request headers. F...
Hi,
I have a flex editable datagrid mx:DataGrid and when I press TAB key, it changes to another cell when I am editing a cell.
I don't want it to change to another cell when I press TAB. How can I stop this behavior?
Thanks, Philip
...
Hi!,
I need to implement a custom cell renderer in a project of mine, i have done some search on google but couldn't find what i need, i need each cell in the tilelist to display 2 icons with couple of labels, i need a good example to start it.
If possible i need a way to design the template as a movie clip and pass it to the tilelist...
What would be the best way to create an array that can have an index and a key at the same time ?
i mean something like this
index | key | value
0 | "myItem" | "Some value"
1 | "anotherItem" | "Some other value"
2 | "blabla" | "Bla Bla"
I know i can create a normal Array/Vector and then...
Someone sent me a .fla file containing several art assets, with instances all configured to be displayed properly and in the right positions. However, since I'm using FlashDevelop with the Flex 4 SDK, I have no idea how to access these instances in code. Some of the objects are MovieClips that I need to modify the size of, and others are...
in xxxx.mxml (from flex) i have called the remote remote method (of java) the method return type is float
in the xxxx.mxml's remote objects result handler i need get the float values as Numeric.....or String..i tried with string...i did Alert.show to see the value some times i get exact value for eg, 0.5 is the value returning from java ...
I am trying to to attach a function with parameters to the timer but it says "unrelated type function" is there any way to get around this??
code example:
var redoTimer:Timer = new Timer(50);
redoTimer.addEventListener(TimerEvent.TIMER, saySomething("helloo"));
redoTimer.start();
this wont seem to work but is there a way to pass on ...
Hopefully simple question: I'm trying to set the alternatingItemColors on a datagrid via some values that I set in a CSS file but nothing seems to work.
the CSS file looks something like this:
.FACS0 {color: #B0B0B0;}
.SACS0 {color: #A6A6A6;}
.AICS0
{
alternatingItemColors: #B0B0B0, #A6A6A6;
}
I tried a variety of different th...
Given that both of these calls to getQualifiedClassName return the same thing (mx:Label), how would one go about programatically differentiating between an instance of a class and a reference to the class...
var lab1:Label=new Label();
var lab2:Class=Label;
var qcn1:String=getQualifiedClassName(lab1);
var qcn2:String=get...
What I'm trying to do: allow a user to be able to select a color palette for a custom component by selecting from a drop down menu with a variety of icons.
I have the drop down menu part down, but I'm trying to understand how to best handle the various styles in my code. Ideally I would have liked to be able to load styles at run time, ...