timelines

This is a discussion on "timelines" within the Flash & Multimedia Forum section. This forum, and the thread "timelines are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 5th, 2005, 10:00
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
timelines

another actionscript problem....

how can i tell it to go to frame 2 of the MAIN timeline from within a movie clip that is on frame 1 of the main timeline?

i've tried:
Code: Select all
gotoAndPlay("main",2)
where main is what i've named the scene.

i've tried:
Code: Select all
_root.gotoAndPlay(2)
and
Code: Select all
_parent.gotoAndPlay(2)
nothing works! it just repeats frame 1

:S

can ne1 help?

thanx

  #2 (permalink)  
Old Apr 5th, 2005, 10:20
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
If you simply have this Actionscript inside a movieclip then _root.gotoAndPlay(2) should work. I've just tested it and it *does* work.

If you're having problems with it for whatever reason, you could try
Code: Select all
telltarget("_root") {
  gotoAndPlay(2);
}
If instead you are using loadmovie to import a movie into that movieclip, then you may need to refer to the level of the _root you want to get to, as in this context, _root will be the root of the imported movie and not the main movie that imported it!
  #3 (permalink)  
Old Apr 5th, 2005, 11:10
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
still doesnt work!

all it is is actionscript on the last frame of a movie that is on the first frame of the main timeline. whats going wrong :S!!!
  #4 (permalink)  
Old Apr 5th, 2005, 13:38
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
What is happening instead?

Are you sure that the code is even running?
  #5 (permalink)  
Old Apr 5th, 2005, 15:50
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
how can i test if the code is running?
  #6 (permalink)  
Old Apr 5th, 2005, 16:07
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
use
Code: Select all
trace("here is some text");
  #7 (permalink)  
Old Apr 5th, 2005, 16:14
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
ok - the script is actually getting executed, but it just takes it back to the 2nd frame of the movie i'm in....
  #8 (permalink)  
Old Apr 6th, 2005, 07:38
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
would it help if i uploaded my fla? ifs for mx pro
  #9 (permalink)  
Old Apr 6th, 2005, 11:49
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Go ahead as I'm stumped!
  #10 (permalink)  
Old Apr 6th, 2005, 19:59
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
it doesnt matter now - i re-did it in a different fla file and it worked fine
Closed Thread

Tags
timelines

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 16:55.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43