Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




I Know I Shouldnt Be Using Scenes :/ But Plz Help



hi i know i shouldnt use scenes now but didn tknow back when i started this projekt. :/

i assign variables in forst scene and want to use them in the second scene.

so a button in first scene has this as:

ActionScript Code:
on(release) {             var1 = bla;    _root.gotoAndPlay(37);}

in the second scene i have an mc who should start playin at a certain frame depending on the variable.

code on first frame of the mc:

ActionScript Code:
if (var1 == bla) {      gotoAndPlay(2);} else {      gotoAndPlay(15);}

but it wont work somehow.. it always plays the same no matter what the variable is set to.

is it not working because im using scenes? how can i make it work?

thx for help



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 02-03-2005, 11:13 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Please Help Me, Shouldnt Be Hard For Someone
I have
FLASH MX


This is my command
test.loadmovie(listBox1_mc + ".jpg");

Now, sometimes there isnt a jpg that will fit that, how can i make it so that if it doesnt find an image, it does something else?

Mac Osx Shouldnt Use Flash5
ALL MY TROUBLES DISAPPEARED when i got flashMX.

dont make learning flash harder that it has to be.

move to MACX and follow up with FLASHMX.

now when i have a question about something i dont have to wonder if it is format transfer trouble.

live and learn.

timo

Please Help, Shouldnt Be Too Tough
say ive got a Red Box on the bottom left of teh screen and a Blue Circle on teh top right

what do i have to do to get that Blue Circle to move slowly to the Red Box and stop about an inch away?

and further more, say that Red Box was to move up for some reason, how would i have it so that Blue Cirlce will follow it up?

any help would be greatly appriecated

Please Help Shouldnt Be A Tough One
Hey,

I have this weird problem with my new website...www.cyblingdesign.com

WHen you first vist the site with, you'll most likely notice that it doesnt load. It only loads unitl you press refresh. My scene is quite simple. In my main swf which loads in an external swf, i have all the layers starting on frame 3 (cos i heard is bad to start a website on frame one, might skip etc). I have one simple little external swf being loaded in on frame two, whihc has a preloader. It simply has two scenes, with text in the first scene saying 'loading'. There are 2 key frames...the text covers both of the keyframes,and the follwoing script is on key 2.

if (_root.getBytesLoaded() != _root.getBytesTotal()) {
nextScene();
}


This does work, but only after refreshing the page. Why is there a problem? Seems like a browser problem almost but same thing happens on all of em. The whole site works fine if i test my index.swf scene...everything loads up fine. My html page simply has a flash object centred inside a 1*1 table. Any help is greatly appreciated...i need this to work as potential employers will be looking at my site soon. Any help is great hlep. Happy christmas!

Aidan

Dont Get Why This Shouldnt Work
I have this code for my game

function PlayCards(){
cardsArray=new Array("hydrogen","helium","lithium","beryllium")
for(c=0;c<=cardsArray.length;c++){
for(i=0;i<=cardCount;i++){
cardsArray[c+i].onPress=function(){
}
}
}
}
and everytime I execute it it comes up with an error i am declaring the card count varible
any ideas?

Entering Mouseover State When It Shouldnt...
I have some text buttons forming a menu bar, these buttons have over states with a small tool tip offest from the button. The problem is when the mouse moves over the tooltips area, the mouseover state is entered and the tooltip appears. However, i only want the tooltip to display when the mouse is over the button, and not when its over the tooltip as well.

Any ideas?

Cheers

Woff

This REALLY Shouldnt Be On This Forum But I Dunno Where Else To Post...
and if i put it in the coffee lounge theyll just delete it. Im making an interactive CD for my band, so it has some audio tracks and a projector flash movie. how do i do this in the nero cd burning program? at the moment, i get track 1 being completely silent and then the music starting on 2.

Sorry mods. go ahead and delete this now.

