I have a bit of text
"this is the text want I want to do is replace the text, I have just added another is for good measure"
This is stored as a standard string but I want to turn this into html and add css classes like, in this example wrapping around the word "is";
"this is the text want I want to do
is replace the text, I have ju...
I'll make it short: is it possible to get the user's facebook email adress (or a hashed email adress), so I can let's say compare his facebook email with his email in my database? I'm trying to get a FacebookUser and then use facebookUser.email_hash but that returns nothing.
...
I have a document class with a child MovieClip on the stage. I have the clip already on the stage because it's part of an complex layout provided by the designer and it seems easier to leave it on the stage than to use addChild (since I would have to add about 60 objects).
What is the best way to reference the document class from inside...
I'm using the Mate framework for Flex and communicating with a server running C#. I'm having trouble mapping C# classes to ActopnScript classes. I've got it working fine for simple classes and built in datatypes.
If I have a C# method in my API that returns a API.Foo.Result< API.Foo.Bar > what name do I use for my RemoteClass alias? Do ...
How do I insert XML data into an ArrayCollection in AS3?
...
Hi,
I import my images with
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
imageLoader.load(imageRequest);
and then try and cast as a movieclip:
var newImage:MovieClip = imageLoader.content as MovieClip;
addChild(newImage);
i keep getting errors, is this possible?
Thanks,
Ross
...
I am loading an external SWF using the Loader class, and adding it to the stage with addChild.
When trying to add a mouse click event listener to the MovieClip, using addEventListener, nothing happens, the event never fires.
Is there a specific way to add listeners to externally loaded movie clips?
My code looks somewhat like this:
v...
Is there an online cheat-sheet to graphs of common tween / easing functions? I want a bookmark I can refer to when picking a function for a tween (e.g., Quintic, Quadratic, "Bounce"). The only one I can do in my head easily is linear.
...
Just to get some professional opinions, is it possible to load in an external SWF and set that SWF's background to transparent?
This question has nothing to do with embedding the SWF in an HTML page. I already know that setting the WMODE to transparent will create a SWF with a transparent background in a browser.
...
When drawing parallel vertical lines with a fixed distance between them (1.75 pixels) with a non-integer x-value-offset to both lines, the lines are drawn differently based on the offset. In the picture below are two pairs of very close together vertical lines. As you can see, they look very different. This is frustrating, especially ...
I have a text field (for names) wich must allow all characters, except latin numbers, is this possible?
I can't think of a regex for this
thanks
...
I have an array that returns multidimensional data from an mysql database, when this is collected the createNews function creates the user interface. The problem I am having is the loop is iterating quicker than the UI is being created, is there a way to use event listeners with loops so it only continues after my function has completed ...
How can I use variables to set my timer? I want to control delay and repeat as variable. My output acts as if there is nothing set in the timer.
Not working variables
var timer:Timer = new Timer(delay,repeat);
var delay:uint = 100;
var repeat:uint = 60;
Works Fine no variables
var timer:Timer = new Timer(1000,60);
Complete Unexpec...
I am searching for tutorials that explain not only the syntax of Actionscript, but also how i use Flash CS3 for creating my projects (how to create the project, add new as files (classes), etc.).
Thanks for your help
...
Flash receives the XML, but the values are wrong. How do I fix this?
Problem
I can see the XML loaded with no errors, but my output is way off. It's as though it's not receiving any values. Numbers in the output window and animation move rapidly. The Flash file runs as if it's variables where set to zero. I changed the order of my code,...
I have an if/else statement which checks the length of my current title, and then is suppose to change the defaultTextFormat of the title textField and set the text.
Currently the title will not show up now, no matter what character length the title is, any thoughts on what I could be doing wrong here?
public function switchTitle(sentT...
Hey,
I'm trying to get familiar with the whole keyboard event detection thing.
Here's my sample code.
<fx:Script>
<![CDATA[
import flash.events.KeyboardEvent;
import mx.controls.Alert;
private function init():void{
addEventListener(KeyboardEvent.KEY_DOWN,reportKeyDown);
}
...
i'd like to add all or most of my mouse events to stage, but in order to do that i need to be able to tell what is the type of the sprite being clicked.
i've added two sprites to the display list, one of which is from a class called Square, the other from a class called Circle.
var mySquare:Sprite = new Square();
var myCircle:Sprite = ...
I'm working on a Flash game that needs to call some Javascript on the page and get data back from it. Calling Javascript from Flash works. Calling the Flash functions from Javascript (often) doesn't.
I'm using the Gaia framework.
What happens:
The swf is loaded in with SWFObject
There's a button in the Flash file. On click, it uses ...
Here's the deal: I'm working on a personal portfolio in AS3 and I've run into a problem which I can't seem to find a logical answer to. I want everything (well, most of it) to be editable with an XML file, including my menu. My menu is just a Sprite with some text on it and a Tweener-tween, no big deal. But, I forgot to think of a way ho...