ActionScript 3.0 :: Implement A Feature From A Game Called 'Tanks'?

Oct 2, 2011

I have been trying to implement a feature from a game called 'Tanks' (can be found at: mathsisfun.com/games/tanks) into one of my games. This is where upon shooting and destroying the dirt with explosives, all the dirt above it, where the explosives didn't reach, falls down.I have been trying for a while to get this effect to work, but with no success. My best attempt is atta hard to explain!). Even though the particles of dirt are so much bigger, it still lags like there is no tomorrow.

View 2 Replies


Similar Posts:


Flash - How To Implement Undo And Redo Feature In AS3

Nov 16, 2011

I am going to create an application in that i have to implement an Undo and Redo feature. In the application there will be multiple objects located on stage and user can customize the position of the objects. But when user clicks on Undo the object go back to their default position and after clicking on redo object will move on the new position. So my question is how can I apply these feature in my application? Is there any library or any third party classes?

View 3 Replies

Stopping EventListeners To Implement Drag And Drop Feature

Feb 22, 2011

I need to finish this code, the remove child works and removes the character mc, but I want to remove a fair few event listeners, so I can implement a drag and drop feature. My problem is would I need to list all the listeners to stop them on this frame? And this should only effect the listed listeners and not the new code for the drag and drop?

Code:
this.removeChild(char);
this.removeEventListener( Event.ENTER_FRAME, EnterFrame )

View 2 Replies

Implement A "pause" Button For Music In Flash Game?

Sep 7, 2010

I'm making a flash game, and I want to make a button. When I click on it, pause the music. When I click again, resume the music.

View 1 Replies

ActionScript 3.0 :: Creating Random Battlefields Like "Tanks"?

Aug 24, 2011

I'm creating a game like "Tanks" but my battlefields are not coming out very well. They look very jagged and not sloping like the game tanks. To give an idea what I am going for... tanks looks like this: [URL]I thought I could do a process like...Create turbidity. The slope may not be higher than this value (positive or negative.)Increase or decrease the slope based on a value between 0 and "turbidity."Somehow stop the terrain from being too high or negative I don't want the terrain to just say, "I'm too high." And snap back. I want a gradual sloping... which I'm not sure how to achieve. While keeping it constrained.Be able to have a symmetrical terrain with gradual slopingIt went well until I get to points 3 and 4. I can't stop my terrain from being too high or driving itself into the ground without it looking terrible. And I can't get a symmetrical terrain without a sharp point in the middle due to a high slope.

View 6 Replies

ActionScript 3.0 :: Load An External Swf Called 'signs.swf' Into An Empty Mc Called 'signholder'?

Apr 12, 2010

I want to load an external swf called 'signs.swf' into an empty mc called 'signholder'.

var loadit2 = new Loader();
loadit2.load(new URLRequest("signs.swf"));
signholder.addChild(loadit2);

Everything works. Cool. But, I now want to target something within the signs.swf. How do I do it though? What is the path? Do I have to give the child of signholder an instance name? Everything I try fails.

If I wanted the root timeline of the external swf to gotoAndPlay(2) for example,...would i say...

signholder.loadit2.gotoAndPlay(2) ???
var wow:MovieClip = loadit2.content as MovieClip;
wow.gotoAndPlay(2) ????

View 3 Replies

ActionScript 3.0 :: Movie Clip Called CircleFill And Another Called CircleOutline?

Oct 30, 2007

I am having issues with startDrag(). I have a movie clip called circle. Inside circle, I have a movie clip called circleFill and another called circleOutline.onEnterFrame, this movieClip is duplicated 4 times.

When I use this:
private function onPressNow(event:MouseEvent):void
{
startDrag();
}
IT DRAGS ALL 4 MOVIECLIPS.

[Code]...

how can I make it drag my movieClip called circle? (meaning both circleFill and outlineFill)

View 8 Replies

ActionScript 3.0 :: Called InfoBox That Contains A Text Field Called Caption?

Oct 24, 2011

i have a box called infoBox that contains a text field called caption. infoBox expands on mouse-over. When it does so, I do not want the text in caption to scale up - I want it to stay at 11 pt. So far my code to prevent this from happening is not working:How do I fix this?[URL]..

View 2 Replies

