IDE :: Scale 9 On Nested Movieclip?

Jan 28, 2010

I'm trying to build a styled, rounded button movieclip that I can reuse/resize. So inside a movieclip, I have two layers:

Layer 1: A border, which is a shape - a rounded rectangle (or actually the stroke of a rounded-rect).

Layer 2: A nested movieclip which contains a shape for the face of the button. I have added filters to this nested movieclip to give it a beveled-type look - typical rounded button stuff.

So, I've tried applying scale-9 to the parent movieclip: in this case the border scales fine, but the face (with the filters) does not. So, then I tried applying scale-9 to both the parent and the nested face movieclip,I want to be able have the button self contained as a clip which I can pull from the library, drop on the stage, and scale without distortion - and so far, as mentioned,I can't figure out how the get the nested face, the one with the filters applied, to scale appropriately.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Nested Movieclip Global Position (with Scale)

May 18, 2010

Let me try my best to explain this... On the stage I have a master movieclip, for explanation purposes, let's call this movieclip "body". Nested inside of body are several other movieclips (we'll call them anatomy items like: arm, hair, foot, etc) Now let's say we scaled body to 200% (body.scaleX = body.scaleY = 2.0)

When I run localToGlobal on one of the nested anatomy movieclips (e.g. arm), actionscript is returning the x and y values of the initial state, not reflecting the scale of body and how it actually caused the arm's position to shift globally.

View 0 Replies

ActionScript 3.0 :: No Scale For Nested Movieclips

Dec 19, 2009

I really get stuck with problem, that nested movieclips always scaled when parent movieclip is scaled. Is it possible to disable somehow this?

View 4 Replies

ActionScript 3.0 :: No Scale For Nested Movieclips?

Dec 19, 2009

that nested movieclips always scaled when parent movieclip is scaled.

View 2 Replies

ActionScript 3.0 :: Get The Width Or Height Of The Parent Movieclip It Always Showing The Values Of The Small Nested Movieclip

Jun 1, 2010

i am using a movieclip who has two nested movieclips, the problem i am dealing is that when i try to get the width or height of the parent movieclip it always showing the values of the small nested movieclip, when i draw the movieclip it draw perfect but when i read this values shows that error, what can i do?

View 2 Replies

ActionScript 2.0 :: Apply Actions To A MovieClip Nested Inside A Dynamically Attached MovieClip - Remove Clip

Dec 4, 2011

I want to apply actions to a movieClip nested inside a dynamicly attached movieClip, with the attachMovie method; it doesn't works when the movieClip is attached by a button:

1.when the swf movie loads with an attachMovie method the remove_btn clears the window_mc

[Code]....

View 9 Replies

Actionscript 3 :: Cleaning Nested Dynamic MovieClip(Class) In A MovieClip?

Nov 14, 2011

I'm trying to do a cleaning of some classes that is added into a MovieClip, but I can't seems to set the MovieClip(Class) to null. What is the proper way to do it?

private var mcHolder:MovieClip = new MovieClip()[code].................

View 1 Replies

ActionScript 2.0 :: Extending A Movieclip And Calling A Nested Movieclip'

Mar 21, 2007

I'm trying to do somthing like this:

