Solved

Change Size of Movable Web Graphics in Flash

Posted on 2006-10-31
5
140 Views
Last Modified: 2010-04-03
Dear All,

This is the file I am working with http://www.andymellor.com/flash/Celebrity%20Photofit%20(Male).swf

Basically what I am trying to do is set up a flash document which allows face parts to be dragged and dropped onto a face base. This is for an English lesson at a comprehensive school in Manchester, UK.

Things seem to be going reasonably ok with the creation of this file and I have managed to sort out creating the movable face parts.

What I would like to know is:

Is it possible to have the face parts (eg The Eyes) quite small, and then when they are clicked on and dragged they resize to the correct size. The reason for this is that the flash document is becoming very crowded and I would like to add more face parts.

I apologise if I am not being very clear but I hope I am making some sense.

Any help would be greatly appreciated.

andymellor
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
  • 3
  • 2
5 Comments
 
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 17841503
Yes,
you can do it.

just keep all MovieClip/objects on stage at 40%-50% size (or whatever size you want)

just add following line on code on "onPress" of each button

<movieClip instancename>._xscale = <movieClip instancename>._yscale = 100;

-Aneesh
0
 

Author Comment

by:andymellor
ID: 17841825
Hi Aneesh,

This is the actionscript I am using for each of my movie clips

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

Could you give me a little more help on where I need to insert the script that you gave me.

Cheers
0
 
LVL 34

Accepted Solution

by:
Aneesh Chopra earned 500 total points
ID: 17841870
resize elements on stage as per ur requirements,
and here is the updated code..

-----------
on(press){
this._xscale = this._yscale = 100;
startDrag(this,false)
}
on(release){
stopDrag();
}
----------

--Aneesh
0
 
LVL 34

Expert Comment

by:Aneesh Chopra
ID: 17843524
Hi,

I hope you have got solution to your problem
if yes, please accept my reply
0
 

Author Comment

by:andymellor
ID: 17849012
Hi Aneesh,

Many thanks for your help - That works great! Answer Accepted!

andymellor
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Array is not working ( AS2 ) 4 169
Adobe Flash Player ActionScript error 6 73
PDF: Display my cards game? 8 155
type of website 13 50
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
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.
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.

737 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