I am trying to adjust my Flash development workflow so that I am using Flash Builder for all of my coding and multiple FLA files for the user interfaces. I will be creating an ActionScript project in Flash Builder and then having each FLA export a SWC into a resources folder.
It is important that I retain the ability to export PC and Ma...
I am making a flash game, in each round, the player will chose either True or False. The decision of each round will be stored in an array. That is, it looks like {true, false, true, false}..
When the user clicks the "Debrief“ button, the eventlistener will be called and the game will go to the debriefing part. It will read the array me...
I need to return to my original function after capturing an event (downloading something) with another function. The original function needs to return a value, which depends on the downloaded data. So, I'd like to pause original function for the time needed for the download and the eventhandler function to complete it's work, and resume ...
What is the opposite of String.charAt()??
If I Have a string:
var Str:String="Hello World";
How do I change the 5th character, for example, from a ' ' to an '_'?
I can GET the 5th character like this:
var C:String=Str.charAt(5);
But how do I SET the 5th character?
Thanks in advance.
...
Hi,
I'm making a game in Flash for school. I have a few dialog boxes that work just fine! Now I need a bigger one with more buttons and with the same code, I can't even get a trace reaction...
My code:
On the button itself:
okButton.addEventListener(MouseEvent.CLICK,MovieClip(parent).clickMyButton);
In the AS file:
public functio...
i made a button & i used a on click event on this. So it can show some images. but after that when i click on another button for showing some text the images still upon there. Images hide the text. what will be the solution ?
...
I'm having a really weird problem with the MOUSE_OVER event. I'm building dynamic tabs representing mp3 songs containing textfields with info and a dynamic image for the cover art. I am trying to get a simple MOUSE_OVER working over the whole tab, such that you can select the next song to play.
I am using a Sprite with alpha 0 that over...
I have a class which extends a SWC , in the swc i have two boxes, front and back and an animation on the same timeline. The animation works fine without swapping when I swap them the animation stops working. Anyway I can make it work?
I have the following code :
var frontTemp:DisplayObject = this.animationInstance.getChildByName("front...
I'm trying to setup something like Aspect Oriented Programming in Actionscript 3, basically the only thing I need to be able to do is something like this:
SomeClass.getMethod("methodName").addEventListener(afterMethodExecuted, function() {
//run code
});
This way I can run code after (or before) any method in any class has run, al...
Hi
I'm trying to change the position of the dropdown list relative to the combobox item.
Setting the position using comboBox.dropdown.x = 1337; doesn't work...
...
Hi,
I have some issue with the [embed] tag. Even if I set the embedFonts property of the textfield to true the text doesn't show up.
The thing is that it worked previously and after some changes (not related to fonts) it doesn't. I'd like to understand how the embed process for font works to find the error in my code.
I declare :
[Em...
I'm trying to use the Flex 4 SDK's mx.rpc package in a Flash application.
I imported Flex's rpc.swc (Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\libs\rpc.swc) into my project by adding it to the list in Flash's "Publish Settings/Flash/ActionScrip 3.0 Settings/Library Path". It seems like I have access to the classes, however when I...
This is a Flex 4 application:
I have created a list as the following:
<s:List id="previewList"
horizontalCenter="14"
verticalCenter="-112"
itemRendererFunction="listItemRendererFunction"
click="controller.previewListClickHandler()">
</s:List>
And I have the itemRendererFunction:
p...
I've got a flash 10.1 app that lets me record microphone input to a wav without a media server, which I am saving to an Amazon S3 bucket.
I have another process running on a server which gets wavs from this bucket, converts to mp3 using LAME and puts them into another bucket. This all works fine, but in converting wav > mp3, about 0.1se...
hi!
imagine there are two interfaces arranged via composite pattern, one of them has a dispose method among other methods:
interface IComponent extends ILeaf {
...
function dispose() : void;
}
interface ILeaf {
...
}
some implementations have some more things in common (say an id) so there are two more interfaces:
inter...
ActionScript 3 - CS5
I'm new to Flash and wondering how to change fill color from code. Something like this -
btnRed.fillColor = "0xff0000";
Thank you for your comment!
...
In Adobe Flash, I have a movie clip that is added to the stage when the keyboard is pressed. I want it to travel across the screen and disappear once it reaches the edge of the stage. At the moment I use this but the image appears and then stops. Here is my code:
addEventListener(Event.ADDED_TO_STAGE,runtime);
var c = 0
function runtim...
I'm building a simple flash site for a friend who has a spa.
I keep getting this error:
Error #1009: Cannot access a property or method of a null object reference.
at spa7_fla::MainTimeline/frame1()
through the process of commenting out code, i've narrowed down to my link section:
vox_link.addEventListener(MouseEvent.CLICK,gotoV...
So I have a list of words (the entire English dictionary).
For a word matching game, when a player moves a piece I need to check the entire dictionary to see if the the word that the player made exists in the dictionary. I need to do this as quickly as possible. simply iterating through the dictionary is way too slow.
What is the quic...
I'm new to flex and was looking at some of the components that ship with flex.
Can someone tell me the difference between viewstack and tab navigator. They seem to be somewhat similar.
When do you use one or the other?
...