The Mother Board

Motherboards.org forums. Free tech support, motherboard ID, and more.
It is currently Tue Sep 18, 2018 6:02 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Action Script question
PostPosted: Sat Aug 28, 2004 12:24 pm 
Offline
Green Belt
Green Belt

Joined: Thu Aug 07, 2003 2:06 am
Posts: 249
Location: Novato, Ca
how do I make it so when one mc runs into another the scene will change to the next one??

heres my code that doesn't seem to be working

onClipEvent (enterFrame) {
if (this.hitTest(_root.characterf))
function() {nextScene();
}

_________________
P4 3.0 Ghz
Abit IC7-Max3
40 GB Western Digital
256MB Radeon 9800 Pro
SB Audigy 24 bit
1 Gig Corsair XMS LL Pc3200 DDR
Antec SOHO File Server case 1080 AMD /430 PS
*SELLING* *SEE SALE FORUM*


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Aug 28, 2004 1:51 pm 
Offline
Green Belt
Green Belt

Joined: Thu Aug 07, 2003 2:06 am
Posts: 249
Location: Novato, Ca
i think ive found the problem. The action script seems to be trying to tell the movie clip to go to the next scene inside of itself rather then the actual next scene in the entire movie.


I found this out becuase when I run one movie clip into the other, the one that contains the code stops.

this is the code:

onClipEvent (enterFrame) {
if (this.hitTest(_root.characterf)){
nextScene();
}
}

Does someone know how to fix this?

_________________
P4 3.0 Ghz
Abit IC7-Max3
40 GB Western Digital
256MB Radeon 9800 Pro
SB Audigy 24 bit
1 Gig Corsair XMS LL Pc3200 DDR
Antec SOHO File Server case 1080 AMD /430 PS
*SELLING* *SEE SALE FORUM*


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Aug 29, 2004 2:49 pm 
Offline
Black Belt
Black Belt

Joined: Tue Oct 22, 2002 9:07 pm
Posts: 584
Location: Melbourne, Australia
This ought to solve your problem. You can also replace _root with _parent

onClipEvent (enterFrame) {
if (this.hitTest(_root.characterf)){
_root.nextScene();
}
}

_________________
"I disapprove of what you say, but I will defend to the death your right to say it"

-Voltaire


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group