My Movie Plays Sounds Where It Shouldnt
ok here is what i have.....

i have 5 scenes

1 of the scenes has buttons that links to other scenes

these other scenes have movie clips with sound in them

when i click on some on the links the sound of 1 of the other scenes plays

what am i doing wrong

Side Menu Closes When It Shouldnt?
I have practically completed a site I am doing for a friend:

http://www.dragonboaters.co.uk

however I am having problems with the flash menu.. with 'clothing' is clicked on a sub menu appears with mens clothing, womens clothing and unisex clothing. However when one of these is clicked the sub menu should stay open until the next page opens, but on some occasions it closes which looks silly because when the next page opens - its open again.

I have attached the .fla for your reference if anyone needs it.

Thank you

Files Being Added To Zip Archive That Shouldnt Be
Hi guys,

Not sure if this is the right place to post this.

I have a strange problem.
I am using winzip to zip up a folder with a load of images for an image gallery upload form. The problem is that there seems to be an extra file added to the archive that is not visible in the folder to be zipped.

The file is thumbs.db I am aware what the file is and what it is for but what i dont understand is why it is being added to the archive when it s not intially visible in the folder to be zipped. This is screwing with my site because flash is trying to load the thumbs.db

Any help or advice much appreciatted.

Should I Or Shouldnt I? Help From Thoes Who Helped Me :) Admins Reply Aswell :)
hey guys. im thinkin of posting my robot animation with the .fla into flashkit BUT id dont know if i should or if they will accept it because at the end of the day..it is sooo similar (well was ) to neostream.

www.hellborn.com

or should i just post it here. me want to share but is it worth sharing with everyone or with peeps in this forum?

any help..ill do what you guys suggest

Preloading External Mp3, But Shouldnt Play Until Another Scene Is Reached
Hi, newbie here.

im stuck with preloading sounds. i want to preload mp3s into my movie, but the thing is that they shouldnt start playing when completly/partially loaded.

i want the mp3 to get completely loaded in the background(but shouldnt play as yet) .
when some animation is completed and scene 2 is reached the mp3 should start playing.

any clues? i would be very greatful if someone could help me out here.

-britney

Preloading External Mp3, But Shouldnt Play Until Another Scene Is Reached
Hi, newbie here.

im stuck with preloading sounds. i want to preload mp3s into my movie, but the thing is that they shouldnt start playing when completly/partially loaded.

i want the mp3 to get completely loaded in the background(but shouldnt play as yet) .
when some animation is completed and scene 2 is reached the mp3 should start playing.

any clues? i would be very greatful if someone could help me out here.

-britney

Exporting Scenes Separately And/or Importing Scenes From Other Files
does anyone know a way to import a scene from one file to another or a way to export/publish scenes separately (make each scene a different file)

thanks

Sound Across Scenes & Changing Volume In Certain Scenes..
OK, this is kind of hard for me to explain but i'll try...

I want to have a continuous sound loop over various scenes, but I want the volume to increase (i.e. fade up - and i would like it to fade rather than just suddenly turn up) during one of the scenes.. and decrease (i.e. fade out) to 0 during another scene.

On top of that, I'd like the sound loop to stop altogether when they play another audio file on the movie - then the loop resume when they return to scene 1.

Anyone able to help me here - i know it's sounds complicated but I am sure someone knows how i can do this.

Any help would be much appreciated,

thanks,
Chris

Get The _x & _y Of Two Different MC In Two Different Scenes
hi guys,

i've got this problem.

I've got an MC "handpalm" in the scene 'pre'.
And a MC "automatic" in the scene 'auto'.

The MC has a complicated timeline, that creates a interaction with the user (question - answer). The MC itself can be dragged over the stage.
(it can be dropped everywhere; and be used anytime during the interaction).