class Timer extends MovieClip
{
// constructor

[code].....

View 3 Replies

ActionScript 3.0 :: Scale Movieclip Using It?

Apr 22, 2010

I am trying to find the code to have my mc scale from 0 to 1 in AS3 on enterFrame.Unfortunately, I have researched and have found every solution but the one I need.

View 8 Replies

ActionScript 3.0 :: Set Swf To Scale Apart From One MovieClip?

Jun 20, 2009

Is there a way to set the swf to scale apart from one MovieClip? I have a bitmap pattern which i dont want to change!

View 1 Replies

ActionScript 3.0 :: Set The Swf To Scale Apart From One MovieClip?

Jun 20, 2009

Is there a way to set the swf to scale apart from one MovieClip? I have a bitmap pattern which i dont want to change.

View 1 Replies

ActionScript 3.0 :: Scale A MovieClip With Tween?

Aug 27, 2008

I tried to scale a MovieClip with the Tween class, using:

xsTween = new
Tween(main_mc,"scaleX",None.easeNone,1,2,2,true);
ysTween = new

[code]......

View 1 Replies

ActionScript 3.0 :: How To Scale And Rotate A Movieclip

Jun 25, 2009

I want when the user click and dragg (Mouse_DOWN) the rotate button, the image will be rotatedAlso, when the user click and drag the scale button, the image will be scaled.Here is my code, but it dosen't work as I need:

btn_rotate.addEventListener(MouseEvent.MOUSE_MOVE, on_btn_rotate_down);
btn_rotate.addEventListener(MouseEvent.MOUSE_UP, on_btn_rotate_up);
function on_btn_rotate_down(e:MouseEvent):void

[code].....

View 2 Replies

Flash :: Changing Y-scale Of A Movieclip?

May 5, 2011

I'm trying to change the y-scale or x-scale of a movieclip. I've tried a few tutorials but they're always talking about "elem._yscale".. However it's no longer supported by AS5.

View 2 Replies

ActionScript 3.0 :: Rotate And Scale A Movieclip?

Jun 26, 2009

I have 2 movieclips (btn_rotate, btn_scale) that are attached to a movieclip (view_mc) that holds an image.

These 2 movieclips are used to rotate and scale the Other movieclip as in the attached picture

I want when the user click and dragg the btn_rotate, btn_scale, the view_mc will be rotated and scaled respectively, in smooth way.

But I can't achieve that.

Here is my code which is wrong:

ActionScript Code:
btn_rotate.addEventListener(MouseEvent.MOUSE_DOWN, on_btn_rotate_down);
btn_rotate.addEventListener(MouseEvent.MOUSE_UP, on_btn_rotate_up);
function on_btn_rotate_down(e:MouseEvent):void

[Code].....

View 1 Replies

ActionScript 3.0 :: Zoom And Scale Movieclip?

Mar 30, 2011

I have created a 3D product view page with a scrub bar that spins the object via 32 images taken of the object all the way around.

I would now like to add a zoom and pan function of some kind as well. Anyone have any suggestions or FLA files with this sort of thing? The 3D spin images are inside a movieclip, so I basically need a "+" and "-" button to scale the images up, and then be able to drag the movieclip around the stage too.

View 3 Replies

ActionScript 3.0 :: MovieClip - Scale Up / Down On Hover

Aug 24, 2011

This is a test I'm doing, where I have movieclips inside my movieclip holder that scale up as I hover over and scale down when I'm no longer hovering. Here is the code for that:

ActionScript Code:
import flash.events.MouseEvent;
import flash.display.MovieClip;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.events.Event;
[Code] .....

This works great. The only problem I'm having is that if you hover over each of the items quick enough, they don't scale back down.

View 3 Replies

Actionscript 3.0 :: Movieclip Scale Affecting Others

Jan 18, 2010

I have x amount of MCs arranged vertically with the distance between each being the same. When I roll over any of them the X & Y scale increases for that particular MC with a tween and on roll out they decrease to the MC's original size. Here comes the sticky bit...how can I maintain the distance between each when the scale of an individual MC is increased/decreased? I have attached a basic swf to show you what I mean. (Only the middle MC is active).

View 6 Replies

ActionScript 2.0 :: Scale Movieclip On Mouseover?

Sep 12, 2008

I'm looking for a solution to scale (gradually scaling) the movieclip on mouseover and return to previous state on mouseout. Any movieclip prototypes available for that

View 2 Replies

ActionScript 2.0 :: Scale Up MovieClip On KeyPress?

Nov 7, 2008

I have a movie clip which I want to scale up on a key press and then when the key press is not pressed I want it to scale back down. simple right? but I cant do it? Once I have that sorted out I would like to take it one stage further by making this work: If a key is pressed and let go the movie clip scale up and then finishes. if the key is pressed and held then the movie clip scales up slowly but once the key is released the clip reverse back to frame one.
The file can be found here : [URL]

View 2 Replies

ActionScript 2.0 :: Get Global Scale Of A Movieclip?

Aug 3, 2010

If I wanted to get the global position of a movieclip inside another movieclip I just have to use localToGlobal. Is there anything similar I can use for _xscale and _yscale?If I have a movieclip which is scaled inside another movieclip which is scaled, how can I tell what the combination of those scales effectively become?

View 5 Replies

ActionScript 2.0 :: Using Scale Function On MovieClip?

Jan 18, 2004

I am using the folowing as on a movie clip to scale it:
[AS]onClipEvent(load){
targe_width = _width;
targe_height = _height;
}onClipEvent(enterFrame){
_width = _width += (targe_width - _width)/3.6
_height = _height += (targe_height - _height)/3.6
}[/AS]

This as works fine but I have 30 clips that I want to apply it too. How can I turn this into a function i.e
[AS]function scale(targe_width, targe_height);
[/AS]
So on each clip I can invoke the function by calling something like
[AS] scale(50, 50); [/AS]

View 1 Replies

ActionScript 3.0 :: Get The Scale Effect Or Z Factor Of A MovieClip?

Apr 14, 2009

I'm using transform.matrix3D and transform.perspectiveProjection.get the scale effect, or z factor of a MovieClip?

var distanceRatio:Number = viewerDistance / (viewerDistance + z);

View 5 Replies

ActionScript 3.0 :: MovieClip Scale On Click Event

May 11, 2010

My_mc is a MovieClip. I want to scale My_mc on click event.

View 8 Replies

Flash :: Resize A Movieclip Without Affecting The Scale?

Nov 11, 2009

I have a movie clip object with a width of 306 and height of 194. I need to change the dimensions of the movie clip and still have the x and y scale set at 100. Currently when I change the movie clip width to 352.8, the x scale increases to 115.3%. I have to have the scale reset to 100% after I've adjusted the movie clip's width. Is there a way to do this in CS3? (this is all in design mode, not run time). Do I need to delete the movie clip and recreate it?

View 2 Replies

ActionScript 2.0 :: Basic Movieclip Scale Effect?

Sep 17, 2009

I am currently working on a website for a studio based in Sydney and have been developing (very basic actionscripting 2.0...) it for the last week or so, and up until now I haven't had a problem.

The site layout is simple and is essential 10 blocks stacked next to each other 5 on the bottom and 5 on the top. Each block is a button that highlights when a user rolls the mouse over.I have created the button animation as a movieClip which is being controlled by a Button symbol with actionscript on the button symbol:

[Code]...

View 0 Replies

ActionScript 3.0 :: How To Change Scale Of Parent MovieClip Only

Oct 18, 2009

In flash if I change scale of parent movieclip, scale of all child inside the parent was changed too. Now I look for the best way to fix child scale while parent scale is changing. I mean the way with minimum listener and cpu usage. In my project I have a map (as parent) and many icons on map (as childs). map has zoom in and zoom out button and pan while dragging.

View 2 Replies

ActionScript 2.0 :: How To Scale MovieClip In Liquid Flash

Jan 19, 2010

I have a movieclip (tester) that I am locating on the stage via the following code:
ActionScript Code:
setStage();
var stageListener:Object = new Object();
Stage.addListener(stageListener);
stageListener.onResize = function() {
setStage();
};
[Code] .....

What I want to have happen is have it start in the defined location but when you drag the browser window open the "tester" movieclip scales up in size but stays centered on those cooridinates - basically as the window gets bigger I want it to stay in the same place but get bigger and be able to control ( by percentage) how big the movie clip grows as the window opens.

View 2 Replies

ActionScript 3.0 :: Trying To Scale A Drag-and-drop Movieclip

Sep 14, 2009

I'm trying to create this drag and drop sequence where the "temperature_small" movie clip is dragged and dropped onto a spot on the stage. I've got the drag and drop part of the ActionScript ready, but the trouble comes when I want to re-size the movieclip to make it smaller, I keep getting the error code:

[Code]...

View 4 Replies

ActionScript 2.0 :: [CS5] External Swf Into Movieclip Scale And Position?

Feb 2, 2011

[URL]while in "portfolio" section, if you resize, the content go to the left.I know WHY it does it : while in a MC, an external movieclip lose his stagesize to compress into the movieclip, if resize, it use the size of ALL the content in the SWF to resize. the external fla stage is 1600 x 680, but the content goes out of the stage to the right to make an 1760 x 680 size.to make it LOAD at the right place and right size, i've got a layer with a MC (externalStageSize) in the external SWF that is the size of the Stage, while on frame 1, only this MC(externalStageSize) is active, so when loaded, the _level0 flash can position and scale the external SWF.

BUT, while active content is on, any live resize does not go well..I tried to "connect" the scaling with (externalStageSize) BUT once loaded the size does not change.I wanted to use the math : "new width" = ("allcontent".width / externalStageSize._width)/Stage.width but _level0.ContentMC.externalStageSize._width return the value it have in the flash... like, even if rescale, it will say "1600" is there a way to counter this ? before you ask : AS3 was out of the question because the person who will maintain the site is not that advanced.

some script used when resize :
ContenuMC : the movieclip in witch external swf is loaded

Code:
function setContent() {
// content dimensions
ContenuMC._width = Stage.width;

[code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved