Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
ADOBE FLASH: Adobe Flash ForumAdobe Flash TutorialsAdobe Flash Video TutorialsWeb Streaming ForumAdobe Flash

Re: Scrolling Thumbnail Panel AS3

Cow Forums : Adobe Flash
VIEW POSTS   •   ADD A NEW POST   •   SEARCH   •   CHANGE FORUM
Respond to this post   •   Return to posts index   •   Read entire thread


Re: Scrolling Thumbnail Panel AS3
by Harrison Willett on Oct 6, 2008 at 12:45:26 am

panel_mc.addEventListener(MouseEvent.ROLL_OVER, panelOver);

function panelOver(event:MouseEvent):void
{
stage.addEventListener(MouseEvent.MOUSE_MOVE, panelMover);

function panelMover(event:MouseEvent):void
{
if(event.stageY > 171 && event.stageY < 711 && event.stageX > 61 && event.stageX < 248)
{
panel_mc.y -=(event.stageY - 441)/ 42;
}
if(panel_mc.y >= 191.3)
{
panel_mc.y = 191.3
}
if(panel_mc.y <= -676)
{
panel_mc.y = -676
}
}
}



Keep in mind I am using the actual position on the stage instead of the get bounds..... I did this as i was first learning as3

I bought a great book from lynda.com called ActionScript 3.0 for flash CS3 Professional check it out it helped me understand enough to make that scroll bar on my own :)




Respond to this post   •   Return to posts index   •   Read entire thread


Current Message Thread:


Related Threads:
Flash tutorial _Scrolling thumbnail panel by Lee B   |   Problems with the scrolling thumbnail panel from the tutorial   |   scrolling thumbnail panel/xml text box/video player   |   Tooltips in scrolling thumbnail panel possible?   |   Stop or pause scrolling thumbnail panel tutorial



Note: If you are a registered user please click here to login before posting.

Your post will not be accepted if your name and email address are not registered in our database. Click here if you do not have an account.

Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message   Entire Thread   None  

Message:

Add Bold Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd Italic Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd Underline Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd Image Link Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this buttonAdd URL Link Tag To Message (JavaScript required)

To put any item inside this tag:

1. Highlight the desired text
2.Click this button

Note: The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key. Read more...



Add your message signature


 


Note: By clicking "Post Direct" button above, you are agreeing to the Creative Cow's Code of Conduct.



FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]