SunQuest
           Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 21st, 2003, 08:13 AM
Heretic Heretic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Austria
Posts: 4 Heretic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Heretic
Accessing frames in Symbols

Hello everyone

I want to access parts of a movie via gotoAndPlay. This seems to be a problem, because the frame to be jumped to is in a movie (as symbol).
In the flash help I found that it is possible to jump to frames in other scenes, is it also possible to jump to frames in movies as symbols?

just for information, I want to create a full animated button

so long, Heretic

Reply With Quote
  #2  
Old June 21st, 2003, 01:20 PM
marshdabeachy marshdabeachy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 14 marshdabeachy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to marshdabeachy
If the symbol is a movie clip, you can use myMC.gotoAndPlay(1); where myMC is the name of the movie clip and 1 is the frame you want it to go to. Buttons cannot be told to play, nor can Graphics.

If you're using MX, movie clips can be assigned button properties, such as onRelease, onRollOver, etc... That's probably the best way to go.

Reply With Quote
  #3  
Old June 21st, 2003, 02:29 PM
Heretic Heretic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Austria
Posts: 4 Heretic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Heretic
thx for your reply, but it doesn't work anyway, maybe I've done something essential wrong.

Now I've made a new flash movie to try it out. it contains nothing but a movie clip as a symbol. From Frame 2 to 25 there's a shape tween, from frame 26 to 51 there's the same shape tween, just the other way round. at Frame 1, 25 und 51 there are stop commands. I've inserted the symbol into the main movie and added some actionscript code:
Quote:
on(rollOver) {
test.gotoAndPlay(26);
}

test is the name of the movie clip symbol. I've also tried it with _root.test.gotaAndPlay(2);
Since this does'nt work, I'vr tested the RollOver with a getURL (what I can handle) and it worked. So my mistake must be somewhere around the gotoAndPlay function.
Can You help me?

Reply With Quote
  #4  
Old June 21st, 2003, 03:41 PM
marshdabeachy marshdabeachy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 14 marshdabeachy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to marshdabeachy
Did you give the movie clip an instance name? The instance name isn't necessarily the same thing as the library name. If you don't give it an instance name, Flash assigns it a generic one like "symbol36" or something.

ActionScript ALWAYS references the instance name, not the library name.

Reply With Quote
  #5  
Old June 21st, 2003, 04:16 PM
Heretic Heretic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Austria
Posts: 4 Heretic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Heretic
hey, thank you, it works
now I understand flash a little better.

PS: I accessed the movie with '_root.test.gotoAndPlay(2)'. However, without the '_root.' it didn't work.

Reply With Quote
  #6  
Old June 21st, 2003, 09:53 PM
marshdabeachy marshdabeachy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 14 marshdabeachy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to marshdabeachy
If just using test without _root didn't work, it's because you weren't calling it from the main timeline, which is what _root refers to.

Just saying test is the same thing as saying this.test, if you're calling it directly off a timeline.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Accessing frames in Symbols


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway