Solved

Change Size of Movable Web Graphics in Flash

Posted on 2006-10-31
5
141 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

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 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.

688 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