Solved

Moveable Web Graphics

Posted on 2006-07-19
6
191 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

758 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now