Solved

Moveable Web Graphics

Posted on 2006-07-19
6
196 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to record live broadcast.
Suggested Courses

623 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