At one point the movie had to jump to the next scene (this is controlled in the MC - timeline.
But the MC "auto" must be starting at the same spot where the MC "handpalm" in the first scene had been dropped.

I tried to read the _x & _y value in the last frame in the "handpalm"-timeline, and give these values to the MC "auto".
BUT IT DIDN't work !!!

I'm desperate...
Can someone help me !!!

thanx in advance
kgp

Scenes...
Hi

I have a button inside a movie clip within my main movie. When you press the button i want it to go to scene 2..

How do i do this?

Thanks
zerodonor

Scenes
QUESTION.... I have six different scenes in my movie.... how do I link them together??

Using 2 Scenes 1->2->3.....
hi friends& gurus,

i hav created new flash movie in the first scene i hav used almost 10 movieclips ,i gave link to 1 by one ..in the first scene ...when i play the movie its working absolutely perfect...when i getting the problem is ...when i created
2(new)scene ...the movie is blinking and its not playing ...if i give the timeline to scene ...still its not fuctioning...plzzzz help me ...


thanks in advance

ramm
sx_m22@yahoo.com.

Scenes Or Swf's?
What is the most efficient way to organize flow of an entire flash site? with scenes or separate swf's? If the answer is swf's -- how do you pre-load all the different swf's?

Changes In All Scenes
hi.. got a prob with a button in a movie clip..

In mc1 I have a button that changes the color of a movieclip(mc2) on the main stage.
I also have the same mc2 in scene2. Right now i've managed to make mc2 in the stage to change but when i go to scene 2 mc2 is still the original color. I'd like it be that once i've changed it.. it changes in every scene.

i used this on the button:

on (release) {
_root.mc2Color = new Color("_root.mc2");
_root.mc2Color.setRGB(0x663300);

i already tried naming mc2 as a different instance name in scene 2 but it doesnt seem to work.

Using Scenes
How many scenes are a norm in a movie and why do I need another scene? I come from a authoring tool that uses chapters and pages. We are switching to MX!

Scenes
Very simple!
If I link back to the mainpage, how can I skip scene 1 and jump directly to scene 2.
Please!

New Scenes
I have a movie with two scenes. I want a button on the first scene to when clicked move to the second scene. How do I do this?

Know Anything About Scenes?
thanks for having a look. Ive got a serious problem!!!!!


I am working with an mc that is the button control for the main scene. I am attempting to create an else if statement for a Button within the mc that says for eg. If on frame "topview1" then go to frame "topview3".

Here is what my code looks like for the button in the mc that controls the main scene:

on (release) {
_root.gotoAndPlay("topview2");
}


Any Help?

Know Anything About Scenes?
thanks for having a look. Ive got a serious problem!!!!!


I am working with an mc that is the button control for the main scene. I am attempting to create an else if statement for a Button within the mc that says for eg. If on frame "topview1" then go to frame "topview3".

Here is what my code looks like for the button in the mc that controls the main scene:

on (release) {
_root.gotoAndPlay("topview2");
}


Any Help?

Please Help With Scenes
ok, i have 2 scenes , preloader and site

preloader then goes to site. site has an mc called menu.

in scene site, i have 4 pages. in menu i have 4 buttons.

now testing movie the preloader works and goes to site. now when i use the menu it doesnt load the frame 1-4 of site instead it goes to the preloader scene and stops on the frame.

ive tried _root. _level1. _level0. and _parent.

can anyone help?

Using Scenes ?
Does anyone know if I can use the same scene in several different swfs. For example: I have a preloader in the first scene, and I wan't to put it into every external.swf to load in. Or does anyone know a better way to reuse preloaders easily? I'm learning still.
matt

Scenes?
New to Flash, is it a good idea to avoid the use of scenes when constructing a Flash site? I am currently reading Flash MX Saavy and they are using scenes to jump around the project, but I have been told that you should not use scenes???? Any help on this is appreciated.

What are the pros/cons of using scenes? Thanx

Please Help... Something To Do With Scenes
Please help me guys...

I have 3 scenes... a preloader, a introduction and a main.

I did my main before my preloader and introduction.

Can someone explain how can i target my "_root.??" actions to my main and not my preloader?

Please help... thx~

Different Scenes For Different URL's
Hi,
How do you get different scenes from your movie to play when a user clicks on a new URL. Any help would ne great, thanks. C

Help With Scenes Please...
Hi guys....

My first Flash movie, and my preloader is bout to put in Scene 1 with Scene 2 being the larger completed movie....(180k).

My question....
Being a newbie, how do i get the smaller Scene 1 preloader to loop until Scene 2 is ready to go?

Any detailed description would be greatly appreciated.
Tia

(thnx to 'Xurion_Flash_Man' and 'Paraf' for past help)

Scenes
Okay, maybe I'm just tired, but for whatever reason I cannot get this action to work even though I'm running an identical script elsewhere and it works perfectly.

Okay, here goes.

On a button, I have this script:

whois.onRelease = function() {
gotoAndPlay("limee", "limeeloaded");
};

But, it doesn't go anywhere. It should be going to the Limee scene. I'm not sure why as I have this command elsewhere between scenes and it's fine.

I also have this script on the same button, but I don't think it has anything to do with this:

whois.onRollOver = function() {
with (whois_over) {
gotoAndPlay("over");
}
};
whois.onRollOut = function() {
with (whois_over) {
gotoAndPlay("out");
}
};


Is it me? Am I just too tired?

YP

Scenes
basic Flash movie which contains two or more scenes will play back one after another, in the order that they are listed in the Scene inspector. To make your movie more interactive and 'jump around' like I mentioned before you should use actions.

Modify> Frame> Actions (tab)
in mx there is no actuons under frame so how will i fix this becasue when i click on my button which has the action, on release goto scene #.it will also go to other scenes. and i just want it to go to that scene...

How Many Scenes Can I Have?
I have looked in the Flash MX user manual and online help and the Flash MX Bible and I can't find anything that tells me how many scenes I can have in a Flash file. Because of this, I'm assuming I can have an infinite number of scenes, but if someone could clarify this for me I would appreciate it.
I am working on a large cartoon that already has a lot of scenes and I don't want to get surprised down the road when it tells me I can't make any more. Thanks in advance.

Use Of Scenes
should i be worried if i've made an entire site without using multiple frames?

Too Many Scenes?
I'm working on a flash movie that's going to be saved onto cd for presentation purposes.
Is there a problem if I have too many different scenes in just once flash movie.exe (projector)???
I mean, I got around 10 scenes total, and might need to add a few more. I'll probably end up with 20 to 23 different scenes.
Does the loadmovie action work for .exe flash files?
If so, how do I use that? Do I break the movie into smaller ones and then just save them all on the same folder of the cd????

Scenes
I was checking the specs on the endline for the rotary gurder... ah, I'm retarded. I...

Ok, I've created two scenes. The first scene contains my intro and the second scene contains my interface. How do I have the second scene wait until the first scene is complete before playing?

Thank...

Nav And Scenes...
Hey all, I have two questions:

1) I've made an intro and now the next scene the nav should get going. Now the way the intro works is that it builds up the whole layout/nav so when the next scene with links comes the layout stays exactly the same. Now I have the problem that I have an intro consisting of only movie clips, so I cant just duplicate the intro scene and use it for the "next stag" (links) since it will just replay all the movie clips, so is there a fast way I can achieve the exact same layout in scene 2 as I had at the end of scene 1?

2) I want to make a nav, very simple, text link, which brings out a drop down with more links on rollover. Now I have about 10 links and I dont feel like making the nav 10 times. Is there a way I can make one nav system and then just edit the text of the single links? (Besides duplicating one mc, that way I'd still have to make buttons of every link)

Thanks

Scenes
Ok.. well this is my 3rd topic i have posted in this forum...
my first topic was about using scenes and constructing a webpage and i wasn't sure if i should be using scenes..... so i learnt how to load movies inside other movies... for each page instead of using scenes

i had a problem... the pages would overlap the one beneath...
anyway after much frustration i put a message on this forum and.. well yeh there wasn't much i could do....

after much hussle and bussle (i just made that up ) i have come to the conclusion.... why not just use scenes... its much easyer and they don't overlap and it would save me much hassle.... now i am a bit of a n00b to flash.. so you may think i'm crazy

the way i see it is... i make my navigation bar in one scene and then duplicate this about 15 times for each page on the website.... then i can go to each individual scene and add the text and image elements.....

by the way i am using frame labels for my navigation bar.... i dunno if that helps but yeh


so basically what i'm really trying to say is... why not use scenes

Too Many Scenes
Hello,

I have inserted two .jpgs for review if you have time.

I want this vertically sliding menu to work, but it takes a ton of scenes to cover all the possible variations.


Can someone help me with actionscript ideas?


Thanks so much!

Katy

Scenes
I just finished up a web site in Flash MX, there are 6 scenes that I have turned into seperate swf's. I need to know how to load a swf when clicking on a button into the current swf at a specified frame number. It was easy when I had them all in scenes
Please help

Nav To Scenes
I'm a beginner in the world of flash. can somebody help me out with the scripting that I need to add toa button in order to get it to go to the beginning point of a specific scene. The best I have come up with is this:
on(release) {
play()("scene-name", 1);
}

but is just takes me to the next scene not to the specific scene I am trying to go to.

Thanks,
Matt

MC's And Scenes...
Hey,

Iv got a scene called 'Intro'...

I have a MC on the timeline in this scene...and i want this MC to select diff frames on the INTRO scene...

So, say the MC is on frame 2 of the INTRO scene...i want the MC 2 play..then on the last frame of the MC i put some actionscript saying...

gotoandplay 'Intro (scene!) ,3, (frame!;

That prolly aint written rite...but i used the normal mode so i can assure u its written right in my .fla...

The prob is...the MC seems to think that i want it to play frame 3 of the MC!...but i want it to play frame 3 of the INTRO scene...i dont understand...Please help...id give it 6-7/10 for urgency (only cz i sud be sunbathin today!)

Thanx in advance guru's and suchlike...

Bonj,

Mike :|

Help With Scenes
I need some help with using scenes. I tried one of the tutorials on the site, but it didn't help.
Basically all I want to do initially is have my main movie switch to another scene when I press the button.
The primary scene is named "Main". The scene I'm trying to switch to is called "Members".
I tried adding

PHP Code:



on (release) {
    gotoAndStop("Members", 1);
}




to a button, but it does nothing.

Any links to a good tutorial on scenes? Or some other sort of help?

Scenes To MCs...
Hi,

Is there a way to turn each individual scene into a movie clip? Would it simply involve inserting a new movie clip symbol and copy & pasting all frames to the new MC symbol?

Then would I just drag all the MCs to one timeline? Secondly, how would the first MC know to go on and play the second MC? What I mean is, would frame labels or would the gotoAndPlay ("frame label") method work to connect all these MCs, that I'd incorporate from all the different scenes, in one, long timeline???

Can someone please explain this if I am on the verge of doing this successfully??

thanks,

Christine

Using Scenes
I am trying to use a button to jump to another scene. The button is embeded in a movie clip. It is not going to the other scene. Did I make a mistake, or is it not possible to call a scene from a button inside a movie clip.

As a secondary question, how deep should I embed things into symbols (buttons inside movie clips inside movie clips)?

Scenes
Umm...I was just wondering. What exactly are scenes for? Please, i need an elaboration of some sort. thanks.

Scenes
This is probabl a really easy question to answer but anyways how do u change scenes in a movie with a command or the just play()?
And does anyone really use scenes in games or other things...i think so but not sure...thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved