A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Click-drag-Image in SWF

  1. #1
    Senior Member
    Join Date
    Jul 2003
    Posts
    166

    Click-drag-Image in SWF

    Greetings,

    Does anyone know of a tutorial or know how to load, say a 600 x 600 image into a 200 x 200 SWF and be able to click and drag to move the image around to see other parts? How about a scaling feature so the image could be reduced or enlarged?

  2. #2
    Maya * ActionScript Addict DangerAhead's Avatar
    Join Date
    Jun 2000
    Location
    San Francisco
    Posts
    299
    yep. there's a lot of those in the MOVIES section of this site. do a search there.
    Geordie Martinez
    www.citizenparanoid.com | email

  3. #3
    Senior Member
    Join Date
    Jul 2003
    Posts
    166
    Thanks, I'll do that.

  4. #4
    Junior Member
    Join Date
    Aug 2005
    Posts
    27

    Click drag MC

    Just use _xscale and _yscale to scale the image.............To drag the image around you need to create an empty movie clip and load the image into that. On the empty movie clip you should use something like this
    on (Press){
    startDrag(this, false, x1,y1, x2, y2);//replace variables with your coordinates
    }

    Try using the MoviceClipLoader to load the image, it should give you a little more control.........Good Luck.

  5. #5
    Senior Member
    Join Date
    Jul 2003
    Posts
    166
    Eureka! I found something but I need help in adapting it. Here is a link to what my goal is:

    Home Shopping Network Example When you get there, click on the photo of the necklace and check out the window that opens.


    I haven't had much luck in the "MOVIES" section, mostly I'm stumbiling trying to find it.

    Help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center