Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Flash / ActionScript


Flash RPG Game - Array + Other MovieClips  

So right now i have an Array that shows my map, and i have a text box that types out my message when I press 'X', but the issue is, when I bring up that text box, its behind the array, so i can't see it Continue Reading
Views : 13
Monday 31st of December 2012

Flash How do u flip image like the one in my link below  

check out the flipping shoe on this page. How do u flip image like the one in this link: Continue Reading
Views : 23
Monday 31st of December 2012

Flash Using a container or something to shortenen my functions  

Hi I need to make a project for school where as I click on a appartment it shows the floorplan of that building.something like this http://dl.dropbox.com/u/11355063/test.swfNow I need to click on... Continue Reading
Views : 26
Monday 31st of December 2012

Clear textbox value  

Hello everyoneWhen i click in a textbox, automatically delete all the input values of textboxes.for example:I created 3 textboxes. "1", "2", "3"I entered something in textbox "1", when i clicked in textbox "2"; the textbox "1" value was deleted. I... Continue Reading
Views : 49
Monday 31st of December 2012

Combo Box Problems  

I have this combo box below but if the user does not make a selection I get this error. TypeError: Error #1009: Cannot access a property or method of a null object reference at MethodInfo-390() Continue Reading
Views : 42
Monday 31st of December 2012

Flash passing new textField...  

Hello, I am new in this forums, please be easy on me I began coding in AS3 three weeks ago, and have made some simple games.Then, I tried making a generic SimpleButton for a... Continue Reading
Views : 40
Monday 31st of December 2012

Flash AS3 ENTER_FRAME delay in firing  

Hi Guys and Girls,Its been a long time since i've posted on this forum. I've always just browsed, but never had enough experience to post and answer questions.I am doing a small project for uni, and im a little stuck with some (probably simple) AS3.To set the... Continue Reading
Views : 36
Monday 31st of December 2012

Flash Adobe Air Proportionally Scale NativeWindow  

Hey everyone,I was wondering if anyone knew how to proportionally resize a nativeWindow in air and maintain the same aspect ratio while resizing. I've tried searching and couldn't find any solutions to this problem.Thanks for the help! Continue Reading
Views : 31
Monday 31st of December 2012

Error 1046: Type was not found....  

Hey guys, I'm trying to create a colour picker using this tutorial:Link is here...Now, everything works fine in its own test.fla.But I'm... Continue Reading
Views : 67
Monday 31st of December 2012

Classes problem  

Hey I'm pretty new to action script and have been asked to create flocking behaviar with a seeker that the flock moves away from. I managed to find some code for flocking and seeking in separate classes and am having trouble putting them in the same class so the seeker... Continue Reading
Views : 42
Monday 31st of December 2012

Flash Dynamic array problem  

Here's a poser. I have a series of dynamic arrays using the push and splice methods. The arrays are populated by variables representing numbers. Each time the variables are moved in and out of the various arrays, I loop through each array and add up the numbers in each, thus changing the total... Continue Reading
Views : 36
Monday 31st of December 2012

Basic Preloader Question = 1195  

Ok, I'm building a very basic preloader to load a .swf into my "viewer" & I thought I was done. I'm getting an error that points to my addEventListener of the "contentLoaderInfo". Any Suggestions. Here's my error: Line 29 1195: Attempted access of inaccessible method contentLoaderInfo... Continue Reading
Views : 40
Monday 31st of December 2012

Flash How can I access player.x and player.y from external class  

Hello, I am a noob I am trying to put together a simple game and have been doing really well until I decided I am going to have to create a new class to handle enemies.What I have so... Continue Reading
Views : 24
Monday 31st of December 2012

Unloading an image, loading new one in same MC  

hey peeps, I have a movie clip that I load images into. Some of the images are png's and are transparent in spots. when I load them the old image still shows underneath it. it never went away. i thought when you load a new image in the same MC it replaced the old one, not covered... Continue Reading
Views : 45
Monday 31st of December 2012

Removing everything from stage  

Hi all,I wanna remove everything from stage if i click on an image. Well it ain't that hard but there is one problem. I want to leave albumbg on stage but it's a child of bg and if i removeChild(bg) it will remove all the childs of bg so also albumbg. The problem now is, if i set... Continue Reading
Views : 36
Monday 31st of December 2012

