I'm working a game.
The game requires entities to analyse an image and head towards pixels with specific properties (high red channel, etc.)
I've looked into Pixel Bender, but this only seems useful for writing new colors to the image. At the moment, even at a low resolution (200x200) just one entity scanning the image slows to 1-2 Fra...
i want to add to stage a movieclip in another class not the .as file as the same name of .fla file how can i get this.
When i run same code in main.as i get the result but in another class it runs but no result.
...
Hi,
I try to figure this example out, but it only assume that a TextArea is used. I only got the TextFlow to work with. I've tried to translate it to only use functions from TextFlow, but with no success.
http://blog.flexexamples.com/2009/07/25/exporting-a-textflow-object-in-flex-4/ - (its the second example)
Thanks!
...
ok so im using real basic code for a small game and ive got a timer set up on one room and cant get it to display in the endgame room please help?
this is the code i used
var gameStartTime:uint;
var gameTime:uint;
var gameTimeField:TextField;
gameTimeField = new TextField();
gameTimeField.x = 900;
gameTimeField.y = 50;
addChild(gam...
Hi,
I have three datagrids inside VBox container. Since I don't want scrollbar in my flex widget i am increasing the height of SWF
through javascript, which increases with each addition of row in my datagrid. My query is how can I get the exact height of
my VBox which is the parent element of datagrid. I am not able to get the height o...
I'd like to have ASObject's returned to Flash with their ASType property set.
I expected that by setting ASType to the full qualified name (e.g. "package.package.ClassName") of an AS3 class that had the same property names as public variables, that flash remoting in the client would automatically look up the class and populate the fields...
public class myObject{
private var numVar:Number
}
My AS file:
var temp:MyObject
temp.numVar = 0;
When I debug, temp.numVar contains a value of 0, but does not show anything on the UI. If this object is then saved to the DB, and then displayed to the UI, it shows a 0. My question is - how do I get temp.numVar to display 0 before pers...
I'm developing a social game in Flash with a team of developers. Our server-side guy has developed a really slick RESTful API for the Flash client to talk to. A lot of the client-server interactions involve adding and removing objects from a persistent world, so the API makes extensive use of the PUT and DELETE verbs.
The problem is, ...
Anyone know a way to use the FileFilter but have it show all files except a list of blacklisted files? Or if anyone knows a way that I can get the functionality of FileFilter but use a blacklist instead of a whitelist?
Thanks
...
Here's the scenario:
I have an external swf file with x number of movieclips in its library that I load into a containing swf. Each MC in the external swf is linked with a class name and referenced on frame 1 as such
var unique1:lineSequence1 = new lineSequence1();
the unique1 variable name will match a string variable I create in th...
If I have the following code:
var value : String = StringUtil.substitute("The value {0} requested is {1}", user, value);
How can I use the variable name instead of using {0} and {1} in the code.
Please advice. Thanks.
Edit:
The above code is quoted from http://www.rialvalue.com/blog/2010/05/10/string-templating-in-flex/.
It says t...
Hi all,
Working on personal full flash site and I can't really figure out how to make MC's position on Stage aligned on Firefox browser. Everything goes fine using Safari.
I have tried a method of set a timer every time it goes off (every 200 ms or so) it checks to see if stage.stageWidth > 0. If that is the case, do stop the timer an...
How can I make in Actionscript 3 in Flash a MovieClip that follow the cursor, but is constrained to the irregular shape of another MovieClip?
Edit: this is somewhat what I need:
stage.addEventListener(MouseEvent.MOUSE_MOVE,follow);
function follow(evt:MouseEvent){
if(container.hitTestPoint(mouseX, mouseY, true)) {
cursor.x = ...
I am loading multiple xml files with URLLoader.
for (var i=0;i<xmlCount;i++) {
loadXML(xmlFiles[i], i);
}
public function loadXML(req:String=null, _id:Number=0):void {
var loader:URLLoader = new URLLoader();
loader.addEventListener(ProgressEvent.PROGRESS,
function a(e:ProgressEvent) {XMLLoadProgress(e, _id)...
I have an array that I am constructing in PHP which I am serializing then returning to Flex through AMFPHP. Can someone point me towards a solution for unserilizing said data once it gets into Flex via ActionScript 3?
...
Below is a snippet from the Adobe Live Docs SampleDataEvent class. It demonstrates how to create an audible sine wave by pushing samples into a ByteArray. The part that I am hung up on is why you need to push the same value into the writeFloat() method twice?
var mySound:Sound = new Sound();
function sineWaveGenerator(event:SampleDataEv...
Is there any opensource Flash+PHP multyuser whiteboard?
...
i have an filter array containing one drop shadow filter. trace is returning -1 instead of 0 for indexOf after it is tracing that the array contains the object. please explain.
trace(filterObject);
trace(displayObject.filters);
trace(displayObject.filters.indexOf(filterObject));
//outputs:
//
// [object DropShadowFilter]
// [object D...
I'm a decent AS3 programmer. I work in games, and that is my reason for programming. While there is much I can accomplish with Adobe AIR, my understanding at this point is that learning C++ is probably a good direction to take. I would learn a lot of valuable lower level programming if I needed it down the road, and I would have an easie...
Hello there,
I need an actionscript 3 function for my website, that lets people download a document after they have clicked on a button.
Couldn't find this anywhere on the net.
Thanks!
Jennifer
...