ActionScript 3.0 :: Put 2 Identical Mc's On Top Of Each Other?
Jan 4, 2007
I would like to put 2 identical mc's on top of each other... the bottom one bright red... and the top one black... and blur the one on top in such a manner that it does not let the red one be seen.... (blured from it's edge out... instead of on the middle)
Is that possible? like specifying where the blur should start (like how you can specify in some programs if the border is in the middle, exterior, or interior of a box)
View 1 Replies
Similar Posts:
Oct 24, 2009
Such as the famous game Plants VS Zombies, or Machinarium. They have Mac and PC version, and even online flash demo. It must be a flash engine or something, does anyone know this, what's that?
View 2 Replies
Nov 14, 2009
I am working on a game in which i need to compare two movieclips for being identical. What i am doing is creating a complex shape out of some primitive shapes and then I allow the user to drag and drop some primitive shapes to recreate a similar shape. how can I calculate that the user created shape is similar to the original complex shape or not.
View 8 Replies
Feb 26, 2012
i'm working on a project with numbers, but there has appeared an logicalmisunderstanding. so what i want to make (this is just simple code to see the logic not the whole project) i have :
ActionScript Code:
var numberVar1:Number = 5;
var numberVar2:Number = 6;
[code].....
View 2 Replies
Mar 19, 2009
I have two buttons that listeners for the same event that have identical instance names?For example, I have two buttons which have the same instance name: imageOne.Can those identical buttons listen for the same event? I tried, but only one button responds to the event listener .why do I need two buttons with the same instance name that listens for the same event?because I have a looping scrolling panel of thumbnails, and when you have scrolling panels, we all have duplicate panels inside for looping purposes...so since I have to have two identical panels grouped together to do the loop, I have multiple buttons with the same instance name.and these buttons listen for events...now of course I can rename the other half of the identical buttons with different instance nams, but a problem arises when i want to use an if statement to check to see if that image is already loaded.for example, say I image1 is already loaded, and someone clicks identical thumbnail that has a different instance name, ti would be too complex to write an if statemen to determine whats loaded.
View 4 Replies
Feb 13, 2011
I'm trying to build a bingo card, that will show random words in different locations each time you reload the page. It's 5x5 grid. I'm planning to set up 25 arrays (for each text field on my card), containing lists of the same 25 words. I have a code that pulls random words from each array into my text fields, but I can't figure out how to prevent the words from repeating on the card. A different word should be pulled out from each array.
Here is my code so far:
var words1:Array = ["word","table","lamp"];
var words2:Array = ["word","table","lamp"];
var words3:Array = ["word","table","lamp"];
[Code].....
View 19 Replies
Jul 26, 2011
I've taken a shot at trying flash for the first time ever, using internet tutorials and whatnot. Everything was working fine, but I later decided to add a few extra buttons and all that was originally there works, the rest doesn,t work anymore.[code]I stopped at button 5 originally, and buttons 1-5 work fine. The rest of them I added after, and they don,t work (goto page 5 and the urls)I get no errors from flash though..
View 8 Replies
Nov 24, 2009
I want to embed multiple swfs on a single page. they will be identical. i was wondering if browsers will redownload the swf each time or store the first one and retrieve the others locally? if they re-download it, is there a way to tell the browser that it can use the same one?
View 3 Replies
Feb 24, 2010
I got this function, which is sorting my array in a random way.
private function randomSort(objA:Object, objB:Object):int {
return Math.round(Math.random() * 2) - 1
}
[code].....
View 7 Replies
Jun 7, 2011
I am trying to make a web page that has multiple of the same SWF on it. I am having a problem with it being stupidly slow loading (download time is fine though). I have a 4x4 table in each cell there is a swf file embedded in an iframe. (Note: 4 X 4 table => 16 SWFS).
My AS3 code is very simple:
package
{
import flash.display.Sprite;
import flash.system.System;
[Code]....
Is there a good way to embed multiple identical swfs into a web page? Why are IE and Firefox struggling so poorly? I suspect it has to do with the fact that both IE and Firefox each only have one thread to run plugins (Flash) in. I have a similar app written in AS2 (not written by me, I just have the swf file). It is much more complex but it loads orders of magnitude faster in IE and FF. Is there a reason that AS3 pins the browser when AS2 does not? How can I embed multiple AS3 swfs into FF & IE 7 without pinning the browser? Is there a way to make an application that is more light weight?
View 5 Replies
Jan 7, 2011
is there a way to do collision detection amongst identical movieClips? The movieclips have all been added to the stage from one symbol in the library using AddChild().I've attempted to create 2 different arrays for them and push them into each array as they are added to the stage so that there was a means of comparing them. When I perform the collision detection, Flash thinks that the movieClips are in constant collision with each other!I used trace ("bang") to test the collision, and the output window starts tracing "bang" infinitely and doesn't stop, and none of the movieClips are touching each other.
View 9 Replies
Jan 13, 2012
Say if the structure of my game is set up like this:mainMenu- Classes inside the mainMenu package.instructions- MainMenuButtonClass.- Other classes inside the instructions package.game- MainMenuButtonClass.- Other classes inside the game package.The class MainMenuButtonClass is a button that, when clicked, directs the user to the MaiMenu and is identical in both the instructions package and the game package. Would it make sense just to save the same file in two locations or is there a better way to handle it.I'm not trying to access variables between the two classes. I'm not looking for any code either.
View 2 Replies
Sep 11, 2009
I am right at the beginning but am already having an issue. I have watched Lee's tutorial over and over and I cannot see what I am missing. All the files are in the right spot adn the HTML is identical to Lee's. The problem I am having is that the URL does not change properly. The URL shows Home.html# and not Home.html#/ASU Foundation or Home.html#/Tempe The title changes in the browser perfectly but nothing happens in the URL.
Code: Select allimport com.asual.swfaddress.*;
SWFAddress.addEventListener(SWFAddressEvent.CHANGE, onChange);
function onChange(e:SWFAddressEvent):void
[code]....
View 5 Replies
Nov 2, 2004
I want all of my buttons to have an identical code and being able to tell my variable on _root to get the instance name of the clicked button. that possible?
View 2 Replies
Aug 10, 2011
I'm creating this math based game for my son to learn math. Everything was going fine until the last if statement. What I need it to do is compare two values and determine if they are an identical match and if so say is correct and if not then say its incorrect. I have a random number generator and that number is being stored in a variable String and then it is being converted into a number, that part works. I then have setup like a calculator 4 different variables that act as plus, minus, multiplication and division. Since there is 4 different variables i have been thrown into a loop and can't figure this one out!This is my random number generator:
ActionScript Code:
var RandomNumS: String = "0";
var RandomNum : Number = Number(RandomNumS);
[code]....
View 9 Replies
May 17, 2009
I'm trying to build an 8x8 grid of identical movieclips, in a multidimensional array, that I can then access by row, and play each in order. So far, I can get them into the array, but I'm having trouble playing each item in a row. Basically, I have 8 more selector buttons in another array, and I added an event handler to each of those, and I want to use the index position of each selector button to play the corresponding row in the first array.
Code:
//The first Array
for ( i = 0; i< 8 ; i++) { //create a row
beatsArray[i] = new Array();
for (var j:Number = 0; j<8; j++) { //add 8 instances to the row
beats = new Beats;
addChild(beats);
[Code] .....
View 2 Replies
Nov 13, 2009
here's the link that i followed step by step with the exact same code to get slide out panels: [URL]..All the code makes sense how it should work but I keep getting
TypeError: Error #1009: Cannot access a property or method of a null object reference. at slideOutInfoPanel_fla::MainTimeline/frame1() and here's my code just as in the tutorial
panel_mc.panelinner_mc.popup_btn.addEventListener(MouseEvent.ROLL_OVER , rollF);
[Code]...
View 4 Replies
Aug 25, 2011
New to AS3, long time programmer. Essentially I am creating a myriad of objects, all of which will have the same functionality, although the properties will vary between each object, including the artwork. I believe they will all be movieclips as they will be interactive and I believe they will be moving.
I am wondering what the best way to create these objects are. I am assuming that I create an object class with the functionality and properties, I'm just unsure how to instantiate multiple copies with different properties, if that makes sense.
View 2 Replies
May 10, 2011
Any way to send bytes via bluetooth between two identical laptops in flash as3?
View 1 Replies
Feb 15, 2012
Can anyone offer a clue as to why flashdevelop would compile to a smaller swf than Flash Builder?The FD swf is 150k, FB swf is 220k.I'm exporting as a release build in FB.
View 1 Replies
Mar 20, 2009
Does creating a new instance of an Object that uses an identical name to an older instance, delete the previous instance? Or should the original instance be deleted first? The code uses a ridiculous amount of XML vars. Isn't it less memory intensive to parse the XML and save the properties to an Object, and then delete the XML Object, rather than keep the XML Object around and reference it's child nodes directly? Is it better form to break up a huge XML file (>600lines/3200vars) into smaller chunks?
View 1 Replies