Solved

Dynamic Movie Clips

Posted on 2003-11-19
1
265 Views
Last Modified: 2010-04-03
What I am trying to achieve is to get my button to change the hieght and width, then change the _x and _y position without having to use motion tweens.
I can't put any onClipEvent scripts because it doesn't work with buttons. I have also tried putting my button into a movie clip, but my code isn't working and the on (rollOver) scripts don't work.
If any one can post an example code, post a tutorial, fla example etc I would greatly appriciate it.

Cheers

-OBCT
0
Comment
Question by:OBCT
1 Comment
 
LVL 1

Accepted Solution

by:
text_problems earned 500 total points
ID: 9785961
its very simple.

create a mc to use as your button. then:

_root.your_mc.onRelease = function(){
_root.your_mc._x = wherever;
_root.your_mc._y = wherever;
_root.your_mc._height = whatever;
_root.your_mc._width = whatever;
}

if you want to reuse the code you should probably write a proto or function to resize and move the mc.
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
flash cs6 4 344
Streaming to Flash Media Server with ffmpeg, crashes on start 3 232
Google Chrome Blank White Screens 13 294
how do I install adobe flash player on my ipad Air? 4 41
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…
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 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.

896 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

12 Experts available now in Live!

Get 1:1 Help Now