Hello,
I am using Flex 3 and make a call through a RemoteObject to a Java 1.6 method and exposed with BlazeDS and Spring 2.5.5 Integration over a SecureAMFChannel. The ActionScript is as follows (this code is an example of the real thing which is on a separate dev network);
import com.adobe.cairngorm.business.ServiceLocator;
import mx....
I'm trying to figure out if there is a way to show all datatips for a single lineseries in a Flex 3 linechart. This chart will have multiple lines and the functionality we're looking for is when a user hovers over a line, show all datatips associated with just that series. Any help would be appreciated.
showAllDataTips will not work i...
Will ActionScript2 Five3d compile and run on Flash lite 3.1 or 3 or 2 or any (not FP10.1) - Will it run (+- with more than 5 fps speed on simple tasks) on any mobile phone we use tooday some nokia E71 (or any other +-old mobile phone)? Has any one tried? (and BTW will it work with video playing for ex simple rotating x y z plane with vi...
I'm working with Flex4 and I'm trying to skin a form (add a background and a border to it, etc.)
I'm trying to do it the Flex 4 way with skinClass=""
<mx:Form skinClass="skins.MyFormSkin" />
but it's not accepting skinClass as a property.
How should I do it such that I'm still adhering to the best practices in Flex 4 (decoupling v...
I need a very special component written in ActionScript 3. It is a rectangle filled with a bitmap. The bitmap is loaded from an external URL based on some programmed rules. The textured rectangle is then animated using Flash CS. Animation is performed using rotate/translate/scale/skew tools.
How to create such a component and add it to ...
Hello all math masters, I got a problem for you:
I have a 2D game (top down), and I would like to make the character escape from a shot, but not just walk away from the shot (I mean, don't be pushed by the shot), I want it to have a good dodging skills.
The variables are:
shotX - shot x position
shotY - shot y position
shotSpeedX - s...
Hello,
I have a basic for loop to loop through buttons and set some stuff and onPress handlers:
for (i=1;i<=20;i++){
//do some stuff
_root["button"+i].onPress = function(){ someMC.gotoAndStop(i+1); }
}
However, as I noticed, all buttonsthen link to one and same frame - all point to last i + 1 - Is there any possibility to call go...
I've created a class that parses an XML document to create an Object. I can successfully create dynamic, anonymous functions that return objects like this:
myObject[functionName]=function():Object {
return {property1: value1,
property2: value2,
...
var txtIt:Text = new Text();
txtIt.text = full_array[t][0];
txtIt.width = 700;
txtIt.buttonMode = true;
txtIt.mouseChildren = false;
txtIt.selectable = false;
txtIt.y = t * 30;
trace(txtIt.textWidth);
myCanvas...
When I make changes to a Flex project and rerun the project, it seems that FlashBuilder4 rewrites my html wrapper that embeds the SWF. But I have additional javascript code in the html wrapper and don't want to keep losing my code. I had to re-write the code once and it was a pain in the neck.
How do I stop it from re-writing the html. ...
I have made a very simple swf in which I have a MovieClip which I have rotated on the stage. When I try to access this rotationX and rotationY properties of this clip using the constructor of the class assigned to this MovieClip they are coming back as 0 even though they shouldn't be. If I put an on rollover event of the MovieClip and tr...
With Flash, is it possible to detect whether an object is fully ontop of another ?
E.g. I have a rectangle (floor surface) and a circle (furniture).
Now I want to detect whether the circle is fully in (=over) the rectangle, and not just whether it hits the rectangle somewhere. Is that possible ? How ?
...
Hi all. I have a movieclip.
Its current y is 0, and i want to move it to y 100
How im currently doing it is
onenterframe { Y += 2 }
how would i do it that it starts off slow and ends slow but speeds up in the middle?
...
I am trying to loop through a bitmap and determine if each pixel is lighter or darker than gray using getPixel(). Problem is, I am not sure how to tell whether the value returned by getPixel() is darker or lighter than gray.
Neutral gray is about 0x808080 or R:127, G:127, B:127. How would I need to modify the code below to accurately de...
Hey guys, I've been trying to build something simple in Flash 8, and I stumbled across something weird I cannot explain:
I have an object, and at some point of the program, I want it to be visible (it is invisible at first), so I write:
_root.myObj._visible = true;
_root.gameOver.swapDepths(_root.getNextHighestDepth()); //so it will be...
Is there a way to load an image from some url or a local folder and then make some complex morphing to it in real time? For example, I have a vector animated pseudo 3D paper in my project that, for example, is being flipped different ways. Then I want to place some image inside that paper box and want to morph that image accordingly to t...
I'm building a Flash project where it needs to handle some math, like an acceleration formula. My director has recommended a design pattern where I include the calculations directly in the flash object, but that doesn't seem like it's very good OOP.
What's the best practice for calculations in Flash? Should it be a separate object, so I...
Hi all,
I don't know the exact problem. I am using flex mx:tree component in flex 4 and I'm customizing the icons using iconFunction.
here is my code
private function iconFunctionHandler(item:Object):Class
{
var st:SWFLoader = GlobalVariable.getInstance().imageInstance;
var iconClass:Class = Object(st.content).getInstance(item.@...
Couldn`t find any ActionScript native APIs even in the beta documentation, am I right supposing that this means the only way to measure CPU / memory consumption is by cooking up a custom native solution, hooking it up with AIR and making it work on each targeted platform?
Basically the aim is to be able to have this information availabl...
I've got various flash files stored on my server.
For this exmaple - here is the directory structure:
Files > Example >
-> example.swf
-> example.xml
So then on a separate webpage stored in the root of my server.. i'm embeding the flash.
...
<param name="movie" value="http://www.example.com/Files/Example/example.swf">
...
N...