Solved

Change Size of Movable Web Graphics in Flash

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do I convert a CS4 FLA file to CS6? 1 861
Error 2032 in all the browser 6 2,816
Array is not working ( AS2 ) 4 144
Why is this simple, masked Flash animation flickering? 20 185
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
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…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
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.

948 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now