I'm needing an actionscript solution that will allow dynamic text to drop into a text box with pre-determined dimensions (x, y, width, height), and then will scale the text up or down so that it is as large as it can be within those dimensions without scrolling. Wordwrap would be automatic, and there would not be any paragraph breaks.
I...
Is there a way how to check if UPLOAD_COMPLETE_DATA event was not dispatched after COMPLETE in Flash?
I'm working on file uploader. It uploads file after file – after COMPLETE next file starts uploading – this is repeated for every file. On last file on COMPLETE if there is no next file allCompleteHandler is dispatched and if some error...
I'm getting nothing with this:
mainAns.htmlText = '<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0">The differen <B>is</B></FONT></P></TEXTFORMAT>';
Maybe it has something to do with the quotes? the text will be retrieved from a database.
I dont see what I am doing wr...
A project requirement is that it be 1 way deeplinkable(a specific query string will load a section within the swf).
I have a URLProxy that I use for all external linking.
It makes sense to me to put the query string logic in this proxy.
So in the constructor, I check for a querystring, and then send a notification if it equals a predef...
I want to have a main logic class that listens for dispatched events from an assortment of other classes.
for instance:
i have a parent Map class that contains X instances of a State class.
When the user clicks on a State class, i want to dispatch an event CLICKED along with the name of the state.
now this Logic class will see this ne...
Ok, so here's my problem. I have several SWFs pulled in at runtime from different domains (we're using a CDN). There are some shared fonts within the SWFs.
I'm trying to minimize file sizes as much as possible, so that means either not embedding the fonts in any of those SWFs and setting all their TextFormats at runtime. That's very imp...
How do you bind an event listener from the controller to the view's elements eg button (click event) to its own handler?
Originally I was doing this from the view eg.
button.addEventListener(MouseEvent.CLICK, controller.buttonClick);
But now realise this is wrong since reading "each view is only supposed to "know" about the model wh...
I'm trying to access a text input that I've already placed on the stage (inside a movie clip) but with no luck.
I've defined an instance name for this dynamic text field which is currentUserCount
I've got something like this set up in the document class actionscript file:
package {
import flash.events.Event;
import flash.net....
Okay so basically I want to draw a circle in as3 that has a 'hole' in it (like a donut). Something like this, but without the outlines:
http://www.steel.ie/DugganSteel/Pictures/Hollow-circle.gif
This doesn't work:
SPRITE.graphics.beginFill(0xFFFFFF);
SPRITE.graphics.drawCircle(0,0,10);
SPRITE.graphics.endFill();
SPRITE.graphics.drawCi...
I have a movie clip loaded on the stage.
The stage loops through a few clips so this one gets removed and added to the stage again and again by itself. How can I modify the contents of it on each loop iteration?
Can I add some event listener to it (or it's parent, which is...? stage?)
I already tried something like:
stage.addEventLis...
I have a MouseEvent function and I need to call it without MouseEvent as well. I know there is quick and easy way to do it but I forgot....
my_mc.addEventListener(MouseEvent.CLICK, callEvent);
function callEvent(e:MouseEvent):void
{
trace("Mouse event called");
}
callEvent()???
now I need to call the same event without any ev...
Hey guys
I'm having issues using ó in a static string being used in an as3 URL link out.
code:
var url:String = "http://www.blahblahblah.pl/show/atomnówki";
output:
http://www.blahblahblah.pl/show/atomn%F3wki
I'm sure this is pretty basic but i'm having one of those days.
...
Let's say that you're using some black box library (i.e. no source code) that sets your cursor to something when rolling over a certain sprite. You can override that by catching rollOver and rollOut events, blocking propagation and using the CursorManager.
Question: is there a way to tell the CursorManager to use the system cursor?
Ob...
I want to design a Flash CS4(AS3) based kiosk application where the screen changes according to the multi-user events.
Due to the fact that Troywork's supports HFSM, it might be useful to my needs, but its hardly documented. I checked the dir structure, but cannot understand the usage. Is there any documentation to get started using the...
So I've created an Air app that saves to a custom file type. I've set up the file associations when I publish the app and, when you double click the file it opens the air app. What are the hooks for me to detect that the app has been opened via a file? Obviously, I need to detect this and then get the app to open the file itself.
...
Im attempting to convert a simple 3D room explorer/configurator app that is a hacky mess into something a little better.
I have now begun separating it out using an MVC pattern, but have found a major performance decrease. I think this is down to the Controller updating the camera parameters in the Model, which is then notifying the vie...
hi,
i'm working on an app (flash/As3) that lets the user upload and edit an image, and then save it to the computer,
using FileReference.
it's posible to know if the user computer have the option "hidden file extensions" (windows system) selected? How can i do it?
thanks
...
Hey Guys,
Has anyone got movieclip with nested clips to have a doubleclick = true; property working. The only way I could get it to work was by setting mouseChildren to false which I need to be true!! Any leads/ideas would be welcomed!
J
...
I've been creating this banner:
[url removed]
which accesses an xml document, replaces some texts etc, but as soon as you open it up in a browser (like with the dropbox link I pasted) the banner only loops on the first movie clip.
Put in another way: The banner you see is looping through only the first movie clip.
But the swf file (a...
I am looking to embed a YouTube video with the YouTube controls into my Flash website. Is this possible?
http://sandbox.ten90demos.com/silver/#/vision
UPDATED w/ SOLUTION:
var loader:Loader = new Loader();
loader.load(new URLRequest("http://www.youtube.com/v/zIcx_rxTstc"));
addChild(loader);
...