Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Site Design / March 2004



Tip: Looking for answers? Try searching our database.

linking scenes with text?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
xade - 05 Mar 2004 05:45 GMT
is it possible to link scenes just using text? I was going to use << and >> in
the place of an actual button. Anyone know how to do it easily? I tried
converting the >>s into symbols but I can't get it to load the second scene
with the action script

goScene_btn.onRelease = function (){
  gotoAndStop("Scene 2", 1);
};

any help will be greatly appreciated.
nardove - 05 Mar 2004 12:11 GMT
try this
place a button in Scene 1 with this action

on(release){
 gotoAndStop("frame_Scene_2");
}

And name the "first frame" in Scene 2 -> frame_Scene_2
xade - 05 Mar 2004 18:32 GMT
ok, figured out a little bit more stuff with Flash MX s now I can make the text
a button (by converting to a symbol) but when I test the movie, this comes up
in the error message thing.

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Statement must appear
within on handler
     goScene_btn.onRelease = function (){

**Error** Scene=Scene 2, layer=Layer 1, frame=1:Line 2: Statement must appear
within on handler
     goScene_btn.onRelease = function (){

unsure of how to name frames (can only seem to name layers for some reason) so
I wasn't able to get your way working.
exor? - 05 Mar 2004 20:59 GMT
here is how it work

gotoAndPlay("sceneName", "frame");

example

gotoAndPlay("nextFrame", 1);
xade - 05 Mar 2004 23:04 GMT
tried it your way, at one point I took out stop(); commands out of the action
layer (what I learned from the Macromedia Tutorials in Flash MX 2004) and it
would flip scene 1 and scene 2 back and forth in a loop. Put stop(); back in
and my button has the link cursor on it, but when you click it it does nothing.

still getting

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Statement must appear
within on handler
     goScene_btn.onRelease = function (){

**Error** Scene=Scene 2, layer=Layer 1, frame=1:Line 2: Statement must appear
within on handler
     goScene_btn.onRelease = function (){

sorry about the trouble
xade - 05 Mar 2004 23:54 GMT
ok, got the links to work but here is the new issue with it, my two buttons are
<< Back and Forward >>. Well, in order for it to activate the Back link, you
have to click the lower part of the letter 'c'. For the Forward link, you have
to click the space right after the final '>'. How do I expand it to where you
can click anywhere within the button and it works?
Laiverd.COM - 07 Mar 2004 21:49 GMT
Check manaul on creating buttons. You're interested in the hitstate part.

John

Signature

----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.