Solved

Moveable Web Graphics

Posted on 2006-07-19
6
195 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
Independent Software Vendors: 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!

 

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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Stop Ads in Browser Google Chrome 3 557
Google Chrome - Where is "Enable Resource Tracking" 2 12,645
Action Script coding 1 192
can not get an online video to playback in Google Chrome 4 68
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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 set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

734 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