Wordpress Based Site That Stores Information About An Image In A Database Field Called "background" In A Table Called "wp_postmeta"?

Jul 22, 2009

I have a wordpress based site that stores information about an image in a database field called "background" in a table called "wp_postmeta".The 'loader' gets an url such as "/thisImage/background.swf"The "background.swf" should somehow display "background.jpg" instead but since I've changed the field name in the database (from background to temp_background) it doesn't work.I pass variables to the "loader" swf and they are correct based on the new field name but it still isn't working.I need to know if there is anything in the .fla's (and therefore the .swfs) that is pointing to somewhere in the database hard-coded. Basically I need someone to look at them and tell me how they are working.

View 2 Replies

ActionScript 3.0 :: Target Path - Control A Movie Clip Called "nosotrosmc" With A Frame Label Inside Called "historia"?

Oct 5, 2009

i'm trying to control a movie clip called "nosotrosmc" with a frame label inside called "historia" but does not work this is the code:

[Code]...

View 2 Replies

Sound - Turn On/off Feature

Sep 10, 2009

I have a very simple project. I just need a flash video that has a sound file and a button to turn on/off.

View 1 Replies

ActionScript 2.0 :: Create A Security Feature For My SWF's?

Feb 25, 2009

I am trying to create a security feature for my SWF's.I have a .txt file named security.txt.It has a variable called permissionGranted and is set to false

Code:
permissionGranted=false
Here is my AS:

Code:
Stage.showMenu = false;
Stage.scaleMode = "noscale";[code]..........

This doesn't work though,it traces true of false correctly but won't touch the if statement.

View 1 Replies

ActionScript 2.0 :: Integrate A Search Feature?

Nov 18, 2010

I have a XML file which I am trying to integrate a search feature. I have attached a zipped folder of my working example.In this XML file is a collection of modules: 1.1, 1.2, 1.3 etc...

Each module is broken down further:

1.1has: 1.1.1, 1.1.2, 1.1.3
1.2has: 1.2.1, 1.2.2, 1.2.3, 1.2.4 etc...

I have a search feature that is searching the XML, then outputting the content if found.Now this is working OK for a specific module listed above, for example, in my zipped example, I can get it to search 1.1.1, 1.1.2, 1.1.3 etc...

What I can�t seem to get working is how to search all of the modules sections: eg: 1.1: 1.1.1-1.1.x, 1.2: 1.2.1 � 1.2.x and so on depending on how much content is sorted in my XML.

View 14 Replies

ActionScript 3.0 :: FTP Upload Feature For Website?

May 25, 2011

I am building a flash website, but want my clients to be able to FTP upload from the website. For example if they want to submit a picture or file.

View 3 Replies

Creative Pro Make Webpage Feature?

Sep 20, 2009

On the creative pro website [URL].. they have a block at the top with images that change. It is titled 'today on creative pro' Does anyone know how they created it? Was it with Flash?

View 3 Replies

Professional :: Packager For IPhone Feature?

Feb 21, 2010

I am very interested in any information about the new  Packager for iPhone feature for cs4 flash professional.

View 5 Replies

Professional :: How To Code A Drag & Pan Feature

Aug 12, 2010

I'm making a map with Adobe Flash Professional CS5, using Actionscript 1 & 2, and I'm trying to add the ability to drag and pan while zoomed in. For the zooming, I put a button in either corner: a zoom out icon, and a zoom in icon. For the zoom-in icon, I used the code on (rollOver){ setProperty ("BG", _xscale, "200"); setProperty ("BG", _yscale, "200");} (BG being the name of the instance used for the background of the map, which is a movie clip.) Now, this zooms me in well to one corner, but then i want to be able to drag and pan to be able to see more of the map. I've found some good examples, but the code is way over my newbie head, and I can't get any examples of code I find to work, no matter what I've tried.

View 20 Replies

ActionScript 3.0 :: Use The Embed Fonts Feature And Css?

Jul 5, 2011

do you know how to use the embed fonts feature and css? or anti-alias the text that is styled using css? i have tried to set:

titlefield.embedFonts = true;
titlefield.stylesheet = sheet;
 
but it does not work. if i comment out the embedFonts the css works fine but the text is very aliased. but as3 does not support the embed font property within css.

View 5 Replies

