Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Flash / ActionScript


Carrying a variable I'm stressing out!  

So basically, I'm trying to create a program that is going to take numbers from the user, and then use a pre-programmed function that generates random numbers, and I will compare the two.So I've created 3 frames:1) A title... Continue Reading
Views : 59
Monday 31st of December 2012

textArea  

Im so dumb in as3. I have been trying to figure out the difference between textArea enabled and editable? I have been reading the docs but im such a noob i cant figure out for myself. Continue Reading
Views : 40
Monday 31st of December 2012

Help with Playing timeline in reverse  

Hi if this has been posted before sorry for reposting it having problems trying to play the main timeline in reverse, I have a button on frame 5 and when its pressed want it to end back on frame 1 playing back through the animation in reverse.Code is probally way off lol,... Continue Reading
Views : 33
Monday 31st of December 2012

Flash How do I make sound continue even if timeline stops  

Hello people, So I have this game I'm making that has different minigames. Each minigame takes only a frame since the game is made through actionscript.So at each frame, I use a stop() code. However, I have a background sound that starts at frame 1. When I use stop, the sound... Continue Reading
Views : 34
Monday 31st of December 2012

The molehill thread.  

I've decided to create a new thread rather than post in Krilnon's, in order to have a molehill specific thread, rather than a general FP11 one.Obviously with 3D focused discussion, targeted at me, bwhiting, sHTiF, and anyone else who is interested.First impressions -... Continue Reading
Views : 31
Monday 31st of December 2012

Flash UNDO REDO buttons in flash  

Hi all,I'm pretty new to these forums and at the moment I am working on this little drawingapplication. I found this source code attached and what I will produce will be basedon this. BUT...I'm just wondered is it possible to code this so that there is an UNDOand... Continue Reading
Views : 31
Monday 31st of December 2012

.duplicateMovieClip to AS3  

hey guys im gettting this error: TypeError: Error #1006: duplicateMovieClip is not a function. at mopgame_fla::MainTimeline/frame2()[mopgame_fla.MainTimeline::frame2:9]I was wondering if you could help me change this .duplicateMovieClip to AS3? Here's my code: Continue Reading
Views : 31
Monday 31st of December 2012

Having trouble saving with sharedObject  

Hi, Im having a little trouble saving some data. What I am trying to do is have the player select an image from list, this loads up the image full size and adds a text box to the stage. The user must then input what they see (I.E. a picture of a tree is on display and in the text box they... Continue Reading
Views : 36
Monday 31st of December 2012

How to load into memory 4000 pngs  

Hello everyone, i have about 4000 pngs that i want to load to memory b4 doing anything else.I am trying to avoid, since as3 is single thread, freezing everything else.So the idea is to first load all the 4000, and just then continue the process.Kind regards, Continue Reading
Views : 35
Monday 31st of December 2012

Dynamic FLV loaded externally, previous video flickers before new video plays  

Hello there!I have a problem that has me utterly stumped and I could use any help I can get.I have a Chromeless Flash Video Player built using AS3. Continue Reading
Views : 56
Monday 31st of December 2012

Queue for BitmapData.draw  

Hello!I have my swf that's loading tons of other swfs and once they are loaded, they are being drawn to a bitmapData using the draw-function.Very often it loads many swf's at once which makes the draw-function redraw far too often.(Causes some delay) Is there some... Continue Reading
Views : 27
Monday 31st of December 2012

Loading a Variable within a Function (without it becoming non-null)  

Basically what I want to do is: Initialize a class, the class function sets up an event listener which loads a sprite sheet into a bitmap. (This part is all going fine for all I can see.) But once the function called by the event listener is over, the bitmap variable that is set up becomes... Continue Reading
Views : 37
Monday 31st of December 2012

No end to loop  

Code: publicfunction Continue Reading
Views : 58
Monday 31st of December 2012

AHHHH MochiAds code prob  

I can execute my swf just fine off of my desk top. When it goes up on Mochi and I download the zip i get this: Code: TypeError: Error #1009: Cannot access a property or method... Continue Reading
Views : 55
Monday 31st of December 2012

Starling - Load SWF and draw its content  

Hi!I have a Image and a RenderTexture-variable.I'm loading SWF's dynamically and once they are loaded I want to use the RenderTextures draw-function to draw the SWFs content into the Image variable.Here is the code of the completeEvent of the loader: Continue Reading
Views : 50
Monday 31st of December 2012

Infrequently Asked Questions and Other Interesting Threads  

Interesting Threads:ActionScript 4.0ByteCode, machine code and... Continue Reading
Views : 32
Monday 31st of December 2012

Calling parent variable  

Hi:In my main timeline I have a variable "tipos = 5" for example.I want to call a movieclip named movie2 using the "addChild". The movie loads without a problem.My problem is that in my "movie2" I have to access my variable "tipos ", but I can't access... Continue Reading
Views : 57
Monday 31st of December 2012

The supplied DisplayObject must be a child of the caller.  

What does it mean? And why doesnt my code work? PHP Code: stop(); Continue Reading
Views : 42
Monday 31st of December 2012

stage.align help!  

hi guys im new to action script and i just wanna know what scripts did they use to achieve this kind of flash like image is still align while resizing the browserhttp://www.mattwiggins.net/i think its stage.align... Continue Reading
Views : 84
Monday 31st of December 2012

Physics Engine  

This is probebly aksing for to much but... Is there anyone that can write a really basic physics engine including 1 ball and 1 solid object? So it should be 1 ball and then 1 solid object like a box. The box should be completly solid, the ball shouldnt be able to go... Continue Reading
Views : 30
Monday 31st of December 2012

Disappearing Dynamic Image on Timeline  

I'm relatively new to AS3, but have done a lot of work with AS2, so please forgive me if I'm not using the right terminology with this....I've created a button that I turned into a library class and am pulling onto my stage (same as attachMovie is AS2). This button has a timeline... Continue Reading
Views : 51
Monday 31st of December 2012

Random scrolling content in Flash  

I'm working on a banner advertisement but I've hit a bit of a snag. First, here's what I'm trying to do.1 - Eight MovieClips are added to the timeline. They are based on a MovieClip in the library which contains 1 dynamic text field.2 - Content is to scroll on... Continue Reading
Views : 28
Monday 31st of December 2012

How to use setters (Coin Collection)...  

Someone told me that I had to use a setter...how would I implement that into my code! (I am fairly new to AS3)On my external AS file for the coin I have the following:package {import flash.display.MovieClipimport flash.events.*;public class coin... Continue Reading
Views : 102
Monday 31st of December 2012

How to capture total degrees rotated  

Hello,I am using Senocular transform tool and I have an object on the stage which I can rotate freely using the mouse.What I want to do is "capture" the total degrees I am rotating the object and write in a a text box.For example, if I will rotate the object clockwise 3... Continue Reading
Views : 30
Monday 31st of December 2012

Flash as3 perform function automatically  

Hello All, I'm new to AS3 and having a bit of trouble with listeners. The file consists of 3 buttons and 3 input fields. Clicking either of the first 2 buttons will place a specific number in one of the 2 corresponding input fields. The third button adds the previous 2 values and... Continue Reading
Views : 33
Monday 31st of December 2012

Flash Animation  

HiI am trying to make a flash intro. But its animation (Transition ) not smooth.How i make smooth Animation.Please see below link Continue Reading
Views : 29
Monday 31st of December 2012

Flash Need help translating AS2 to AS3  

I have a bit of code I've been using successfully with AS2 but don't know AS3 to make it work. I've GOT to get it in AS3.All I need it to do is play to a certain point no more than 3 times...hopefully that will be obvious by the code. (see below)if (!loopCount) { ... Continue Reading
Views : 39
Monday 31st of December 2012

Flash SortOn() array function  

I have an array of objects. The objects have a base class with various properties. Each time an object gets created, I push it into the array. However, I need to sort the objects based on one of their properties.Lets say in my object class, I have a function "ReturnNumber()" that... Continue Reading
Views : 26
Monday 31st of December 2012

Flash Eventlisteners and children  

I want to know if there's a 'correct method' in removing a MovieClip off the stage. I am currently programming in simple OOP and I have 2 classes, for now lets relate them to Tree and Fruit. The fruit is the child of the tree.When the fruit is being clicked on. the tree AND the... Continue Reading
Views : 27
Monday 31st of December 2012

Flash Flash Player 'Play' function moves to next frame  

Hi,I've got an app based on four frames with seperate events on each frame. The app is powered in AS3 and every frame calls stop(); and everything works well but the swf file in flash player has a problem where if the user hits control > play it moves to the next frame. Continue Reading
Views : 28
Monday 31st of December 2012