Solved

Change Size of Movable Web Graphics in Flash

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

776 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