?
Solved

Dynamic Movie Clips

Posted on 2003-11-19
1
Medium Priority
?
273 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 1000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

719 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