Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Flash / ActionScript


AS3 help needed  

I bet this is simple as hell, but I can't figure it out since I'm kinda new to AS3. Basically I created two movieclips. The first one, named main_menu, holds several mc buttons in a for loop . The other one, named map_mc, holds a map which has several movieclips, with the alpha property set to... Continue Reading
Views : 38
Monday 31st of December 2012

On Hittest result reference new target movieclip  

Hi Guys an Gals, Is it possible to change the currently viewed movieclip after a hittest? I have been looking to do something like this, but no success so far. Any help would be much appreciated as I shall learn a little more. Best regards Frederick if (objects[i].hitTestObject(theCar.hit ))... Continue Reading
Views : 35
Monday 31st of December 2012

for cicle  

var i:intfor(i=0;i Continue Reading
Views : 68
Monday 31st of December 2012

Cue Points  

So Im trying to create a project that plays a video and allows user to click a link and it jumps ahead to that scene. All the tutorials tend to point to using navigational or event cue points. But for some reason I can't change the cue points from actionscript cue points. Im using CS6 and it... Continue Reading
Views : 41
Monday 31st of December 2012

Get row/col from index/size.  

I'm working on some row/col functions for converting back and forth... Is there a simpler way to do this second function? Btw, these appear to be working correctly, but I am not 100% sure they are completely correct.I'm converting back and forth between rows/cols and index/sizes.... Continue Reading
Views : 57
Monday 31st of December 2012

Remote Shared Object  

Hello I am new to ActionScript. I have a couple of questions in regards to SharedObjects in as3. Okey, what is the difference between a persistent SharedObject and a nonPersistent SharedObject? I am trying to build a small chat application. I want to use the SharedObjects to send messages back... Continue Reading
Views : 50
Monday 31st of December 2012

Assigned numbers to movie clip to plug in formula... not working  

So I am attempting to vertically evenly space these movie clips so I came up with a math formula involving n( the button number) but Its not working.Here is my code:var buttonArray:Array = [ side_banner.btn1, side_banner.btn2, side_banner.btn3,... Continue Reading
Views : 53
Monday 31st of December 2012

Axonometric transformation(3D to Isometric)  

I'm trying to convert this old code of mine here to proper Axonometric transformation so that I can get proper isometric particle effects in ND2D...http://designermichael.com/share/isoWater.html Continue Reading
Views : 33
Monday 31st of December 2012

swf file edited in xml. need help with updating textfield  

hi, i am editing my swf file with an xml editor. my swf is SwfVersion="9". i have a textfield named example, eg, what i would like to do is update the InitialText when going to the swf file like this...... Continue Reading
Views : 71
Monday 31st of December 2012

Flash Multi -Dimensional Vector Syntax  

I can't seem to figure out the proper syntax for writing multi-dimensional vectors in a single line...I can push vectors onto a multi dimensional vector or set them with myVector[?] = new new Vector.(Size)... But I can't get this code below to work! Continue Reading
Views : 39
Monday 31st of December 2012

Flash 1083: syntax error: unexpected package  

I'm new to actionscript, and got this error in my output: 1083: Syntax error: package is unexpected.I did search the forums here and found some people that said that the class is missing or that if it's meant to be on the timeline that the "package" doesn't need to be there. I am... Continue Reading
Views : 47
Monday 31st of December 2012

Isometric Depth Sorting  

I am curious if there is a more efficient way to do isometric depth sorting. Here is how I have done it...The avatar and the other in game npc's that move and all visible game objects are added to an array and in the same container object. They are all given an isoDepth variable... Continue Reading
Views : 40
Monday 31st of December 2012

Flash Quick Question: Difference Between = class_name(... and = new class_name(...   

Sorry for the long confusing title, but I have been looking around on help.adobe.com and other forums and making my own games and noticing that there's a difference between =class_name(...) and = new class_name(...). Can anyone clear that up for me on why that matters and... Continue Reading
Views : 49
Monday 31st of December 2012

Flash How can I control my external SWF width & height as per my requirement  

Hi,I have the following code which loads the external SWF (It is working fine). What I need now is to change its Width & Height according to my requirement. How can I modify the code? Code: Continue Reading
Views : 52
Monday 31st of December 2012

NetStream - Same stream new video - old video briefly visible  

Heya everyone,So Ive been playing with NetStream lately and came to a point where I want to be efficient and use only 1 stream and connection for all my video displays. Offline nothing shows, but online you see a frame or 2 from the previous vid inside the vidHolder. How can I... Continue Reading
Views : 67
Monday 31st of December 2012

Flash Bouncing down the hill  

Ok, heres that bouncing ball again...I know how to do regular bouncing, if ball reached the target, do *= - on velocity and set that position to balls position..But I am tryin to roll the ball down the hill,(lets say 45 degrees) bump a rock, bounce few times down that hill, and... Continue Reading
Views : 35
Monday 31st of December 2012

Flash Function...errr help please with get in Actionscript3  

I have this setup on 2 classes where I am trying to get an array of Data back from a function call in class A.Could anyone help me with this please? best regards FJWpackage{public class A{private var thefront:TheFront;private var theData:Array; Continue Reading
Views : 96
Monday 31st of December 2012

Custom events  

Hi all,I'm in a bind. I need to make a movieclip visible in .swf which is further up the display chain than the one I'm in. I know that I need to Continue Reading
Views : 68
Monday 31st of December 2012

Lines to fills...  

Hi everyone,I know how to transform lines to fills... but is there a way to do the inverse?Fills to lines...Kind regards,Leo. Continue Reading
Views : 45
Monday 31st of December 2012

method like hitTestPoint that ignores movieclip between mouse and target clip  

this is driving me crazy. i have a bunch of movieclips with their own class that get placed on the stage. i'm using hitTestPoint to determine if a mouse is over and OBJECT:in the OBJECT class i'm checking: if (this.hitTestPoint(stage.mouseX,stage.mouseY, true)) {... Continue Reading
Views : 46
Monday 31st of December 2012

Reset "Canvas" View  

Hi there,I'm currently working on a mapping tool which allows you to navigate around a map, zoom in and out, and then reset the view if required.I'm having some problems with creating the reset view button which works up until you decide to zoom in. I have a feeling it has something... Continue Reading
Views : 51
Monday 31st of December 2012

Flash How to get rid of object outline  

Friends, I see a white outline/border over an animating (rotating) movie-clip whenever I move it over image/bitmap.The border never appears if I moved the same movie-clip over a vector object.This really kills me lot. pls help me... Continue Reading
Views : 34
Monday 31st of December 2012

Flash Game Race AS 3.0, help me..  

i need help.i want to create game for my final project. i use AS 3.0 for language.i need your help, i want create game similar to this: http://www.ipermainan.com/game/6378/boat-rush how road can... Continue Reading
Views : 92
Monday 31st of December 2012

Useful Flash ActionScript Tutorials and Resources  

TutorialsTutorialshttp://www.kirupa.com/ Continue Reading
Views : 69
Monday 31st of December 2012

Multiplayer  

adobe has introduced native multiplayer support with the newer versions of the flash player.. i suggest you use that, but there is some kind of hitch.. i think your games can onl ybe 5 minutes at a time.. otherwise you have to start paying all sorts of costs! but a free 5 minute flash game is... Continue Reading
Views : 45
Monday 31st of December 2012

Mac mail format help  

Hi all. May I have your assistance on solving this?The code below works fine on PCs - the mail, but on Macs it generates all the code in the "To:" field. Any help would be much appreciated!Thanks! Continue Reading
Views : 49
Monday 31st of December 2012

Infrequently Asked Questions and Other Interesting Threads  

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

Drag and drop marker issue  

I'm building a map where the user can select a marker and drop it on the map,If the user wishes thay can then pick up the marker and move it to a new location. ( drag() n drop() ) then the user may rotate or spin reoientate the marker.Finally the user may record all the marker... Continue Reading
Views : 54
Monday 31st of December 2012

Stage position of addChild (Help me)  

var boaty:boat = new boat();boxy.addChild(boaty);How do I refer to the stage position (what we see on screen (might be called something else)) of a object added like this (boaty) PS:boxy is rotated in the program Continue Reading
Views : 43
Monday 31st of December 2012

Flash Passing an external object  

Hello,I got an object into a class (a public one) called "squaddie0", and when i try to call it back from another class dynamically with :the main_class is the passed class, i get the vars like this : main_class.var1var index:int = 0;var ob:Object =... Continue Reading
Views : 34
Monday 31st of December 2012