Adding New Frames Before Game Scene [mucking Up]
Got a game, asteroids, and it works fine, but when i move the frames along 1 so that i can add an into screen, with high scores and a play button, it throws off all my remove movieClips.
if anyone know as to why, would be great help.
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 03-27-2007, 10:25 PM
View Complete Forum Thread with Replies
Sponsored Links:
How To Repeat A Group Of Frames Without Adding A Million Frames?
Hello,
I have made a small flash intro using Flash MX 2004 Professional. The intro is about 3 seconds long. Here's what I want to do:
I want to add a few frames to the intro where I add things shooting through randomly, and I need these few frames to repeat themselves while keeping the main intro sort of paused in the background... How would I do this? How would I "pause" the background without adding a million frames? And is there some way that I can loop a group of frames? Please respond as "newbish" as possible so I can understand
Thank you!
View Replies !
View Related
Mucking Up Masking
Hi!
I have developed a problem which has had me scratching my head for some time! I have created a text effect which involves using an enlarging MC as a mask over the top of a moving image. This effect works really well in the construction window, however, as soon as I publish or test the movie, the mask layer seems to dissapear, leaving just the moving image! Obviously, this ruins the entire point of the effect.
Has anyone else had this problem? I am running Flash MX and exporting into Flash 6 player! If anyone can explain why, or even better, tell me how to get around this problem I would be really grateful!
Thanks in advance.
Commander NRG
View Replies !
View Related
Copying Game Score From Scene To Scene
Hi:
I've created a game that involves 10 questions. Each question is in its own scene. I've been racking my small brain trying to find a way to copy the user's score from scene to scene and add (or deduct) points based on whether the user answers the question correctly or incorrectly.
Any ideas or places to go to check out some sample script? Or am I missing something obvious.
Thanks.
Happy New Year
Tim
View Replies !
View Related
Why Is _lockroot Mucking Up My Movieclip
I have made a movieclip for the purpose of inserting into other flash files which I am authoring - I'll call it a 'component' but it's not actually a component in the strict flash sense of course, it's a movieclip. It requires a _lockroot to function properly inside other files.
Everything works fine except for some rollover animations within the 'component' which have stopped responding. They use this code:
Quote:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
}
They do nothing now the _lockroot is applied.
I tried applying instance names as opposed to 'this' but this, conversely, causes the animations to play with wild abandon.
Any help to solve this appreciated!
View Replies !
View Related
Mucking About With The Volume Of External Swfs ....
Hi there,
I'm having some trouble writing code that temporarily mutes the sound on some external swfs loaded into my site.
The swfs. are actually loaded into already loaded swf. (in case nesting is a factor). I also can't place code into the swf itself, as it was compressed from video by some third party stuff.
I've been using the new Sound / setVolume technique which works fine when tested on my machine but doesn't when up on the site.
A reliable waay to obliterate all sound from the player would be a fine solution ...
anyone ?
morg.
View Replies !
View Related
Futha Mucking Levels/Mac Related Issues
Argh! Help!
I have a file that I have created on a Macintosh. Which works fine on a macintosh - but not on any of the other PCs around the office.
Essentially, the crux of the problem is that there's a load of duplicate movie clips flying about. So as to mask them off into a neat area, I have a movie clip that sits on top of them all...
Now I send that movieclip to the far reaches of the stacking order by this command:
duplicateMovieClip ("_root.mask", "topmask", 9999999999999999999);
This works just fine on my precioussssss Mac, but when the SWF is opened on a PC - it just doesn't work and all those randomly duplicating movie clips appear over the top of my frame.
What gives?
View Replies !
View Related
Scene 2 Scene Jump In Game
howdy
i have a major problem with this game im working on
so far with help from fantastic ppl on this board ive done this
http://www.mn001c7645.pwp.blueyonder.co.uk/testnew.html
my problem is
when the sprite goes to the edge of the screen either left or right i want the whole scene to change so its like he is moving off screen and a new one loads ,not scrolling just a direct jump
like whole diffrent backgroud change diffrent start postion for the sprite ect...
if he leaves on the left ,in new scene he should start on the right
no matter what i try i can not get it to do this
all ive managed to do is prevent him moving off screen
any help would be much appreciated
http://www.mn001c7645.pwp.blueyonder.co.uk/testnew.fla
View Replies !
View Related
żAdding Frames?
how would i make it so it goes to whichever frame a person is on skip to 35 frames past that? i tried
on (release) {
gotoAndPlay (frame me + 35);
}
but i know that is totally wrong.
thanks
View Replies !
View Related
Adding New Frames
Hello,
I want to add some frames using actionscript. I need if user will enter some value in textfield, then that much frames should be added at specify scene's some movie clip.
Thanks in advance.
Regards,
Paresh
View Replies !
View Related
Adding Frames
my movie has alot of layers, each starting/stopping at different frames. I want to make a universal change of adding more frames to all layers, but when I click and drag all layers out, it adds frames on to the end of each layer .. anyway, not sure if I am explaining this clearly enough, but the point is that I'm looking for a universal way to add frames but maintain everyting else..
View Replies !
View Related
Looping FLV And Adding Frames
Hi all
Somewhat unfamiliar with AS, however, been using Flash on a basic level for some time. I have an issue.
I have created an FLV which I need to stream progressively from a server. This I have achieved and its work well. However, now I need to add a frame at the end of the video.
How do I edit the FLA file with the FLV video in it to add a frame containing maybe a picture on it after the FLV has finished?
I have tried many forum searches and tried loads of AS suggestions that I found but nothing works.
Thanks very much, ST
View Replies !
View Related
Adding Frames To MC In Runtime
Hi.
I have question. Can I create a MC at runtime with more than 1 frame, or add frames to MC at runtime?
Exact problem is:
I need to create MC in runtime and draw black square to frame 1 and red square of same size to frame 2 and then use gotoAndStop to switch between frames. I don't know square size and MC size at compile time.
Thanks for answers
MC = movie clip
View Replies !
View Related
Adding Sound To Key Frames
I have a series of keyframes that are linked with buttons. the sound plays automatically when the frame is open, however, if the 'back' button is pressed and the previous key frame is on the stage, the sounds from both key frames play at the same time. They are in their own layer and each key frame has a sound to play but i would like to know how i can ensure that only one sound plays at a time.
View Replies !
View Related
The Problem Of Adding Frames
Hi all! I have a new problem, I wasn't able to solve it. Please read the description below and try to help me. I finished my work in a long movie, 300 frames, with alot of internal movie clips and action scripts. Now, I need to add frames to the movie, but many action script codes will not work again after adding these frames, because they are pointing to defined frames, like the following code:gotoAndPlay(32);So, I want a method to add frames and keep these codes working! Are there any method to do that?!I hope so. waiting ur repliesThanks
View Replies !
View Related
Adding Scene Issue
Hi !
I did flash project in one scene. I put preloader in frond of it (in new scene). Preloader works fine, but the code in next scene doesn't work at all!!!!
I didn't find any solution. I tried to paste all frames to new empty movie with two scenes. Script started to work, but gotoAndPlay commands dont work correctly.
Leos
View Replies !
View Related
Trouble With Adding A New Scene
Hi,
I have a main scene that begins with a animation. Now when i add a new scene to house a preloader and place it above the main scene and play the movie the preloader works fine but when it plays the next scene everything stops at frame 1. At 1st I thought it was my preloader but i tripled checked it and it was fine, I also just added a blank scene but i get the same problem. Im using flash 8. ne 1 ever get this problem?
thx
View Replies !
View Related
Problems Adding Just A Scene
hi guys,
i am getting in pain just adding a second scene to my flash 8 artwork.
...i have finished an intro and now the movie should jump to a second scene using gotoandplay("scene2", 1).
as soon as i add the second new scene from the scene inspector and play the movie, i get a movie that stops playing to the first (i think it's so) frame of first scene....well at the end ...as soon as i add a scene, the movie stops. no code added or removed!!!it's strange!!!
please helppppp
thank
adro
View Replies !
View Related
Adding A Link To Scene
Hi,
I am a total beginner in Flash and wanted to know, how to add a link that opens in a new window to a scene?
I found out that on AS2 it was done in a manner similar to:
ActionScript Code:
on (release)
{
getURL("http://www.google.com",_new)
}
or something like that.
Right now I got to this:
ActionScript Code:
Scene.addEventListener(MouseEvent.CLICK,goTo);
function goTo(e:MouseEvent) {
var request:URLRequest = new URLRequest("http://www.google.com/");
navigateToURL(request);
}
But I get an error 1061
Basically I need to add a link to another web page on my banner.
Help please?!
View Replies !
View Related
[CS3] Adding & Editing Frames To Timeline
I am trying to add some keyframes to a timeline.
The process that I am using is
Insert Keyframe
Copy the frame before it
Paste into new keyframe
Edit new keyframe in workspace
Problem: Both the keyframe that I copied from and the one I copied to are changing.
What am I doing wrong?
Kay
View Replies !
View Related
Adding Frames To A MovieClip In ActionScript
I'm trying to do as much as possible in action script, so is this possible?
ActionScript Code:
container_mc.createEmptyMovieClip("inner_mc", innerMcDepth);
inner_mc.addFrame();
Basically, I want to make a movie with multiple frames straight in actionscript, then do what I need to do in each frame.
Possible?
Thanks!
View Replies !
View Related
Is There A Way To See How Many Frames Are In A Scene? (not Using _totalframes)
I'm doing some video work up in flash and I have the section broken off into 4 scenes. Everything works fine for a little bit and then it just gets really out of sync progressively.
My problem is that the component that I'm using to control the video uses _totalframes instead of detecting the amount of frames in the current scene. When I test each scene independently the syncing is perfect so I know that it has something to do with the fact that the long video is messing things up.
Does anyone have a quick work around for this as I'm in a pretty tight spot now.
Thanks
View Replies !
View Related
Random Frames In A Scene
Hi,
I'm having a problem trying to randomly play different sets of frames within one scene. I am using the following script but it doesn't seem to work.
my_array = new Array("p5 1.1", "p5 2.1", "p5 3.1", "p5 4.1", "p5 5.1");
var x = Math.floor(Math.random()*my_array.length);
trace(my_array[x]);
_root.gotoAndPlay(my_array[x]);
I put the above script at the start of the scene and then there are multiple sets of frame labels ("p5 1.1", "p5 2.1", "p5 3.1", "p5 4.1", "p5 5.1") later on in the scene. The trace portion of the above script seems to do the right thing, that is randomize the various labels, but the last line of the above script does not go and play the proper label. Is a special command required to play labels instead of scenes?
Any help would be appreciated.
View Replies !
View Related
Cutting Off 1st 35 Frames Of Every Scene?
Ok, I have a project using scenes. Yes, I know, don't use scenes. Use movie clips. I found that out after the fact, and I really just want to finish this project now that I'm tired of it. Next time, I will "TRY" movie clips. Promise...
Everything was working fine, until I decided I wanted to move stuff around to make things easier & to "try" to at least turn my navigation into a movie clip, with no success.
So... I have this lengthly animation/tutorial - almost 7 min @ 12fps. Everything is compressed as much as possible - image files, took out uneeded keyframes/blank frames/tweens/etc. I have a nice organized library, nice organized layers, scenes, etc. Everything is locked & viewable when I scrub the timeline. The file size is just under 1 MB.
Problem... when I view the swf or preview the file just recently, things suddenly are acting funny. It's some how skipping over the 1st 35 frames (not sure it's the number is exact, but it seems to be w/in a frame or two for EVERY SINGLE scene.) Some of my navigation is suddenly acting funny/not working or not consistanly. Yes, I made a few changes, but just moving some things around on the timeline in one scene. I did not add any script. My last saved out version is kind of old since I was checking the movie & saving over the most recent one for the most part, but it was working. I'm so confused.
Please don't tell me this is just the craziness of using scenes that people have warned me about after the fact. Ugh...
Any suggestions would be greatly appreciated - more than you'll know.
View Replies !
View Related
Play Frames, Then Go To Scene
Actionscript 3.0 newbie here...
I am making an online portfolio and I have created the following scenes:
home
about
contact
right now, I have three movie clips on the home screen that I have created into buttons with the following code (this specific example is for the ABOUT button:
Code:
but_about.buttonMode = true;
but_about.addEventListener(MouseEvent.CLICK,onButtonClick);
function onButtonClick(e:MouseEvent):void
{
???????
}
What I would like to do is after someone clicks on the button, have the timeline start to play again (in the current scene) for about 10 frames. When it finishes, it should then jump to the corresponding scene. So for example when you press the "about" button, the timeline plays, then goes to the "about" scene. Same thing for each button
I am super stuck!
Thank you!!!
View Replies !
View Related
Adding A Scene Distorts Images
This seems very strange to me, but why would adding a scene to the movie lower the quality of the images I am using. I have images that look fine, but if I just add a scene to the movie the quality goes way down.
Thanks for the help,
Todd
View Replies !
View Related
[F8] Adding Text Field In Scene 2
I have a two scene movie
In the second scene i have
Code:
createTextField("word_txt", 2000, 100, 100, 300, 100);
word_txt.multiline = true;
word_txt.wordWrap = true;
word_txt.border=true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFF0000;
my_fmt.underline = true;
word_txt.text = "This is my first test field object text.";
word_txt.setTextFormat(my_fmt);
If I export the whole movie this doesn't work
If I export just the second scene it does work.
What do I need to alter to make it work if I export the whole scene
THanks in advance
View Replies !
View Related
Blurry Graphics When Adding A Scene
Hello...i'm new at this forum and here's my first question:
When i add an extra scene to my movie (flash MX 2004) than all my graphics become blurry like a bad jpg. When i delete the scene again, the graphics are perfect.
Is this a bug in flash or am i doing something wrong? The graphics I imported are png or jpg.
I tried some changes with the jpg publishing quality, but that didn't work.
So..anyone with the solution?
Thnx in advance.
View Replies !
View Related
Adding Alpha To Hundreds Of Non Symbol Frames
hello, I have a problem which i can resolve (but only if i spend hundreds of hours) but want to know if there is a quick way of doing this.
I have a spinning 3d menu system (made with swift and textured manually by myself with 12 images to look as if it is attached to the 3d objects via masking) there are 120 frames, and 48 layers, so muliply the frames 120 X 24 (half of the layers are for masking) so you have an awful lot of frames.
I want to alphaize the images so that the further they get the more transparent they are, problem is that none of them are symbols, they are all instances of the jpg itself, If I make a symbol of them all I can manually alphaise each one but that (as mentioned) would take ages. and this also would cause multiple sybols which would be just plain messy.
Is there a way to make them all one symbol, (the instances of the jpg are rotated at variang angles throght the frams, and would wish to maintain that rotation angle / size etc.) so at least it wold not be messy. or is there some way i can acomplish this withouth spending an eternity? if so please help
I am not sure if i am making myself clear here, but for anyone who is intrested i can email you the FLA file so you will have a better understanding what i am talking about.
View Replies !
View Related
Copy/Paste Frames W/o Adding Layers
I want to be able to copy and paste frames from multiple layers and add them further along in the Timeline without Flash adding new layers...Flash seems to add a new layer with blank frames up to the point you've pasted instead of simply adding the selected frames to the layer you want them in...it's frustrating because it creates redundant layers, that increase your file size and make a mess of the timeline...
View Replies !
View Related
Adding Frames To Existing Flash Intro
I am just learning flash 8. Any help on this will be most appreciated! I've labored with it for weeks now.
I have a pre-made flash intro. I have redone everything in the existing one. Now, I need to add more frames (I guess frames is the right word - I may mean Layers!). For example, it has frames saying "keyword 1", keyword 2", and "company slogan". I need to add several between "keyword 2" and "company slogan". My friend I'm doing the intro for to put on their website wants to add more sayings before the end of the intro.
If I need to upload what I have so far somewhere for you to see I will and I can also put my swf file somewhere for you to download if needed.
Thank you very much!
View Replies !
View Related
Want To Activate Scene Once All Frames Are Loaded. How?
K, I'm trying to make this website that's done entirely in Flash. It originally had two scenes. The main scene, and a preloader. I used the getBytesLoaded (or something like that) for the preloader and it worked fine.
Then, I had this great idea. The main scene was a little big because it had this underwater virtual tour. If I made the tour into a THIRD scene, I could make the preloader only wait for non-tour stuff to load. It would dramatically reduce the amount of time a user would have to wait to access the main scene. And while he/she browses through the information on the main scene, the tour would load in the background.
Ok, so here's what I tried to do in Actionscript (don't laugh, if you were as dumb as me, you'd try to do this too).
My main scene is called, MainScene. So in my preloader, I tried to do this:
if (MainScene._framesloaded == MainScene._totalframes) {
gotoAndPlay("MainScene",1);
}
This doesn't work at all. So could somebody tell me what I'm doing wrong, or perhaps how to solve this problem?
To sum it up, the problem is that I have three scenes, I want to use the first one to be displayed while the second one loads, and then the second one to be displayed while the third one loads.
Thanks in advance.
Chris Wilmer
View Replies !
View Related
Play 15 Frames And Change Scene
i need a button to do exact that. when u click the button it must play 15 frames and then go to other scene.
i can`t tell to go to other scene in the last frame because there are a lot of scenes and buttons that have to do the same.
5 buttons - 5 scenes - play 15 frames and then change the button-scene
send help!!!!!
View Replies !
View Related
Print Multiple Frames In Scene
I have 5 pages out of 20 that I want to print, using a print button at the end. I've applied the #p label to each frame to print, but it tells me I have duplicate labels. Do I need to label them #p1, #p2, etc? When I did this, the print button (located at the end of the tutorial) printed every frame instead of the ones I labeled. HELP! I've read some other threads and couldn't find an answer. I'm using print(_root, "bframe") for the print button.
View Replies !
View Related
Play Frames Then GotoAndPlay Scene
How can i tell my buttons to play a number of frames and then gotoAndPlay at a frame label. I want to make a animation after the user click on the button but i can't figure how to write the action script. Right now, that's what i have as an actionscript:
bouton_engineering.onRelease = function()
{
_root.gotoAndPlay(110);
_root.onEnterFrame = function()
{
if (_root.currentframe == 128)
{
this.onEnterFrame=null;
gotoAndPlay("engineering");
}
}
}
But it doesn't work.. it goes to the frame i specified (110) but it doesn't stop playing... and it doesn't go on the frame label ''engineering''
Please Help !!!
thanks
View Replies !
View Related
Play 15 Frames And Change Scene
i need a button to do exact that. when u click the button it must play 15 frames and then go to other scene.
i can`t tell to go to other scene in the last frame because there are a lot of scenes and buttons that have to do the same.
5 buttons - 5 scenes - play 15 frames and then change the button-scene
send help!!!!!
View Replies !
View Related
Play 15 Frames And Change Scene
i need a button to exact that. when u click the button it must play 15 frames and then go to other scene.
i can`t tell to go to other scene in the last frame because there are a lot of scenes and buttons that have to do the same.
5 buttons - 5 scenes - play 15 frames and then change the button-scene
send help!!!!!
View Replies !
View Related
Button To Play&go To Another Scene After 15 Frames
i have a button that suppose to play 15 frames when u click it, and after that 15 frames must go to another scene.
Now the button do this. i click and jump direct to the other scene.
actionsript in the button:
on (release) {
gotoAndPlay (16);
}
on (release) {
gotoAndPlay ("tecnico", 1);
}
PLEASE SEND HELP!!!!!
View Replies !
View Related
|