Solved

Change Size of Movable Web Graphics in Flash

Posted on 2006-10-31
5
136 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Hi,

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

Author Comment

by:andymellor
Comment Utility
Hi Aneesh,

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

andymellor
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.

762 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

10 Experts available now in Live!

Get 1:1 Help Now