Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

Moveable Web Graphics

I am relatively new to the web design game and still only learning really so I apologise now if some of the questions I ask are a bit "Duh......!". Any way, here goes:

I am trying to develop a web activity that will allow dragging and dropping of graphics. The whole idea is a bit like a jigsaw puzzle for an English activity within the school where I work. We want to get a number of pictures of different eyes / noses / mouths / hair etc so we can drag them onto a face base.

I am a beginner with flash - Is this the best thing to use? I am open to suggestions.

Many thanks
0
andymellor
Asked:
andymellor
  • 4
  • 2
1 Solution
 
cow_monkey111Commented:
Hello andymellor,
The drag and drop function is a easy but fun part of flash,

All you have to do is in the movieclip that has your webGraphic, just put this code in the Actions panel

on(press){
startDrag(this,true)
}
on(release){
stopDrag();
}

Easy As That

HTH,
Cmonkey
0
 
cow_monkey111Commented:
this works with multiple clips :)
0
 
cow_monkey111Commented:
Oh and one more thing,
Put your pictures in the very center of your movieClip,
it makes it look nicer
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
andymellorAuthor Commented:
Maybe it's just me being simple, but when I try that I get this error. - Can you help me out at all?

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Mouse events are permitted only for button instances
     on(press){

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 4: Mouse events are permitted only for button instances
     on(release){

Total ActionScript Errors: 2        Reported Errors: 2

Thanks

Andy Mellor
0
 
cow_monkey111Commented:
Yep,

You need to put that code in your MovieClips, You must of put it in frame one. You can tell because there is an A in the box of the frame in the timeline. Just copy that code and paste it into each one of your MovieClips.

HTH,
CMonkey
0
 
andymellorAuthor Commented:
CMonkey you are the Don! Many thanks for your help, you really know your stuff!
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now