Solved

Moveable Web Graphics

Posted on 2006-07-19
6
193 Views
Last Modified: 2010-04-03
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
Comment
Question by:andymellor
  • 4
  • 2
6 Comments
 
LVL 4

Expert Comment

by:cow_monkey111
ID: 17138803
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
 
LVL 4

Expert Comment

by:cow_monkey111
ID: 17138811
this works with multiple clips :)
0
 
LVL 4

Expert Comment

by:cow_monkey111
ID: 17138851
Oh and one more thing,
Put your pictures in the very center of your movieClip,
it makes it look nicer
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

Author Comment

by:andymellor
ID: 17145957
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
 
LVL 4

Accepted Solution

by:
cow_monkey111 earned 500 total points
ID: 17149264
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
 

Author Comment

by:andymellor
ID: 17152821
CMonkey you are the Don! Many thanks for your help, you really know your stuff!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SWF won't scale? 4 523
video live streaming 1 122
Is it possible to insert an Adobe Flash video in a .net  web page ? 2 101
Adobe Flash player - Microsoft Edge 9 167
I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question