Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Flash / ActionScript


Loading external swfs extended from classes in the same shared codebase  

Hey there!I'm currently developing a game in flash and want to be able to divide up my .fla assets in a way that means artists can work on a game menu .fla in isolation from the game.fla and rest of the game code.If I could briefly explain how I've approached this so... Continue Reading
Views : 48
Thursday 3rd of January 2013

RSL Problem  

Hi.This is driving me crazy :I have a preloader.swf and index.swf files. All the things works great in my computer.But in some computers and browsers when the loading is completed , index.swf doesn't play and just shows the default loading of flash. ( few dots animating ). Continue Reading
Views : 80
Thursday 3rd of January 2013

Error 1120 in Flash CS5.5  

Hi,Can anyone please tell me how to correct this error in the Adobe Flash CS5.5,Air for IOS .This app was built for the iPhone.My setting are;Player:AIR for IOSScript:ActionScript3.0Profile:Default:Publish SettingAn error code 1120 was reported during... Continue Reading
Views : 108
Thursday 3rd of January 2013

Moodle 2.0 and externalInterface call  

Hello,I am having a problem with an externalInterface call from a SWF to a javascript function. i am on a new Moodle 2.0 LMS which I am not too familiar with yet.Any help would be greatly appreciated. Continue Reading
Views : 85
Thursday 3rd of January 2013

Order of name value pairs changes between PHP and AS3  

I am loading MySQL SELECT query results back into AS. The php loads all rows from a database, parses it into a string of name value pairs with the row number added to the name, and then echos it. The AS loads that string, and then I will break it back up into rows using the row number and put... Continue Reading
Views : 40
Thursday 3rd of January 2013

Flash Question: Aligning an image that was loaded by a loaded swf  

Hi All, I have a bit of a functionality question here. I have my main swf (swf1), that loads another swf(swf2). At some point, swf2 loads an external image. What's the best way for swf1 to align the loaded image from swf2?? Continue Reading
Views : 43
Thursday 3rd of January 2013

Flash Defining an object name from a string  

I think I am on the right track here but if someone could help that would be great.I have a piece of code that loops ON_ENTER_FRAME and it is used to check if a pistolBullet is hitting a barrel.The problem I have is that I can check for collision of a barrel, if I... Continue Reading
Views : 52
Thursday 3rd of January 2013

Bitmap Data  

Hi, so I've been stuck on this problem for a few days now.Basically I have an external image, brought in through XML and loaded up with the Loader class.I know it loads because there is another child on the stage._greenShape is the loader.content (the bitmap image). Continue Reading
Views : 44
Thursday 3rd of January 2013

Am I doing something wrong here (drawRect not showing up)  

I'm using this code to try to draw a background (actually, I'm using modified versions of it todo all sorts of stuff, but w/e, the background isn't drawing, even when I comment the rest ofthe drawing fail out):var g:Graphics = this.graphics;var a:Rectangle = new... Continue Reading
Views : 61
Thursday 3rd of January 2013

Flash Trouble loading external .swf  

Hii'm working on a project, where i purchased a news scroller...and now i'm trying to load it into my original project with this code Code: Continue Reading
Views : 62
Thursday 3rd of January 2013

Pull numbers out of a string  

I need to pull numbers out of a string. I can easily iterate over all the characters, but the problem I am having is that often the numbers are zeroes. Is there a way to convert a string to an integer other than casting (since int("0") and int("a") both return 0)? Basically I need to be able to... Continue Reading
Views : 46
Thursday 3rd of January 2013

A* How to not test diagonal nodes  

Does anyone know how to prevent diagonal nodes from being tested when using A* pathfinding? My character poses are only four way and it seems a waste of processing power to even bother checking the diagonals. Thanks :-) Continue Reading
Views : 59
Thursday 3rd of January 2013

limits of rotation  

is there a type of variable that understands that 360 is less than 0 Code: var spin:int var a1 = desy - y ; var b1 = desx - x ; var radians1 =... Continue Reading
Views : 49
Thursday 3rd of January 2013

how do i find when frame has been reached dynamically  

hello!i have created a movieClip in the authoring enviornment. i dynamically get it to play and then it pauses at frame 20. how do i dynamically tell when frame 20 has been reached and get... Continue Reading
Views : 42
Thursday 3rd of January 2013

Flash Set TimeOut  

Hi fellow flashers! I need some help with some code if you would be so kind. The flash needs to go to a menu screen after 20 seconds of inactivity (like a screensaver) but if the user is on the video screen, the timeout doesn't happen. Not quite sure how to start to write this... Continue Reading
Views : 42
Thursday 3rd of January 2013