ActionScript 3.0 :: Use ArrayCollection Like Feature In Flash IDE?

Nov 18, 2010

I heard that ArrayCollection on Flex, so how can I use ArrayCollection like feature in ActionScript 3.0 and Flash IDE.

View 2 Replies

Flash :: Online Demo Of New AEC Feature?

Dec 30, 2011

Does anyone know of an online demo of the new flash AEC feature ?

View 1 Replies

ActionScript 2.0 :: Creating A SEARCH Feature?

Dec 13, 2005

just wondering if there is a way of setting out a text input box and a go button and using an EXCEL Sheet FULL of data (uk postal codes) to create a search application???

View 1 Replies

ActionScript 2.0 :: Add A Zoom To Selection Feature?

Mar 18, 2008

How can I add a zoom to selection feature to this?

I just want a basic marquee zoom. Like draw a rectangle on the map and zoom into the rectangle.. just like on this map

View 4 Replies

How To Add Scroll Feature To One Of Page On Portfolio Site

Jun 16, 2009

I'm working on building a personal portfolio site right now. I wanted to add a scroll feature to one the pages. I wasn't sure how to build it, so I down loaded one off here [URL] and just plugged my own graphics into it. It scrolls up and down just fine, but when I try to put a mask over it, it doesn't work. In the content the author wrote for his movie he says "Note: If you want to have a mask over the content: copy MC:frame and make it a mask for MC:Page. If you do so, notice that "non-anti-alias text" is not possible anymore. This is a common thing in a Flash Movie. I keep trying that and it just blocks everything out all together. So what am I doing wrong?

View 1 Replies

ActionScript 2.0 :: Fullscreen Feature Does Not Work In Any Browser

Jan 20, 2010

After I make changes and publish file, the fullscreen feature does not work in any browser.

Full file can be found here. link

I am using CS4 to edit.

View 9 Replies

Flash :: Pressing F12 To Preview And Use This Feature It Would Not Work ?

Jul 23, 2009

I have recently received a copy of the Adobe eLearning suite, in particular I hope to use Flash for the majority of my elearning projects.I have been having trouble using the learning interactions that come ready to use with Flash. For example,I placed the drag and drop interaction onto the stage area, but when pressing F12 to preview and use this feature it would not work (could not drag the movie objects), the same goes for all the other features I can select radio buttons etc but when pressing the 'cheack answer' button nothing happens.Even though these interactions come with instructions which i have followed, it still does not seem to work. I do not wish for them to be scored, I just want the user to receive correct or incorrect feedback.

View 1 Replies

Professional :: Making An Upload Image Feature?

Jun 2, 2010

I'm designing a flash website and I want a feature whereby the user can upload an image and it gets sent to an email at the press of a button. What is the easiest way for this to be done?

View 5 Replies

Professional :: Have A Page-turning Feature In Flash?

Jul 10, 2010

does Adobe have a plug-in for Flash CS4 or what would you recommend?

View 6 Replies

Professional :: Search Feature Not Working On Forums?

Mar 31, 2011

how to output the error messages I'm seeing in my output screen in the IDE to a text area, so I can see if such errors are occurring in production  What I found is that the forum search feature is not working at all. I received no results for the words "error", "movie", "flash" and "text", items which are obviously ones which should return SOME results.I couldn't find any way to contact Adobe about this, so I am hoping someone who works for Adobe and watches the forums will pass this along.

View 2 Replies

ActionScript :: Future Versions Feature Request

Apr 4, 2011

My wish for future versions of Flash is that it should have this option to print entered ActionScript code in the colors. The purpose it that if I would like to analyse the code e.g. on a plane, anyway away from my pc, then I would have it pretty colored on paper, unlike if I would print it black/white via copy/paste into some text editor in order to print.

View 1 Replies

Professional :: Auto-save Feature Was Turned Off?

Jan 16, 2012

I started an animation in flash recently and the autosave feature was turned on.  I had a good animation, but decided to play around with it a bit.  After a little while, I decided to call it a night and exited the program making sure NOT to save my work.  Upon opening that file the next time, I come to find out that Flash has autosaved my file while I was playing around.  Now I have a worthless animation, and have to start from scratch.  Is there any way to revert to a previous save, or autosave at this point, or am I about to do a lot of work again?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved