ActionScript 2.0 :: [FMX04] No Duplication On Firing?

Nov 19, 2005

Im making my first flash game so forgive me if there is anything with my actionscript or my explaining that is messed up.

This game is a 4 player (<--will be) tank game that fires bullets and stuff. so far its working just how i want it to apart from one thing... the duplication for the bullet. This snippet of the script is the bit that should make the bullet firing. if you look at these to bits of script "_root.depth += 1;", "duplicateMovieClip(_root.bullet, "bullet"+depth, depth);" to my understanding the "depth" should increase BUT it doesn't? does anyone know what is going on?

[Code]...

View 12 Replies


Similar Posts:


ActionScript 3.0 :: Xml In Array (duplication)?

Jul 31, 2011

[Code]...
 
i wann to make array of 30 students or array of bad grade students i try
 
[Code]...

but i make array like this (hassan,hussein ,,,,) how can i avoid this duplication

View 5 Replies

IDE :: Duplication Of Two Movie Clips When Use Them Together

Aug 29, 2009

I'm working on a flash AS2 game that duplicates two movie clips: A bullet and a shell. Individually, the run fine. The bullets shoot, the shells bounce around. But when I try to use them together, only one of them duplicates. If I use more than one duplication statement in my game, only one functions and the others are ignored.

View 1 Replies

ActionScript 3.0 :: Delay The Duplication Of A Video?

Nov 4, 2010

how to delay the duplication of a video. At the moment, I have a video loaded from a stream (NetStream), and then I duplicate that video using Bitmap/BitmapData draw() to make a grid of 3x3 of the same video.

Up to that point everythings works fine, but all of the nine videos are synced and I do not want that, I want the first one to start at frame 1, second at frame 2, third frame 3 or the opposite.

In other words, I want to have every video on a different frame. The problem I see is that since I just copy the BitmapData of every frame to duplicate it in real-time (ENTER_FRAME) I really can't see how I could do it.

I could make different streams for each videos, but when I tried it, it took a lot more time to load.

Should I maybe not use streams, but I don't know how to do that, like if the video would be in the library and placed 9 times on the scene, but I don't know how to do that with AS3. I have 3 different videos loaded from an XML file.

View 0 Replies

ActionScript 3.0 :: Dynamic Duplication & Removal Of MCs

Sep 9, 2011

I have an MC of a sea texture which was created using clouds in Photoshop, and uses AS to fade in & out a child MC to look like waves moving back & forth. (The PS image fades to transparent where its close to each side to aid blending).

The user is able to pan the containing MC infinitely so I need some way of automatically overlapping a new instance when the pan gets close to the edges of the MC, but because its a large MC needs to also remove the MCs greater than distance x from the edges.

View 2 Replies

ActionScript 3.0 :: Flash - Duplication Of Buttons?

Oct 30, 2010

I am looking to create a simple piece of code that will duplicate a drawn square many times (say 10 times).I would like it so that when you hover a square it will change colour.o far i have been able to draw the square multiple times within a sprite, however i need the sprite to be more interactive.

View 1 Replies

Text Input With Duplication Of Movie Instance?

Apr 7, 2010

I have a textbox for input . and a button for duplication of the instance.

my instance is a simple box.in the box movie symbol i have another textbox.

when i click the button, my instance gets duplicated. but i want the value in the input textbox to be copied to another texbox which is in the box object. how do i do that?

here is my code where i have duplicated a simple circle. i want the text input to be copied to the textbox in the new box instance

Quote:

function addbox(event:MouseEvent) {
//trace(¯new box ¯ + i);
var newBoxrocess = new process();
addChild(newBox);

[Code]......

View 1 Replies

Flash :: Duplication Of Mediators In Robotlegs MVCS

Feb 19, 2010

I'm using robot legs framework and wondering how mediator.mapView works with multiple instances of the same view. For example, in the following, is a new ItemDisplayMediator created for every ItemDisplay instantiated, or do all ItemDisplay's use the same mediator? If they each instantiate a new mediator, is it possible to use a single mediator for multiples of the same class/view?mediatorMap.mapView(ItemDisplay, ItemDisplayMediator);

View 2 Replies

ActionScript 3.0 :: Dynamic MovieClip Duplication On Button Press

Sep 15, 2009

I am working on dynamic duplication of movieclip when the button is pressed one by one. In that movieclip there are two buttons ok and cancel.

Here is the piece of code:
var new_panel:please_wait = new please_wait;
click_btn.addEventListener(MouseEvent.MOUSE_DOWN, generate);
function generate(e:MouseEvent):void{
new_panel = new please_wait;
[Code] .....

if I create two movieclip, then how i remove a particular movieclip. I also attached the screen shot for reference..
Attachments: Screenshot.jpg (138.9 K)

View 4 Replies

ActionScript 3.0 :: Duplication Of Data InputText In DynamicText (automatically)

Aug 6, 2010

The question arose as to duplicate the data entered in the field in InputText in DynamicText (ie when typing in the box, Input, his data displayed in the dynamic field)

View 2 Replies

ActionScript 2.0 :: [FMX04] LoadVariables Need To Be Run Twice

Jan 7, 2006

i'm calling a php file, which is supposed to make an xml file. whenever i call the php file using this syntax, most of the time i get "cannot load file" in the xml loading section, but this updates the xml file.

[code] loadVariables("http://localhost/file.php",this,"POST");[/AS]
but when i do it this way. [code] loadVariables("http://localhost/file.php",NONE,"POST");[/AS]

the "cannot load file" messge doesn't get displayed, and the file loads perfectly, but this doesn't update the xml file.

so everytime i have to first use "this" and then "none".

what can i do so that whenever php is called, it'll update the xml file, and still load in the swf.

View 2 Replies

ActionScript 2.0 :: [FMX04]loadVariables Need To Be Run Twice?

Feb 20, 2011

i'm calling a php file, which is supposed to make an xml file. whenever i call the php file using this syntax, most of the time i get "cannot load file" in the xml loading section, but this updates the xml file.[code] loadVariables("http://localhost/file.php",this,"POST");[/AS]but when i do it this way.[code]loadVariables("http://localhost/file.php",NONE,"POST");[/AS]the "cannot load file" messge doesn't get displayed, and the file loads perfectly, but this doesn't update the xml file.so everytime i have to first use "this" and then "none".what am i doing wrong? what can i do so that whenever php is called, it'll update the xml file, and still load in the swf.

View 4 Replies

ActionScript 2.0 :: FMX04: Why Does CSS Work Alone But Not In App

Mar 1, 2005

When I use the code below it works fine and loads the CSS-file and shows the the html-textarea as it should be CSS-formatted. BUT when I try to put the SAME code into a movieclip within another fla-movie it does not work (loads text but not css) and I get un "undefined" all the time. After trying a lot of different things I've come to the conclusion that it MIGHT have soemthing to do with the .onLoad that gets "undefined" in some way. As you can see below I'm getting two vars from input textfields and then use a button to activate the function loadCSS().

[Code]...

View 6 Replies

ActionScript 2.0 :: [FMX04] Swap The Variable?

Apr 19, 2004

Like any of it's simple, but here's what I've got...I'm doing my loadVars, everything's going peachy, but now I want to swap the variable. I've got a bunch of vars in a text file, and here's how I'm doing it right now...

Code:
on (release) {
output1.text = myLoadVar.name2;
}

Now, this works ok, but with as many vars as I'm planning for, I'd like something that I didn't have to make a ton of frames just to have it run.

Code:
on (release) {
output1.text = myLoadVar.(name('prevnum'+1));
}

How do I do this?

View 5 Replies

ActionScript 2.0 :: [FMX04] Duplicatemovieclip And Path?

Feb 14, 2006

I have following lines inside a function

var u = clips.clip1.getDepth();
clips.clip1.duplicateMovieClip("clip1clone", u-1);

the problem is that clip1clone is not generated. I think it has to do something with path, I have to add somehow a path to clip1clone? I tried 0 instead of u-1 but it didnt work so I guess the problem is with path?

View 3 Replies

ActionScript 2.0 :: [FMX04] As Marquee Effect?

Sep 11, 2006

smooth out this scrolling text script. It works perfect but its not smooth. (keyframes are up at 45fps) I know I can just call the function quicker but it's just not the effect im lookin for. I want a steady smooth look to it.

Code:
iniText = "Hello this is some text.";
mov_cnt=0;[code]....

View 2 Replies

ActionScript 2.0 :: [FMX04] Are Back Buffers Possible

Aug 23, 2007

I'm attempting to create an effect system that will allow for motion blurs and a variety of other effects.My attempt to create this system is by using a series of movie clips that are duplicates of a main movie clip, each a snapshot slightly farther back in time.This doesn't work, as I think I may be lacking some fundemental understanding of how clip duplication works.Below is code that should be creating a duplicate clip, 10 frames behind in time. The clip exists but the sub-clip isn't attached.

Code:
// The main movie clip.
var main_mc : MovieClip;

[code].....

View 3 Replies

Flex :: Dynamic Flex Form Duplication

Feb 3, 2011

I'm designing a data entry app that allows multiple entries to its subject. For example, a person might have received education from multiple institutions. Each educational entry is a form and app user can click on a button to add another entry, which is a blank but identical form.I figure it involves states and custom form components but not sure how everything fits together.

View 1 Replies

ActionScript 2.0 :: [fmx04] Turn Pages Like A Book?

Jan 19, 2004

I was looking over the script from AS.org. for the page flip navigation.[URL]But see the thing with the script from AS.org is that it does not allow you to use images as the pages.

View 3 Replies

ActionScript 2.0 :: FMX04 - Class Files Not Working

Aug 17, 2004

I have two class files that extend to movieclips......one targets _root.scrolling_mc, the other _root.messages_mc. I have multiple movieclips throughout the presentation with instance names scrolling_mc and messages_mc. This is where it gets interesting. After navigating from a scene with scrolling_mc to a scene with messages_mc, some of the behaviour of the scrolling_mc is still triggering. Its almost as if both class files are working side by side.

View 3 Replies

ActionScript 2.0 :: FMX04 - Control Variables In LoadVariablesNum?

Nov 15, 2004

I'd like to know if there is a way of controlling the variables that are sent with the AS command loadVariablesNum when calling an ASP.Let's say I don't want to send two variables that exist in that frame.

View 2 Replies

ActionScript 2.0 :: Customizing FMX04 Components (label)?

Mar 8, 2005

I'm trying to find a clear and concise book or online referece that can assist me in customizing the components that come with FMX04.Namely the label component. I know how to change the "halo" theme in general to get the buttons and text boxes to change color, but beyond that I am at a lost.

I have tried Macromedia, searched here/Flash Kit/google, but nothing that I can learn from. Live Docs has a feedback part where someone posted some code and while I can cut and paste it, I'm not completely sure how it all worked.

View 1 Replies

ActionScript 2.0 :: [FMX04] Storing Multiple _x At Runtime?

Jan 11, 2006

i am developing a photogallery with picts of different width.there's nothing with it,but i am trying to make an element which is more of a design nature.So i have an invisible mc/say "bbb" which is duplicated each time a new photo is loaded and its _x depends on the photos _width and the distance between the photo and the end of the screen regulates how many times "bbb" is duplicated.So on every new photo i got /possibly/ diferent number of instances with diferent _x.Still no poblem.But i want to put an bbb_dups.onRollOver=func(){if (this._x=curr_x){ tween(this._x+30)}else if (this._x=curr_x+30){ tween(backto curr._x)} so i need somehow to store each instances curr._x after the duplication which i dont know how.i've tried with an array but it doesn't seem to work for all the instances.

View 3 Replies

ActionScript 2.0 :: [FMX04] Make A Navigation System

Jan 16, 2006

I found this navigation system and im trying to figure out how to make it. Not going very well tho, i was wondering if anyone has some hints or a simular tutorial for this. This is the navigation system: [URL]

View 2 Replies

ActionScript 2.0 :: [FMX04] Fading Gallery Function?

Feb 24, 2006

I'm creating flash image galleries for a local design firm's site. Their pages are long, vertically scrolling, with large image galleries spaced down the page (about 900x400px each). Each of these shows an initial image, and then has buttons above to select image 1-9, or pre/next image. The images will need to dissolve from one to the next.Because there are so many of these galleries, I want to put each in a folder, name all of the images Image1.jpg, Image2.jpg, etc. and include a txt file to tell my navigation button how many images are in the gallery (this part works).

OK, but I just can't get the thing going now. Here's how I've approached it:
Each Gallery image is a MC that has an alpha in/out animation, with a stop action in between that also swaps it to a certain level (just so I can identify it using getInstanceAtDepth when I need to fade it out).Image_1 is attached to an empty container on stage at the start. I want to define a function that will be called by my gallery buttons that will 1) tell the clip currently onstage to fade out (that works), 2) attach the appropriate clip to my container clip at a particular level (this does not).

Code:
_global.galleryFader = function(clickVar) {
// "clickVar" is returned when the gallery number buttons are pressed

[code]....

View 1 Replies

ActionScript 2.0 :: [FMX04] Create A Button To Load A Swf?

Mar 16, 2006

I'm now having problems trying to work out how to create a button to load an swf and then go to a frame in the new swf and stop.I've got:

HTML Code:
on (press) {
loadMovieNum ("library.swf",0) ;
gotoAndStop(9);
}

But it doesnt seem to work.

View 1 Replies

ActionScript 2.0 :: [FMX04] Format Date In Flash From XML

Apr 17, 2006

I'm currently pulling data into Flash 7, Actionscript 2.0 from an RSS XML file. One of the nodes in the XML is the dateTime for each entry. After pulling in the dateTime how can I format how it displays?

Example:

dateTime format in XML- Mon, 10 Apr 2006 16:35:00 -0700

I want it to display like this in Flash in a text field- 4/10/2006, Monday, 10:35am

or

10:35am, Monday, April 10, 2006

etc.

View 1 Replies

ActionScript 2.0 :: FMX04 - Loading New Movies At Set Intervals

Oct 21, 2006

I have three Flash movies (all the same pixel size) that I want to use on the home page of my website which is built in MX 2004.

How often the movie changes is not critical, but I think once an hour will be fine. What's the best way to get Flash to automatically change the movie every hour and where should I attach any code - to an Actions layer in movie no. 1?

As a summary, here's what I want to achieve;

12.00pm - movie no. 1 plays
1.00pm - movie no. 2 plays
2.00pm - movie no. 3 plays
3.00pm - movie no. 1 plays again

...and so on for 24 hours until you get back to 12.00pm when movie no. 1 plays again.

View 1 Replies

ActionScript 2.0 :: [FMX04] Photo Gallery Alignment

Jul 6, 2007

I took the basic image gallery tutorial on this site and messed about with the code a bit so that the images move back and fourth rather than fading in and out. I'm sure there are better ways to do that than how I did, but it mostly works so I'm happy. My problem now is that I don't know how to make the center of the photos align to the center of the stage. I can of course allign the first one, so it starts aligned, but as soon as I start scrolling through images it aligns the left side of the image to the center of the stage,

[Code]...

View 2 Replies

ActionScript 2.0 :: [FMX04]flash Gallery With Xml Not Working On PCs?

Nov 28, 2008

I am adding flash galleries toon the Facilities and Gallery pages. On my mac I've tested the galleries using Firefox, Safari, and Opera and they are working perfectly as expected.However, there is no gallery, or error message on PC machines. I do not have a PC so I can't test it, but I've had a Vista and XP user both test the site and the galleries do not display at all.

View 1 Replies







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