I know this question might be frowned upon, but actionscript is a dynamic language similar to javascript and in javascript I can take an object from a library written by someone else and dynamically (at runtime) add/remove/modify functions, properties, prototypes etc. this is kind of like dynamically extending an object to make it work w...
I'm trying to finish a facebook app using the AS3 API.
Im having trouble when using the publishPost (message, attachment, action_links, target_id, uid) function.
I can get it to post on the user's wall setting the uid=user.uid
BUT I can't make it post on the user's friends wall!
Setting the target_id=friend.uid isnt working for me
I'...
Am using this AS 2.0 Code on a button in flash CS3 :
on(press, release) {
getURL("http://somethinghere...","_top");
}
unfortunately, it doesnt work.
However, when i Ctrl+Enter in flash and click the button, it does.
it doesnt work after embedding the SWF movie in the webpage/browser.
any ideas?
...
Hi! A good friend recommended this site to me, it looks really useful! I'm a bit of a shameless noob at actionscript and after 3 days of tutorials and advice I've hit a brick wall.
I've managed to get a sensor attached to an arduino talking to flash using something called AS3glue. it works, when i set up a trace("leaf") for the contitio...
Hi I'm trying to setup a RegexpValidator that only accepts a string of alphanumeric characters between 6-30 characters long and requires one number. I'm new to Regular Expressions and everything I've tried seems to keep returning an invalid ValidationRsultEvent. Here's a chunk of code:
<mx:RegExpValidator id="regexValidator" source="{pa...
Is there an open source AS lib can be used for mind-map-like application?
...
I am an absolute beginner when it comes to ActionScript and Flash.
I am really a .NET developer.
I have been asked to modify a flash application that runs on Windows.
Currently it uses hard coded paths. My customer wants it to use the windows document folder for the current user.
Does ActionScript have a method to get the documents folde...
Adobe flash: How to determine users CPU characteristics? (its mhz, its current ocupation) I need to know how fast is users computer now, and I have only 150 ms for it. How to do such thing in actionscript?
...
I am trying to make an array of 3 floats in Actionscript 1.0, but instead of incrementing the X & Y variables by 1, it just adds 1 to the end of the previous value. This has nothing to do with Flash, it is being used for an extension for a server that requires extensions in Actionscript 1.0.
var uVars = [];
uVars.X = 250;
uVars.Y = 3;...
I'm looking for a direct way for server-side code to access a flash shared object. Obviously you can write some javascript that can read flash shared objects via ExternalInterface. But doing that requires a client code execution, and then a push of the shared object data back to the server-side code. This seems rather complicated.
So is...
I plan to use a timer event to fire every second (for a clock application).
I may be wrong, but I assume that there will probably be a (very slight) sync issue with the actual system time. For example the timer event might fire when the actual system time milliseconds are at 500 instead of 0 (meaning the seconds will be partially 'ou...
var n:Number = 1;
trace("n is Number:" + (n is Number)); //true
trace("n is int:" + (n is int)); //true
trace("n is uint:" + (n is uint)); //true
var m:Number = 1;
trace("m is Number:" + (m is Number)); //true
trace("m is int:" + (m is int)); //true
trace("m is uint:" + (m is uint)); //true
They all true! in actionscript, how to tell ...
I am writing a flex application that involves modifying a textarea very frequently. I have encountered issues with the textarea sometimes not displaying my modifications.
The following actionscript code illustrates my problem:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absol...
This is obviously a rookie question about Adobe technologies, but I am seeking a canonical answer to help me understand the adobe development stack.
Thanks,
-bn
...
HI,
I am sure this is very basic, however I am not able to find the solution.
I have a base ShapeContainer(UIComponent). I add a uicomponent which has mouse down listener to ShapeContainer. the listener works great.
When I add a simple sprite(draw square) on the ShapeContainer, The listener does not work any more.
In the c...
The problem I'm having is an extra  Chracter being added before the ® symbol in the body of an email created from a mailto: link in flash. This only happens on the PC in MS Outlook
Instead of:
MasterCard®!
It shows up as
MasterCard®!
The code in flash AS3:
var req = new URLRequest("mailto:");
var variables = new URLVariables();
va...
Essentially this is what I want to accomplish, however it doesn't work like this. Is there any solution: - The problem is I can't dynamically name a new object... ??? pulling my hair out.
import views.printingView;
public function initComponent(o:Array):void{
SomeObject::Array = o;
for(i=0; i <=SomeObject.length-1; i++){
'...
I'm trying to extend the Image class but hit a problem that I can't get past. I have a private image (img) that loads an image and a function that takes that image and copies it onto the parent.
The debug function "copyit2" displays the image fine (so I know it's loaded OK). But the function "copyit" doesn't work - it just displays a wh...
I am trying to attach some of my actionscript class, inherited from Sprite, to my Flex application by attaching it to a UIComponent, then add UIComponent to a panel. However, the size of my Sprite class appears to be larger than the panel. So, I try to resize it using DisplayObject.scale property, but I need to know the size of my contai...
I have a Flash slideshow that plays SWFs listed in an XML file. I would like to have the upcoming SWF load while the current one displays. I've tried all sorts of combinations of LoadMovie and LoadMovieNum, including creating an empty movie clip, but there's something I'm just not getting.
Right now, after making the first round throu...