Solved

Dynamic Movie Clips

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

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 last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
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 how to record live broadcast.
Suggested Courses

738 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