Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Flash / ActionScript


Flash AS3 URLLoader inconsistent working  

Hi, I'm new to the forums here but do require some help. The thing is that i have the following code. It simply does not execute the loader_complete function (found it with adding different traces) In other frame in the same project it does work, identical code. What could be the source of this... Continue Reading
Views : 35
Thursday 3rd of January 2013

Clumping things together.  

I have these movieclips on stage, called Seekers. What I'm trying to do is say "If these Seekers touch each other, they should clump together" Now, I have them in a larger array with other elements and also their own array.What I tried to do was have a loop nested in a loop of two... Continue Reading
Views : 33
Thursday 3rd of January 2013

Flash Flash CS4, AS3 - addChild after a MovieClip has played problem  

In my .fla file, in frame 1 on the main timeline, I have a Button symbol in the display list. When that button is clicked, a function removes it from the display list, then adds a MovieClip (created in the library & exported for AS3) to the display list, then plays the MovieClip. Within that... Continue Reading
Views : 45
Thursday 3rd of January 2013

Using the properties of an element in an array..Can I  

i have an array containing all the bases in a game..... when my ship lands a proximity check is made between the ship and each member of the basesArray....i want to iterate through the array and subtract the ship x/y from the array element(base)x/y. if the result is between 50 +/- that... Continue Reading
Views : 91
Thursday 3rd of January 2013

Programming 100% correct, but still a flickering SWF  

Ok, Let me sum up the game the best I can real quick and then get to the problem. I cannot upload any code because I am under contract. I also know the code is working 100% correct. The game I am working on will have "X" number of large images. The "X" images will then be broken down into... Continue Reading
Views : 137
Thursday 3rd of January 2013

Help with radio button selection error  

OK. So I have a group of radio buttons on the stage. If the user chooses one of the buttons and hits 'Submit' all is fine. If they fail to make a selection I want to show them an error. Using the code below works fine if this happens initially, but if the user makes a selection and hits... Continue Reading
Views : 76
Thursday 3rd of January 2013

as2 to as3 fire effect code  

Hi My Friends,im Really pressed for time, so i bought a fire effect but to my shock it is in as2 :'(Any Chance for someone with a bit more of a brain than me convert the code to As3?ThanksFrame1:setProperty("mcFlame", _visible, 0); Continue Reading
Views : 44
Thursday 3rd of January 2013

Random file from XML into array loaded with URLRequest  

Long title, but I hope it says it all.I'm trying to load my XML data into an array. And have this array be randomized, so everytime this swf will be started, another swf will be loaded. (I hope I make myself clear?) I get no error's and I traced the Array, but A it only shows 1 file... Continue Reading
Views : 41
Thursday 3rd of January 2013

Flash coloring with colormatrixfilter  

Hi folks,I got a huge problem trying to color objects that are flying around in my space game.When I shoot and hit them - the affected enemies shall blink. The graphics are pre-rendered... Continue Reading
Views : 45
Thursday 3rd of January 2013

Flash Help with Sizing my font please  

I have created this script using code snippets etc. that when I click a button ive created it randomly loads one of X amount of different text files I have in a text field. The text field is only created after I click the button, and I can't figure out how to change the size of my font because... Continue Reading
Views : 49
Thursday 3rd of January 2013

Facebook updates on own website in AS3  

Hello guys,I've been searching all over google but can't find the answer to my question. I'm looking for some kind of way to publish my status updates that I do on facebook gets showed on my own flash webpage. Is their some possible way or someone that can point me in the right... Continue Reading
Views : 45
Thursday 3rd of January 2013

Flexible Stage Size  

I am building a slideshow for cycling through a list of images. This list will necessarily change over time. And I've currently implemented by loading the information on my site into a php array, then looping through that before calling the js slideshow, but it is very difficult to maintain... Continue Reading
Views : 39
Thursday 3rd of January 2013

removeChild partially working  

I am trying to remove an enemy after I kill them and I just started working with code in .as files. The enemy has it's own logic in a .as file and when I use removeChild, the movieclip is removed, but the logic continues to attack the main character (invisible).Is there a better... Continue Reading
Views : 87
Thursday 3rd of January 2013

Using inline images with htmlText  

Anyone have any experience with this? I'm just wondering, when you use the tag, can it pull in an image you have from your library, or does the image have to live out in the www somewhere? Anyone know specifically if this sort of thing works with the iPhone packager? Continue Reading
Views : 71
Thursday 3rd of January 2013

Flash listener to wait for an instance  

Hi, I am wasting a lot of time trying to understand why I am instantiating an object that doesn't want to be instantiated! I explain: I have this code in the main class Code: Continue Reading
Views : 54
Thursday 3rd of January 2013

Remote flash call  

