I'm using flex and have a few images that I need to sequence through. I may add some text under each image. What I'm trying to do is automatically sequence through these images such that a black fading effect appears briefly between each image and the next - sure you've seen that sort of thing before.
My questions are this:
should th...
I'd like to access the stage of the main timeline from w/i a class that extends a movieclip. Basically, I have a button in the main timeline that makes a HUD appear. The HUD is an extended MovieClip class. When people click on a button in the HUD, I'd like to remove the object from the stage of the main MovieClip.
@curro: I think your c...
Am I able to publish a Windows/Macintosh projector from Flash Builder 4? I would like a solution that stays within the IDE, rather than having to open FlashPlayer.exe and export the EXE/App.
...
How to stop MCs from overlapping each other?
private function loadWishes():void {
for (i; i<myXMLList.length(); i++) {
cBox=new MovieClip();
checkOverlap(cBox);
addChild(cBox);
commentArray.push(cBox);
}
}
private function checkOverlap(wishB:MovieClip) {
wishB.x=Math.random()*stage.stageWidth;
wishB.y=M...
I am trying to run a function of the main class, but even with casting it does not work. I get this error
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at rpflash.communication::RPXMLReader/updateplaylist()
at rpflash.communication::RPXMLReader/dataHandler()
at flash.events::EventDispatcher/dispa...
I need to implement a drag and drop functionality, where I can define and constraint the route of the draggable object.
Like in http://www.kirupa.com/forum/showthread.php?t=330302 , only that i have the paths designed and not calculated by a math function. So, in fact, as mouse moves I need to tell the object to follow the custom path/mo...
To move the MC, using arrow keys I used the following and it worked:
var timer:Timer;
var direct:String;
initStage();
function initStage() {
stage.addEventListener(KeyboardEvent.KEY_DOWN,startMove);
}
function startMove(e:KeyboardEvent):void {
switch (e.keyCode) {
case Keyboard.RIGHT:
direct = "right";
...
i'm attempting to position a textfield to the bottom left of an image that is added to the display list from the Loader() class. i don't know how to access the width/height information of the image.
var dragSprite:Sprite = new Sprite();
this.addChild(dragSprite);
var imageLoader:Loader = new Loader();
imageLoader.load(new URLRequest("...
Hey all. I'm working on an application that was originally intended for HTML, but I've recently concluded that the best thing to do for my purposes is to do it in Flash instead.
One of the big things I need is to be able to bring in movieclips from external files and add them to my main movie at runtime (dynamic number of elements, skin...
How Can I have a Flash AS3 Projector load protected images/mp3s/videos from a password protected server? I have a bunch of content in a password protected directory that I do not want people to access unless it is in my flash Projector. Is this possible?
...
I am having trouble figuring out how to build a console for my application so i can send msgs to it from any class in the package.
i tried to send a generic Event, but I cannot find a way send a msg together with the event, or at least a reference to the object which is dispatching the event.
what approach would you suggest?
...
Hello,
My goal is to make a wide map using only one square image.
Using actionscript 3 the solution is to simply make new Bitmap from the Loader:
var loader:Loader = new Loader();
loader.load(new URLRequest("xyz.png"));
this.addChild(loader);
var duplicationBitmap:Bitmap = new Bitmap(Bitmap(loader.content).bitmapData);
Unluckily,...
I need to monitor the direction a user is indicating using the four directional arrow keys on a keyboard in ActionScript 3.0 and I want to know the most efficient and effective way to do this.
I've got several ideas of how to do it, and I'm not sure which would be best. I've found that when tracking Keyboard.KEY_DOWN events, the event r...
There's an variable in my swf I want to receive XML. It's an integer value in the form of an equation. How do I receive the XML value for 'formatcount'?
My Variable
//Variable I want to grab XML<br>
//formatcount=int('want xml value to go here');
formatcount=int(count*count/100);
Path
formatcount = myXML.FORMATCOUNT.text()
My XM...
I know there is one, but it's not easy to implement the way I want.
I would like to know the steps to interpret the lisp language and what functions are essential to be implemented.
...
I have a bunch of classes that are to be serialized. flash.net.RegisterAlias() makes this easy, but I'd rather not have to make a list of the classes to register. I'd rather have an autodiscovery mechanism that will find all the classes to register and do so.
Is there a good way to implement autodiscovery of this kind in as3?
...
Hi,
I'm using the same code I always use for preloading another swf but it's not working this time. The problem this time is that when the loading bar gets to 16% every time you can hear the movie I'm loading playing in the background. I can just add a stop to the first frame of the movie I'm loading ("trial_1.swf") but how do I tell it ...
Hi!
I am building a diagramming tool using Adobe Flex 3. I am about to implement connector lines and I have a question.
Imagine I have 2 squares at random positions on the canvas. I need to draw an arrowed connector line between them. I need it to tend to the target square's center but end on its border.
How do I find out the exact p...
How can I input varables value into a textfield?
var i:uint=0
for(i; i<4; i++){
pageText.text=i+1
}
If i use i+"something" then it can get the i value, but other than that it could not get i value.
...
I'm writing a MS Paint like simple program in Flash with pure ActionScript 3.0
A toolbar that allows you to select what shape (star, heart…) you want to draw
Another toolbar for color options, where each button is a color (red, green). there are 10 colors total.
Then there's the canvas, its where the shapes will be drawn when clicking....