Loop that creates multiple Timers  

Hi I am trying to get this simple logic to work correctly. Right now, the trace is:int 0int 0int 0int 0I am trying to get this to trace: int 0int 1int 0int 1I am trying to set timers to go off back to back shortly after... Continue Reading
Views : 46
Thursday 3rd of January 2013

Flash How can I zoom the area wherever my cursor is placed  

Hi,I want to zoom the area wherever my cursor is placed. I don't want all the area to be zoomed. How can I achieve this? Any example code or any link would be a great help for me.Please help.Thanks. Continue Reading
Views : 47
Thursday 3rd of January 2013

Please review how I want to do masking  

Hi,I can't try this at the moment, but I would like to know if this is the way to do it.So here is the scenario:I am developing a standalone app that is composed of modules.A module is a sprite container that contains other sprites or movieclips. Pure... Continue Reading
Views : 166
Thursday 3rd of January 2013

Get all elements of a multidimensional array  

I am looking for a way of returning a multidimensional array as a non-multidimensional array, as in converting this:a:Array = [obj1, [obj2, [obj3, [obj4, [obj5, obj6]]]]]to a "flat" array, like this: Continue Reading
Views : 109
Monday 31st of December 2012

Flash problems with xml  

I'm in trouble with xml because it has 300 mb.When vai load takes too long.I waited a few minutes but gave up after 20 minutesplease help me outNote with the same xml but with fewer items will not be long open normal Continue Reading
Views : 54
Monday 31st of December 2012

Flash Tic Tac Toe Game  

Hey everyone, Im creating a tic tac toe game using AS3 and I got the basic board down and placement I just can't figure out how to track who won I tried different tutorials but its not the same for my code. Im trying to make it as simple... Continue Reading
Views : 51
Monday 31st of December 2012

SWFObject + SWFAddress Not working in Firefox.  

Hi I don't know why this isn't working but I am using swfobject and swfaddress for my flash site to make it easier to reach certian pages and have history for flash.Anyways my site is : http://www.skribbs.com/v4/ and it... Continue Reading
Views : 58
Monday 31st of December 2012

How to make an external SWF totally independent from the SWF that imports it  

Hi,I am developing a series of videogames, and I am using a "multi-SWF" approach to keep parts as independent as possible.Multiple games are loading the same toolbar, that is made of 2 SWFs: an "agent" that manages the communication between the game and the buttons, and the buttons... Continue Reading
Views : 87
Monday 31st of December 2012

one question about flash camera, object detection   

want to make a cam application. When user's show the objects (sample is inthe attach ) Flash will play a video . How can i do this thanks... Continue Reading
Views : 71
Monday 31st of December 2012

ProgressEvent.PROGRESS issue... it only shows when it is 100%...  

Hello everyone,I am having issues with ProgressEvent.PROGRESS...I read somewhere that it might be some kind of problem with windows 7, but not sure... Continue Reading
Views : 211
Monday 31st of December 2012

How to add event listeners to all movieclips on stage  

Hello,As the title suggests I have a number of movieclips and I would like to add an event listener to each one of them for a hover. Can this be done in a loop looking for only thos objects that are movieclips?Ultimately, when the user hovers I am going to display text.... Continue Reading
Views : 56
Monday 31st of December 2012

Little help finding closest isometric tile to point...  

I am using this tutorial right here... And trying to get it to work with my bottom function below. Getting a bit lost... This tutorial has a example FLA but it's like AS2 or something and confuses the hell out of me. Going to get some sleep and give it another attempt tomorrow. Continue Reading
Views : 110
Monday 31st of December 2012

AIR Help me to translate into looping  

Hi there,I need help on this following syntax to translate it into looping, as I will use it for a lot more movie clips. Please help me. Urgent T_Tvar xPos:int;var yPos:int;var xPosK:int;var yPosK:int;nextbtn.visible=false; Continue Reading
Views : 59
Monday 31st of December 2012

Saves text with text indentation for readability. How to remove  

Hi, I have a problem with at text that is saved to a file.By default, flash seems to add automatic indentation, while the picked text does not seem to have this indentation.Come to think of it, perhaps it is because it is xml that I save to txt?hmmm.... Continue Reading
Views : 61
Monday 31st of December 2012

conditional help/logic  

I have an easy question for someone. Have a scene that loops over and over until three objects are clicked and then the scene moves on.How would I write a conditional statement for this" after the three objects are clicked the movie continues to the next scene. Continue Reading
Views : 41
Monday 31st of December 2012