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 September 4th, 2003, 11:53 AM
gwtomek gwtomek is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 1 gwtomek User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
'intersect' command?

I'm in need of some help.
I'm trying to finish up some functions on a scrolling interactive timeline. I have the basic functions down, but what I need to happen is:

1. ...the thumb sprite to 'intersect' with another object in the thumbtrack when it (thumb) is dragged AND when an arrow button is clicked to move the thumb.

-Both of these would key a object to appear or jump to a frame label.


I can't find the actionscript for this 'intersect' action? I don't know the command word for it.
If someone can at east tell me the command word for this, it would be great

anything will help,
GT


I've included a link to the file I'm working on:
URL

Reply With Quote
  #2  
Old September 8th, 2003, 11:31 AM
bret bret is offline
flash junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: CO, USA
Posts: 172 bret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 38 sec
Reputation Power: 6
Send a message via Yahoo to bret
i believe what you are looking for is the hitTest method.

Code:
if(square_mc.hitTest(_root._xmouse,_root._ymouse,true)){
    //do something
}


this will check to see if the square_mc intersects the mouse. the "true" at the end tells flash to use the bounding box of the target or the hit area (Defined be the actual shape of the object).

hitTest can also just return if two objects are intersecting:

Code:
if(square_mc.hitTest(circle_mc)){
     //do something
}


this is all going off of instance names of movieclips

-bret

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > 'intersect' command?


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 6 hosted by Hostway