turning of debug player  

can you turn off flash debug player without uninstaling it?I want to see how something would look with no debug player, specifically if the debug player throws an error normal player wouldnt throw, does the code stops if there was no debug player or continues normally? Continue Reading
Views : 35
Monday 31st of December 2012

Flash Get external file closed  

Hey,I have one flash EXE. If there is no activity to a fixed time, it starts a flash screensaver (swf studio screensaver). Now i want to know in the main exe when the screensaver is closed. One method is to add a 1 second timer in main exe, which will watch running processes. If it not... Continue Reading
Views : 54
Monday 31st of December 2012

Help with Shadowbox  

Hey guys. So I'm trying to link a button to open shadowbox. I keep getting an 1120 Error "Access of undefined property button". My code is as follows:button.addEventListener(MouseEvent.MOUSE_DOWN, myWork);function myWork2(event:MouseEvent):void { Continue Reading
Views : 52
Monday 31st of December 2012

function  

Code: function buildItems():void{ var cx:Number = 0; for(var i:int=0;i Continue Reading
Views : 30
Monday 31st of December 2012

pause movieclip on click  

Hi, i'm developing a small game using as3 , in that i want to pause my whole movieclip when a user click on quit button.means when user will click on quit button , a dialog box will appear and will give options "yes" or "no".so when i will click on quit button , i need... Continue Reading
Views : 41
Monday 31st of December 2012

Flash Question for stage.focus  

Hello! stage.focus = txt_firstnameEdit; I need to make the blinking cursor at the txt_firstnameEdit when i enter the... Continue Reading
Views : 38
Monday 31st of December 2012

Need Help with the Kirupa Sliding menu tutorial  

Hi, I was doing out a menu like the Kirupa Sliding menu tutorial. I created a larger flash file but Im getting errors when trying to run...."access of undefined menu property menuSlide.Any ideas where I'm going wrong? I attached the FLA.I'm going... Continue Reading
Views : 39
Monday 31st of December 2012

smoothing thumbnails in a loop  

I'm loading a bunch of thumbnail images into a grid. I can get them to load fine but I need to turn the smoothing on on them and when I do this only one image seems to appear. Here is the code://here's where the images are called:function callThumbs():void { for... Continue Reading
Views : 33
Monday 31st of December 2012

send Value from function to variable . . .help me  

hi how i can send value to variable from variable arguments??? PHP Code: Continue Reading
Views : 51
Monday 31st of December 2012

Candle, smoke, flame  

I was able to recreate most of the smoke and candle example from the example provided to me from a CD at the back of a book I purchased, but I don't understand how his version differs in these ways:The book's file is "smoke_shape_dissected.fla" and mine is appended with _Joe. Continue Reading
Views : 34
Monday 31st of December 2012

SocketServer HTTP POST Request  

Hi To debug JAVASCRIPT on remote computer I use jquery post and json encoded data of objects. To receive request I use CHRISTOPHE Continue Reading
Views : 34
Monday 31st of December 2012

Flash Does ASC 2.0 support tail call optimization  

Does the ActionScript Compiler v2.0 support tail call optimization? The features list at bytearray.org says: Continue Reading
Views : 64
Monday 31st of December 2012

Silly problem with a switch and numbers...  

I don't understand why my switch statement isn't working. Could somebody help me here im perplexed. Code: var thisSquareFt:Number = (thisWidth*thisLength)/144 ... Continue Reading
Views : 51
Monday 31st of December 2012

looking for an Event  

Hi,I'm writing a Flash app (momentarily using AIR), and I'm looking for an event to fire whenever changes are made to a displayobject's properties either through code or through animation on the timeline, so I can blit some vector graphics more efficiently, rather than BitmapData.draw-ing... Continue Reading
Views : 34
Monday 31st of December 2012

Flash Movieclip in movieclip as hitbox referencing...HELP please  

if (objects[i].hitTestObject(ourShip)) { trace(ourShip.x,ourShip.y) } //The movieclip has a second layer called hitbox. Can I use this to test for hits as the current overall movieclip is too large? If so how do I go about making it work.... Continue Reading
Views : 34
Monday 31st of December 2012