Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Scroll And Pan The Screen Via Mouse In Flash


3 replies to this topic

#1 keego

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 161 posts
  • Gender:Female
  • Location:Melbourne,Australia

Posted 06 June 2008 - 08:33 AM

Hi
Need help for a project , hope u guys could help out and teach me a little something.
I saw some flash that if you click on a icon or if u point ur mouse to the left of the screen it will keep going left, and if right it'll keep scrolling right, as if ur checking out a room
Or something like this website.. www.mcdonalds.com.au , and choose broadband
if you see on that site, when user clicks on the icon to the right. the rest of the icons would kinda shift.. does anyone know how to do that or know if there is anywhere out there a tutorial to do that? if u do.. it'll be a great help for me

please let me know
cheers

#2 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 31 July 2008 - 12:10 PM

Multiple Movie Clip moving at a time in flash
Scroll And Pan The Screen Via Mouse In Flash

Hi,

I want know the multiple movieClips are moving at time in flash..

Like peoples are moving the road...

(or)

I saw one shopping flash game, in that game the mens and girls are move automatically in shop..

Gamebrew.Com/game/shopping-mania/play


If anyone know how to do that or know if there is anywhere out there a tutorial to do that? if you do.. It'll be a great help for me

Please let me know
Cheers


-reply by Ganapathi

#3 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 11 March 2009 - 12:04 PM

kego each of the elements you want to move are diferent movieclips symbols with different instance name put for example you have 4 elements  on stage draw 4 circles and convert them on symbol movieclips, then call them as instance name cir1, cir2, cir3 and cir4.

I'm making this exercise in AS 2.0 but I think the translation to AS 3.0 Is easy.

we need to tell to ation script the dimension of our workspace X and Y coordinatesand use them against the mouse position X and Y...

This.OnEnterFrame = function(){   //If you want to hide the cursor, uncomment the next line   //Mouse.Hide();   //Move against statement   cursorX = Stage.Width - _xmouse;   cursorY = Stage.Height - _ymouse;   cir1._x = (cursorX * .20 + .1);   cir1._y = (cursorY * .15 + 200);   cir2._x = (cursorX * .15 + 450);   cir2._y = (cursorY * .15 + 100);   cir3._x = (cursorX * .01 + 350);   cir3._y = (cursorY * .01 + 120);   cir4._x = (cursorX * .05 + 200);}

 

That should do, Just play around with the values for cursorX and cursorY



#4 iGuest

    Hail Caesar!

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,876 posts
  • Interests:Trap17 Free Web Hosting, No Ads

Posted 18 February 2010 - 02:50 PM

Animation via scriptScroll And Pan The Screen Via Mouse In Flash

hai,

  I need to create Drag and Drop game using flash actionscript 2.0.  I hv created the game. Bt now I want to add animation to the button.  If  I drag the button and drop the wrong position, then it should return its actual position with motion tweening effect.

 please help me...!

-reply by Thirupathirajan




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users