Solved

Dynamic Movie Clips

Posted on 2003-11-19
1
272 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
[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
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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

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 how to load their YouTube profile onto Flash Media Live Encoder.
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.

630 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