Hello,I'm using flash aplication to generate (in real time) complecated Bitmap / BitmapData, and then I would like to give result to web user. How to run this process without putting whole application to swf file (which can be decompiled) over the internet, but giving to user only... Continue Reading
Views : 40
Thursday 3rd of January 2013

Flash Problem resizing movieclip width to stage width dynamically  

Hello all,I need a tutorial or suggestion as to how to get a movieclip named "topnav" to resize it's width to match that of the stage. I am trying to resize the width of a top nav bar across a resizable RIA. I have started with the following code but with only partial success: Continue Reading
Views : 54
Thursday 3rd of January 2013

Flash getbounds problem with tweenlite  

Hi,I have a bitmapData that I want to scale with TweenLite but when applyingthe transformaroundcenter plugin I get this error message:"Property getBounds not found on flash.display.BitmapData and there is no default value."What am I doing wrong and... Continue Reading
Views : 28
Thursday 3rd of January 2013

Google Map AS3 error. 1046  

http://www.kirupa.com/developer/as3/flash_as3_google_maps_api_pg2.htm1046: Type was not found or was not a compile-time constant: DirectionsEvent.I highlighted the line with... Continue Reading
Views : 50
Thursday 3rd of January 2013

Array of type string with unique value  

Hi,I am recently working with an application. Where I need 4 unique values from an array in such a way that it should be checking random item every time. For eg:-Main_Array = ["one","two","three","four","five","six","seven "];Sub_Array =... Continue Reading
Views : 43
Thursday 3rd of January 2013

Flash not sure about the best practice to use events/dispatch/listening in this case  

I'm reading a lot of examples and I know this is very easy, but I'm stuck =/I'm using a class caled (KeyboardInputs) to dispatch events (keyboard/custom events...).The idea is that this Class would dispatch all Key Down events so EVERY class could listen to it. Continue Reading
Views : 33
Thursday 3rd of January 2013

Detecting proper CR+LF behavior  

Okay, so I fixed the problem I was having with my TextArea - just as I thought, it was the CR characters throwing off the selection position. Stripping them out fixes everything. Now I have a different problem, though.My program needs to save text files as well as open them, and on... Continue Reading
Views : 10
Thursday 3rd of January 2013

Communication Between Variables in Other Classes   

Okay I have a problem here that is probably basic for most of you. I need to know how to reference variables in other classes. I have been avoiding this by referencing variables from the Main class, where they are created. But at this point I would like to be able to have the option and it... Continue Reading
Views : 58
Thursday 3rd of January 2013

Flash Is it possible to use such long parameters in tweening code  

Hi,I am using the following code to tween my PortFolio_mc but now I want to add some more parameters to make the content in the center of the page when resizing. How can I modify the code? The following is the code I am using: Continue Reading
Views : 54
Thursday 3rd of January 2013

custom event not receiving (again)  

This has literally been buggin me for days. I cant get my custom event "selectionEvent" to work. It works in the DocumentClass constructor, but when trying to dispatch from a child object it doesnt recieve!!!!also in my other thread about custom events, If I try to add the listener... Continue Reading
Views : 40
Thursday 3rd of January 2013

Flash Flash size  

hy!I guess it's a noob question, but I would like to know how I could lower my flash movie without changing quality. I use mostly imported images from Fireworks. I'm asking because my flash is not ready at all and it's already over 1Mb (it's dimensions are 960px * 530px - 30fps). It... Continue Reading
Views : 29
Thursday 3rd of January 2013

nextFrame playhead stops all Movieclips  

I'm learning to code http://torbach78.carbonmade.com/projects/3225767its the same structures we see in many online tutorials obviously, what is bugging me is during up and down i have the ship... Continue Reading
Views : 34
Thursday 3rd of January 2013

Flash Reset Radio Button Group  

I currently have a radio button group consisting of four radio buttons. Assuming a user selects one of the four buttons as a choice. I want to use a button to clear all the radio buttons as unselected. What is the AS3 that will set the selected state... Continue Reading
Views : 44
Thursday 3rd of January 2013

Desperate for moviClip help  

Hi Guys I have a problem which I hope you can answer. I have posted this problem on another news group but they are dead from the neck up. They don?t answer the question the pose a totally stupid and irrelevant question. I think I must be speaking Chinese. I was given a webite to help me put... Continue Reading
Views : 62
Thursday 3rd of January 2013

I need help with some AS3 code using GESTURE_SWIPE...  

What I have can be thought of as two layers. One layer is like a filmstrip that slides using scrollRect for smooth scrolling. The bottom layer is static images in frames.When the user swipes the filmstrip it moves left or right on the screen. When it stops it is told to be non... Continue Reading
Views : 72
Thursday 3rd of January 2013