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
FlashKit > Flash Help > Flash ActionScript
Posted on: 12-03-2002, 07:25 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Trouble With Adding A New Scene
- Problems Adding Just A Scene
- Adding A Link To Scene
- Adding A Scene Distorts Images
- Adding All Instances In A Scene To An Array
- [F8] Adding Text Field In Scene 2
- Adding All Instances In A Scene To An Array
- Adding Up Score From Movieclip To Scene
- Blurry Graphics When Adding A Scene
- Adding 2 Sound Fx To A Scene But It Interupts The First Loop
- Images Look Crappy When Adding Preload-scene
- Adding Scene Makes Images Fuzzy
- Help Adding Moviclips/Btns To My Papervision Scene
- Adding Live Video To A Scene As A Texture?
- Adding New Frames Before Game Scene [mucking Up]
- Adding Content Issue
- Adding Thumbnails - Issue
- Scene Issue
- Issue With Adding Numbers To A Textbox
- Scene 1 & 2 Preloader Issue...
- GotoAndPlay Scene Issue...
- Scene Change Issue
- Replay Scene Issue...
- Scene Navigation Issue
- Key Press Over Multiple Scene Issue
- Button Scene Switching Issue
- [CS3] Go To Next Scene Button Issue- Jumps Back To Original Frame
- Remove Child After Adding Child Issue
- Won't Change Scene...neither With Actionscript,neither From Scene To Scene
- [F8] Flash Site, Multiple Scenes, Button Moves Scene To Scene Instead Of Navigating
- Help With Passing Number From Scene 1 To Scene 2's Dynamic Text Field
- Targeting Frame Label In Scene From Movie Clip In Same Scene
- Simple Gotoandplay - Animate The Scene Out Before Playing Selected Scene?
- Scene 2 Works Fine, But When Preloaded Added Scene Will Not Work
- Play The Rest Of Current Scene, THEN Gotoandplay Another Pre-determined Scene
- Scene -> Object? Turning A Scene Into An Importable Symbol For Other Projects
- Sound Plays From Next Scene, While Playing In Current Scene?
- I Cant Navigate 1 Scene From Another Scene Thorogh Movie Clip
- On My Movie, At The Middle Of The 3rd Scene, Goes And Plays The Sounds On 4 Scene...m
- Button Relase; Play Curent Scene And Go (scene)
- How To Disable The Intro Sound When Switching From 1 Scene To 2nd Scene
- Buttons Aren't Going To Correct Scene, Just Progresses To Next Scene :(
- How To Start Play Scene From Movie Located In Another Scene
- Changing Form Preloading Scene Into Main Scene.
- Click, Clear Stage Scene, THEN New Scene
- Button In Scene 1 Loads A Specific Mc In Scene 2?
- Loader Scene -> Movie Scene Problem
- On Release - Finish Scene - Goto Scene?
- Playing A Scene When Current Scene Ends
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
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
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?!
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
Adding All Instances In A Scene To An Array
I want to instruct actionScript to look at my scene, go though each item on it (e.g. all of the check boxes and radio buttons) and add each of these items that have got an instance name into an array.
I can't think of a simple solution to this. Can anyone help please?
[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
Adding All Instances In A Scene To An Array
I want to instruct actionScript to look at my scene, go though each item on it (e.g. all of the check boxes and radio buttons) and add each of these items that have got an instance name into an array.
I can't think of a simple solution to this. Can anyone help please?
Adding Up Score From Movieclip To Scene
Hi, I am doing a quiz game project using flash that is due soon. I am having a bit of problem with adding up score from many movieclips and displaying it on another scene.
Any help is deeply appreciated.Thanks in advance.
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.
Adding 2 Sound Fx To A Scene But It Interupts The First Loop
Hi, i am working through one of the tutorials in swish and i have come accross a problem. IN THE TUTORIAL "THIS IS MY MESSAGE" i have added the vector graphics and the initial sound. However i wanted to added a sound effect when the first picture loaded in. When i did this my first sound loop cuts of then startes again when the sound fx is meant to cut in. So i look at sound/actions panel. I loop 88amp3 15 times and then at my first jpeg i loop a sound fx once. But when i play the whole scene my sound fx cuts in through the whole thing. When i go back to the sound panel i find that the setting have changed and the soundfx wants to play 15 times now overiding my initial 88amp3 sound loop. Its just that in future i want to put key sounds along side pics loading in and what not, and im not sure how to co-ordinate this. Anyone know what im doing wrong? Im pretty sure im close but i cant find the solution. Any takers?
Regards,
Gibbo.
Images Look Crappy When Adding Preload-scene
I have an imagesequence that should be exported with the swf in highest quality. Works great on it self and all, no problem whatsoever, UNTIL....
I added a preloader in a scene
Now when I export, the images look all crappy! Almost bitmap-like. I swear I've checked the properties of all images and the export-settings and all that.
Can someone help me with this problem?
Much appreciated,
Mediamonkey
Adding Scene Makes Images Fuzzy
I have a flash movie (flash 5) with imported PNGs for buttons. When I add a new scene (either by duplicating or adding new), the quality of these images plummets, even though I have the publish settings set to 100% jpg quality. As soon as I delete the new scene(s), the quality is restored. Obviously I can't publish a movie with poor quality images (it's like they've been enlarged and then over-sharpened in paintshop pro or similar, except they haven't). Does anyone know if/how I can remedy this? TIA
Help Adding Moviclips/Btns To My Papervision Scene
Please help. I'm new to papervision and AS3. I'm trying to spin a cube with materials and interact with buttons on the cube. I was able to assemble this:
http://www.methodengine.com/clients/...vidboxspin.swf
It shows my cube with my materials. I placed buttons over the box that spin it. I would like those buttons to actually appear and spin on the cube itself.
Can anyone out there point me in the right direction. I was able to add movieClips on the stage, but no in the front cube material.
Here is my code to make this happen:
ActionScript Code:
package {
import flash.display.*;
import flash.filters.*;
import flash.events.*;
// Import Papervision3D
import org.papervision3d.events.InteractiveScene3DEvent;
import org.papervision3d.scenes.*;
import org.papervision3d.cameras.Camera3D;
import org.papervision3d.objects.DisplayObject3D;
import org.papervision3d.materials.*;
import org.papervision3d.utils.virtualmouse.VirtualMouse;
import org.papervision3d.utils.virtualmouse.IVirtualMouseEvent;
import org.papervision3d.utils.*;
import org.papervision3d.objects.*;
import flash.text.TextField;
import flash.utils.*;
public class Main extends MovieClip {
public var mc :MovieClip;
// ___________________________________________________________________ 3D vars
var container:Sprite;
// var scene:Scene3D;
var scene :InteractiveScene3D;
var camera:Camera3D;
var ism:InteractiveSceneManager;
var plane:Plane;
var time:Number;
var tweening:Boolean = false;
var myVidfront:Boolean = true;
var mouse:Mouse3D;
var vMouse:VirtualMouse;
var material:InteractiveMovieMaterial;
public var myVidContainer:MovieClip;
private var frontMaterial:BitmapFileMaterial = new BitmapFileMaterial("images/player2_back.png");
private var backMaterial:InteractiveMovieAssetMaterial = new InteractiveMovieAssetMaterial("flv", true, true);
private var targetrotationY:Number = 0;
var p:Cube = new Cube(new MaterialsList( {
front: frontMaterial,
back: backMaterial,
left: new ColorMaterial( 0x000000),
right: new ColorMaterial( 0x000000),
top: new ColorMaterial( 0x000000),
bottom: new ColorMaterial( 0x000000)
} ), 800, 100, 500, 1, 1, 1);
public function Main() {
init();
time = getTimer();
}
public function init():void {
stage.scaleMode = "noScale";
// add a spin btn
var spin180_btn:PlayVid= new PlayVid();
spin180_btn.x = 500;
spin180_btn.y = 25;
addChild(spin180_btn);
// add another spin btn
var spin360_btn:PlayVid= new PlayVid();
spin360_btn.x = 400;
spin360_btn.y = 25;
addChild(spin360_btn);
init3D();
addEventListener( Event.ENTER_FRAME, loop );
spin180_btn.addEventListener(MouseEvent.CLICK, spin180);
spin360_btn.addEventListener(MouseEvent.CLICK, spin360);
}
// ___________________________________________________________________ Init3D
public function init3D():void {
// Create container sprite and center it in the stage
container = new Sprite();
addChild( container );
container.name = "mainCont";
container.x = 270;
container.y = 200;
// Create scene
scene = new InteractiveScene3D( container );
ism = scene.interactiveSceneManager;
scene.addChild(p);
p.rotationX = 0;
p.rotationZ = 0;
p.rotationY = 0;
p.x = stage.stageWidth / 4;
p.y = -100;
var moreVids_btn:MoreVids = new MoreVids();
moreVids_btn.x = 480;
moreVids_btn.y = -130;
// scene.container.addChildAt(moreVids_btn,1);
moreVids_btn.addEventListener(MouseEvent.CLICK, spin360);
// Create camera
camera = new Camera3D();
camera.zoom = 10;
camera.sort = true;
}
private function spin180(event:Event):void {
tweening = true;
trace(p);
if(myVidfront){
myVidfront = false;
targetrotationY = 180;
}else{
myVidfront = true;
targetrotationY = 0;
}
}
private function spin360(event:Event):void {
tweening = true;
if(myVidfront){
myVidfront = false;
targetrotationY = 360;
}else{
myVidfront = true;
targetrotationY = 0;
}
}
// ___________________________________________________________________ Loop
function loop(event:Event):void {
if (tweening) {
if (p.rotationY <targetrotationY) {
p.rotationY += Math.sqrt(targetrotationY-p.rotationY);
p.rotationY = Math.round(p.rotationY);
} else if (p.rotationY> targetrotationY) {
p.rotationY -= Math.sqrt(p.rotationY-targetrotationY);
p.rotationY = Math.round(p.rotationY);
}
}
scene.renderCamera( this.camera );
}
}
}
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.
Adding Content Issue
I like the way this file functions but I can't figure out how to add content. (Please see the attached file) The buttons are all the same mc. Since the whole file functions through AS...I'm baffled.
I appreciate any input.
Thanks,
Bluej2
Adding Thumbnails - Issue
Gday, firstly i must say, if it wasnt for kirupa, id be purchasing book after book to get not even half the info you guys post up here for free!
Anyways, i've followed this tutorial http://www.kirupa.com/developer/mx2004/thumbnails4.htm
And the issue that has arisen is...it won't load the images! Not just into the main enlarged image, but not even into thumbnails_mc...
It must, however, be reading the XML or i wouldnt have any description text on the page, and that indeed i do have...
Can anyone help me out? I know the URLs are correct for the images, cuz i've checked them out...
Also (This may or may not be a problem) im using Flash 8, not MX 2004. Could that be it?
Hope someone can help!
Cheers
Will
Scene Issue
hey all. i'm fairly confident that i've coded this correctly, but you never know.
PHP Code:
on (press) {
gotoAndPlay("text", 1);
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();
_root.graylinethingclip.nextFrame();
} else {
this.prevFrame();
_root.graylinethingclip.prevFrame();
}
}
when i click on the MC that is acting as a button here, the scene refuses to change. I'm on Scene 1 and the scene that i'm trying to goto is named text and it should begin playing on frame 1. what gives? any suggestions from anybody?
Issue With Adding Numbers To A Textbox
Hi,
I have a flash document,where each time you click a button, a text box adds 1 to the value, from the origonal value of 0, on and on, like so:
0 <button is clicked> 1 <button is clicked> 2 <button is clicked> 3 ...
but instead, it gives me:
0 <button is clicked> 01 <button is clicked> 011 <button is clicked> 0111
How do I convert the text-box object to didgits, instead of text?
This is the actionscript:
Attach Code
the_button.onPress = function (){
text_box.text += 1;
}
//And i tried
the_button.onPress = function (){
text_box.text = text_box.text + 1;
}
Scene 1 & 2 Preloader Issue...
I have a two scene flash, scene 1 is a preloader, standard one. Scene two is a movie. Before adding the preloader & its scene, the movie ran fine. Now when the movie starts playing after the loader is done, when it hits the actionscript _parent._parent.gotoAndStop(2); the movie plays back to the FIRST scene, in the preloader.
I'd LOVE any help with what I've done wrong. THANKS!!!
Ben
GotoAndPlay Scene Issue...
I have a movieclip (player) which has a whole bunch of moving codes and hitTests and such within it as a function, and gets called on the mainstage in the onClipEvent(enterFrame)...All of that works fine. The problem is that I have afew scenes that I need to change to, and it wont seem to let me do it. Right now I've been using a function code that should work...This is just an example, trying to get it to the GameOver scene.
function GameOver() {
_root.gotoAndPlay("GameOver",1);
}
It is defined in a Code layer on the main stage, then within the player in one of his functions.
if (_root.playerHP._x<=13) {
_root.GameOver();
}
I have put a trace in the GameOver function, it works. and a trace in the if statement, which also works. The problem is the gotoAndPlay. Anyone have any ideas?
EDIT: If you want me to post it I can, but it is a little messy.
Scene Change Issue
so i am making a website for a client and am having an issue with a simple scene change button.
when i click on the button to make the page change scenes to the about scene, it gives me this dialog
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at CleoMackDanceProjectWebsite_fla::MainTimeline/CleoMackDanceProjectWebsite_fla::frame77()
the thing is that the scene only has 1 frame on it, and i am only telling it to change to the 1st scene... this is my actionscript for the button...
AboutAD_btn.addEventListener(MouseEvent.CLICK, AboutA);
function AboutA(event:MouseEvent):void
{
gotoAndStop(1, "About")
}
all my other buttons on the page have the same format and work properly and change to the correct scene
anyone know why this error is happening?
Replay Scene Issue...
I have a fla file that has two scenes. At the end of scene 2 there is a button that is directed upon release to go to prevScene...in this case scene 1. When you hit the replay button it does go back to scene 1, which plays through, but it doesn't continue on to scene 2 - which I want it to do because I want the replay button to exist only on the second scene. There is no stop(); script in scene 1.... i'm stumped....
Scene Navigation Issue
Ok, I'm having an issue with a button that goes to a labeled frame in a different scene.
When I add this code to the button--
on (release){
_root.gotoAndStop("individual");
}
"individual" being the name of the frame in the next scene--it goes to the goes to the first frame in the current scene.
when I use--
on (release){
_root.gotoAndStop("Scene 2", 1);
}
I get nothing.
same with _parent.gotoAndStop("Scene 2", "individual");
I tried a bunch of different ways and am having a difficult time.
My button is in a movie clip.
Any help is extremely appreciated--deadline--
thanks,
hutch
Key Press Over Multiple Scene Issue
Ok... let me explain in the simplist possible way as it really isn't had to understand, but it's very very frustrating.
The problem is that i'm doing a media player and it has multiple symbol definitions i.e one for the Audio Player and one for the Volume Control.
I've assiged the volume control to go up with the + key and down with the - key. now...
When i test the scene the keyboard ONLY works when i click the mouse inside the player movie... if i click inside and then use the keyboard to go up and down, it works... when I click outside it stops responding to the keyboard...
How can i make the event listener activate the scene without having to click into it directly?
Here is a screenshot to help with my explination... pleaseeee help it's driving me nuts!!!
Button Scene Switching Issue
Hello all,
I'm sure I've missed something very simple here, but I've set up a multi-scene flash movie and have buttons to go from a menu to a few sub-pages and back to the menu. The buttons work flawlessly in Flash with the "Enable Simple Buttons" mode on, but when exported, the subpage "back to menu" buttons go to the next scene rather than back to the menu. Could someone be so kind as to look over the flash file and tell me what the heck I'm doing wrong??
Thanks!!
Mike
[CS3] Go To Next Scene Button Issue- Jumps Back To Original Frame
I posted a related question yesterday but no responce. I have solved one issue but I'm still having another one regarding a "go to next scene button".
Scene 2 is a simple drag and drop with 5 drags. Once all 5 are placed correctly I want to be able to go to either go the next frame or next scene.
I can get the button to display, but it will not go to the next scene and stay.
It will just jump right back to the frame in which it displayed. The button is set to display with an onEnterFrame = function():Void{ if(counter == 5){gotoAndStop(3); }
};
I've been struggling with this for a couple of days now and any help would be GREAT! I am using actionscript 2 and it is shown below for the drag and drop and go to frame.
Actionscript assigned to scene 2 frame 1 places 5 drag and drop items.
and then goes to frame 3.
var counter:Number = 0;
var softbeep:Sound = new Sound();
softbeep.attachSound("softbeep");
onEnterFrame = function():Void{
if(counter == 5){
gotoAndStop(3);
}
};
cpr_mc.onPress = function():Void {
this.startDrag(true);
reply_txt.text = "Drag Text to Correct Number.";
xstart = this._x;
ystart = this._y;
};
cpr_mc.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == cprtarget_mc) {
reply_txt.text="CORRECT!";
this.enabled = false;
counter++;
softbeep.start(0,1);
}
else {
reply_txt.text="No, keep trying!";
this._x = xstart;
this._y = ystart;
}
};
aed_mc.onPress = function():Void {
this.startDrag(true);
reply_txt.text = "Drag Text to Correct Number.";
xstart = this._x;
ystart = this._y;
};
aed_mc.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == aedtarget_mc) {
reply_txt.text="CORRECT!";
this.enabled = false;
counter++;
softbeep.start(0,1);
}
else {
reply_txt.text="No, keep trying!";
this._x = xstart;
this._y = ystart;
}
};
iv_mc.onPress = function():Void {
this.startDrag(true);
reply_txt.text = "Drag Text to Correct Number.";
xstart = this._x;
ystart = this._y;
};
iv_mc.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == ivtarget_mc) {
reply_txt.text="CORRECT!";
this.enabled = false;
counter++;
softbeep.start(0,1);
}
else {
reply_txt.text="No, keep trying!";
this._x = xstart;
this._y = ystart;
}
};
tube_mc.onPress = function():Void {
this.startDrag(true);
reply_txt.text = "Drag Text to Correct Number.";
xstart = this._x;
ystart = this._y;
};
tube_mc.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == tubetarget_mc) {
reply_txt.text="CORRECT!";
this.enabled = false;
counter++;
softbeep.start(0,1);
}
else {
reply_txt.text="No, keep trying!";
this._x = xstart;
this._y = ystart;
}
};
reassess_mc.onPress = function():Void {
this.startDrag(true);
reply_txt.text = "Drag Text to Correct Number.";
xstart = this._x;
ystart = this._y;
};
reassess_mc.onRelease = function():Void {
this.stopDrag();
if (eval(this._droptarget) == reassesstarget_mc) {
reply_txt.text="CORRECT!";
this.enabled = false;
counter++;
softbeep.start(0,1);
}
else {
reply_txt.text="No, keep trying!";
this._x = xstart;
this._y = ystart;
}
};
-----------------------------------------------------------------------
Actionscript assigned to button on scene 2 frame 3 but won't stay on scene 3.------------------------------------------------------------------------
on (release) {
gotoAndPlay("Scene 3", 1);
}
Remove Child After Adding Child Issue
OK so here goes. I was helped extremely before on my problem but while testing and checking output window I get the following error:
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/removeChild()
at final2fla_fla::MainTimeline/reportDownCdRomClick()
This only happens when I click on the reportDownCdRomClick button (button2) not on the other. This is what I am working with:
Attach Code
//variables for buttons
var myLeftRequest:URLRequest;
var myRightRequest:URLRequest;
var myLeftLoader:Loader;
var myRightLoader:Loader;
var myCdRomRequest:URLRequest;
var myCdRomLoader:Loader;
//Web Button Listeners
webwork_mc.addEventListener(MouseEvent.CLICK,reportDownWebClick);
cdrom_mc.addEventListener(MouseEvent.CLICK, reportDownCdRomClick);
//photo_mc.addEventListener(MouseEvent.MOUSE_DOWN, reportDownPhotoClick);
//design_mc.addEventListener(MouseEvent.MOUSE_DOWN, reportDownDesignClick);
//Function for web button
//button one
function reportDownWebClick(myevent:MouseEvent):void {
myLeftRequest = new URLRequest("left-content.swf");
myRightRequest = new URLRequest("right-content.swf");
myLeftLoader= new Loader();
myRightLoader = new Loader();
myLeftLoader.x=70;
myLeftLoader.y=168;
myRightLoader.x=460;
myRightLoader.y=168;
myLeftLoader.load(myLeftRequest);
myRightLoader.load(myRightRequest);
addChild(myLeftLoader);
addChild(myRightLoader);
removeChild(myCdRomLoader);
webwork_mc.removeEventListener(MouseEvent.CLICK, reportDownWebClick);
cdrom_mc.addEventListener(MouseEvent.CLICK,reportDownCdRomClick);
}
//button two
function reportDownCdRomClick(myevent:MouseEvent):void {
myCdRomRequest = new URLRequest("XML2.swf");
myCdRomLoader = new Loader();
myCdRomLoader.load(myCdRomRequest);
myCdRomLoader.y = 140;
addChild(myCdRomLoader);
removeChild(myLeftLoader);
removeChild(myRightLoader);
webwork_mc.addEventListener(MouseEvent.CLICK,reportDownWebClick);
cdrom_mc.removeEventListener(MouseEvent.CLICK, reportDownCdRomClick);
}
Won't Change Scene...neither With Actionscript,neither From Scene To Scene
I have a big problem...why won't my movie change from my intro to scene one...I built my intro, i built my scene one but it won't skip from one to another. At the begining i had a loop problem on my intro,and it would never go on to the next scene,and now even if i build a new page it won't change to another scene either....HELP PLEASE!!!
[F8] Flash Site, Multiple Scenes, Button Moves Scene To Scene Instead Of Navigating
Hi...I am very new at flash, so forgive my ignorance in advance...I really really need help!
I created a site, separated into scenes (intro, main-home, about, portfolio, press, contact).
About half the time the navigational buttons work fine. However, the other half of the time one of the buttons, the Press button, instead of bringing me to the Press scene, just moves scene to scene (for example, say I'm on the home page and I want to go to the Press page, it just goes to the about page...I hit the button again it goes to the Portfolio page, etc.). I think the problem lies somewhere in bypassing the intro prematurely (you can skip intro and go straight to the site/home-main scene), but I'm not positive.
Here's the code for the Press button:
on (release) {
gotoAndPlay("press", "pressframe");
}
where pressframe is the name of the first frames in the Press scene.
I can upload the fla file to my own site for download and review if necessary....
Please help!....I am losing sleep and hair over this.
Help With Passing Number From Scene 1 To Scene 2's Dynamic Text Field
hi all ,
i have 2 scenes on the first i retreve user information from flash and through php to a mysql database then send it back to flash. on one of the lines i retreive a id number
content.htmlText += " <a href='#" + this["id"+i] + "'>" + this["id"+i] + "</a><br><br>";
when the user clicks on this ahref i want to goto scene 2 and insert the id into a dynamic textfield with an instance name of "recorde_id"
this scene is complete and works it retreives more infor about the user..
but i have to manualy enter a id number into a INPUT filed i want it to be automatic that why i have changed it to be dynamic so it can capter the ahref from scene 1.. if you need more code or information just ask and ill deliver, im a flash newbee..
cheers aron.
Targeting Frame Label In Scene From Movie Clip In Same Scene
Hey Pals,
I'm trying to target a frame label on the timeline of a scene from a movie clip within the same scene, using Flash MX 2004 Pro. The scene is ultimately used as a .swf to load as a page of a website. The frame label is called "miscOn", the scene is called "misc". The below code is attached to a button within the movie clip.
on (release) {
loadMovieNum("tajwebsite_main.swf",1);
gotoAndPlay(miscOn);
}
Thanks!
Stu
Simple Gotoandplay - Animate The Scene Out Before Playing Selected Scene?
Hey there again,
Just wondering if you guys could point me in the right direction.
Before, when I made full-flash websites, when I clicked a button I'd have it gotoandplay frame 60 or whatever (or scene 2 or 3 or 4 etc.) and that page would start up there and have a nice little animating intro but it would be a very abrupt start because anything on the previous page would just disappeer jaggedly.
But I've seen a lot of nice sites, that once you press a button, it'll clean up the current scene, say have everything burn out or fade or or something instead of just having the next option just appear, then go to the selected page. Say they clicked News or Contact, and they were on products. It would allow me to have a timeline to animate all the objects out (just a simple tween) then once it reached the end and all the objects were out, it knew which button they pressed and where to gotoandplay.
This is probably easy actionscripting (or not, I have no clue) so it would be greatly appreciated if someone could direct me, thanks!
Scene 2 Works Fine, But When Preloaded Added Scene Will Not Work
I have a website at wosso.com which I needed a preloader. So currently the site works fine. I am toying with a preloaded, but when I add it the main part of the site does not function.
There are two scenes, PRELOADER and SCENE 1. My preloader includes this script in the first frame of the preloader: ifFrameLoaded ("Scene 1", 105){
gotoAndPlay ("Scene 1", 1);
}
I have also inluded this line at the end of the preloader, but also tried it without this line:
gotoAndPlay ("Preload", 1);
I haven't used Flash in some time and I am not good at scripting. It seems to make sense, but why is it not working when SCnene 1 works fine by itself.
Any sulotion/suggestions?
Thanks,
Wayne
Play The Rest Of Current Scene, THEN Gotoandplay Another Pre-determined Scene
Hi,
Im my scene contains 6 buttons, I want button '1' to play the rest of the current scene (for example scene '0' then goto and play scene '1'
I want button '2' to play the rest of the current scene (for example scene '0' then goto and play scene '2'
I want button '3' to play the rest of the current scene (for example scene '0' then goto and play scene '3'
etc....
any ideas? this is for actionscript 3. My current script just makes the button goto a certain frame, can I edit it? here it is:
stop();
thumbbtn1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
gotoAndStop(2);
}
thumbbtn2.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
gotoAndStop(3);
any help greatly appreciated.
Ger
Sound Plays From Next Scene, While Playing In Current Scene?
i am making an animation, i have about 8 scenes.
for some reason it starts playing the sound from the next scene in the middle of the current scene.
why?? i checked movie explorer and the sound is in another scene. does that sound like a flash bug, or just me? it is a big file, could that be it. please help it is driving me crazy!!!!!
I Cant Navigate 1 Scene From Another Scene Thorogh Movie Clip
SIr i made a Movie Clip and in the movie clip there are 4 buttons when i want to use the button so go to another scence it cant happen so how can i go to Another scene by the button which is present in the MOVIE clip
i think u understand my Problem
simply summary is that i there is a button in the movie clip and i want to use the button to go to another scene but it cant happen
Thk u in adnvance for any body Consideration
On My Movie, At The Middle Of The 3rd Scene, Goes And Plays The Sounds On 4 Scene...m
on my movie, at the middle of the 3rd scene, goes and plays the sounds on 4 scene...leaving some stuff of the 3rd... then goes blank... then it just gets crazy... no where there in the middle of the scene i gave it a command to go to the next scene... what on earth is going on...
please help...
it never happened before...
mayor deadline/...
urgent care...
thank you in advance:
chesckob
Button Relase; Play Curent Scene And Go (scene)
I need a bit of help, and its hard to explain. I have a menu that consist of 6 buttons on Scene1. I want to be able to click on a button and play scene1,frame37, then after it finishes playing I want it to move over the designated scene from the button pressed.
//This is what I currently have which makes the button play the ending of the scene.
on (release)
{gotoAndPlay( "scene 1", "fadeout");
}
//I need to finish the actionscrip by going to a different scene after it finishes playing the current scene. This is for all the buttons.
Example:
Button1 needs to play "scene 1", "37" then go to scene 3
Button2 needs to play "scene 1", "37" then go to scene 4
(any button) to Play "scene 1", "37" then go to (scnen asign from button)
and so on.
Any feedback is greatly appreciated.
Buttons Aren't Going To Correct Scene, Just Progresses To Next Scene :(
Anyone ever have the problem when your buttons have the code to jump to a specific scene, they just jump to the next scene on your palette instead?
For instance, I've got 6 buttons that I need to operate as a normal HTML site. So I programmed each button to jump to the corresponding scene with...
Code:
on(release) {
gotoAndPlay("fine, frame1");
}
In this situation, that button needs to jump to the scene "fine", but instead, when I click on it, it simply jumps to the next scene in the scene palette (which isn't "fine").
Interestingly as well, once it scrolls through all 6 scenes (by clicking on any button 6 times), it starts over with the first scene again.
Anybody know what I am doing wrong?
Thanks!
Changing Form Preloading Scene Into Main Scene.
hi all,
i've got a problem i can't figure out. i'm working on my website in flash. this is how i will do it:
http://www.auto-i-public.ch/adi/aresthetics.html
now, you see the letters cercling around in the upper left corner. all is well. now i created a preloader (there will be heavy stuff on it...maybe even shockwave files). i chose to do it with a new scene. it's a basic one. bar filling up, a few dynamic texts with the status. this is working too.
but then, when the preloading is done, it jumps into the main scene. everything appears and works. but the circeling letters don't work anymore. they run on a little loop for themselves. it's actually the only loop i have on my mainline. the rest is in mc's. i even tried to put the letters in a mc. didn't work either. it seems as the letters wouldn't initialize anymore. i checked if there are no already set variables coming over from the preloader. negative. i'm out of wisdom. if anyone could help me...i'd send the files, if nothing else helps. it's nothing really to steal.
tnx
adrian
Click, Clear Stage Scene, THEN New Scene
I think this is a common problem, but I haven't found the common solution. We've discussed this a little on a another thread, but we didn't really come up with a solution.
I know a lot of people want to have a button (well, multiple buttons), that when you click on it, it gotoAndPlay()s a scene that clears the stage, and THEN goes to a new scene (or in my case webpage) based on what button was clicked.
I know the answer has to be some use of variables and actionscript, but I haven't been able to puzzle it out, being new to flash.
Does anyone know the solution, or better yet, have a .fla file with the solution (so we can all see greatness in action)?
Thanks!
Button In Scene 1 Loads A Specific Mc In Scene 2?
Unfortunately my brain isn't really designed for understanding or figuring our ActionScript very well... Here's what I'm trying to do and the problem:
The user arrives at a 'splash screen' in Scene 1 which gives them the option to choose to view the demo in 'interactive' or 'autorun' mode (the two modes are slightly different in terms of their content so I'll have two separate scenes, Scene 2 will contain all the 'interactive' movie clips and Scene 3 will contain all the 'autorun' movie clips). The user can then choose whether they'd like to view the demo with the sound on or off. Once they've made this selection they'll be taken to the opening animation of the mode (i.e. interactive or autorun) they selected, with the sound on or off as they specified.
What ActionScript needs to be applied to the sound on or off buttons in Scene 1 to ensure that the correct sound movie clip loads at the beginning of Scene 2 or Scene 3.
If the user initially decided to view the demo in autorun mode they will be able to change to interactive mode at any time... how can I ensure the sound setting they have selected remains unchanged across Scenes (and they can choose to turn the sound on or off at any time)?
I need to create this as a single SWF - I can have as many Scenes and movie clips as is necessary but cannot use loadMovie and multiple SWF's
If anyone has any ideas I'd love to hear them! I just can't figure it out and I'm getting REALLY desperate!
Thanks!
Loader Scene -> Movie Scene Problem
When my preloader finishes loading my movie, and i use gotoandplay ("Movie", 1), something goes wrong. When it is done loading, it continues on to the "Movie" Scene, but keeps switching rapidly between the load scene and movie scene. I need to know how to completely turn off the loader scene when it completes. Thanks
On Release - Finish Scene - Goto Scene?
I have a navigation scene with buttons that is 100 frames but stops to allow navigation at 50.
What is the correct script to add to the buttons that allows me to finish the current scene to frame 100, then go to required scene??
Help is greatly appreciated.
Thanks,
Nick
Playing A Scene When Current Scene Ends
I don't want to come sound like and idiot, but i am stuck on one of the most simplest things.
i have 3 scenes, and in my first scene, i have two buttons.
The first button plays the rest of the first scene and then goes to the 2nd scene.
But!<
the 2nd button is meant to play the rest of the first scene and then go to the 3rd scene, but i don't know how! I've tried the 'and' statement, '+' etc but nothing works.
Any help would be greatly appreciated!
|