Flash :: Disable Of Resize MovieClip Without Resizing Of Its Children?
Mar 6, 2011
I creating a flash gallery(using flash first time) and found one problem. When i resize movieclip(container) it resize its children, so i could't resize them manualy to dimensions what i need. How i can disable resizing of children of movieclip?
View 4 Replies
Similar Posts:
Nov 14, 2010
What's the best way of resizing parent movieclip without affecting the children? I have a container movieclip that resizes depending on the stage, and when I add another movieclips to it they also resize, but I want them to keep the original size,
View 3 Replies
Nov 16, 2010
Is it possible to resize a movieclip without stretching the contents of the movieclip??? I'm having the most frustrating time trying to do this.
View 5 Replies
Jul 29, 2009
I have Buttons which I have rotated vertically within a Canvas, that is working fine. The problem occurs, when the user resizes the window to a small size a vertical scroll bar appears, I would rather have each button squashed upto a smaller size.
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="40" maxWidth="40" xmlns:myComponents="myComponents.*"
horizontalScrollPolicy="off"
[code].....
View 2 Replies
Nov 14, 2010
What's the best way of resizing parent movieclip without affecting the children?I have a container movieclip that resizes depending on the stage, and when I add another movieclips to it they also resize, but I want them to keep the original size
View 1 Replies
Apr 26, 2007
resizing movieclip using action script. I doing a resize on the width of the moviclip. What i got is the movieclip resize on center, but i want is on left. the code i use as below:
MovieClip.prototype.resizeMe = function(w) {
var speed = 3;
this.onEnterFrame = function() {[code]......
View 2 Replies
Apr 30, 2011
i got a s:List with a dataprovider and a custom itemrenderer. now my itemrenderer has a button within. Every time i choose a item from the list, i get focus on the item, but clicking the button within the item only causes the s:List to select the hole item and wont let me press the button within the item.
is there any solution to disable the "list" selection functionallity but keeping the items within the list enabled / clickable?
as requested, here the code (relevant parts)
CategoryTree.mxml
<s:List id="data1" name="D1" x="-2000" height="100%" minWidth="600"
width="{this.width}" dataProvider="{this.childrenResult1.lastResult}"
itemRenderer="gui.components.Category">
[Code]......
View 2 Replies
Oct 19, 2009
Im trying to make a website in AS3 with a dynamic background-video that fills all the page in my browser and keeps the proportions even if you are resizing the browser like this:[url].....its almost working but i dont know what to do to force to keep the proportions of my movieClip and at the same, to fill 100% of my page .This is my code...I have a movieClip with the instance name: "bg".
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;[code]......
View 1 Replies
Aug 19, 2011
I am using Flash CS5 and when I exprt my file to swf I notied that after exporting and playing it in Flash player (on my desktop) I can change the size of the window and the scene itself eventthough I have set the width and height dimension to e.g. 468x60.
So, the bad thing is that if I ahve some objects that are moving from this area and in banner I do not see them in flash player I can see all which is not good.
Is there a setting in export option to disable this behavior or some actionscript, so my client will not be able see the "mess-behind-the-scenes" :)?
I can probably remove some objects using actionscript, however if I have looping background image it is necessary to be bigger than 468px In my case 3x.
View 2 Replies
Nov 29, 2009
I have a Bitmap. Let's say it's 100x100 in size. I would like to display that bitmap on a Sprite that for the sake of this example is 100x50. Since the height of the bitmap is double than the height of the sprite - I would have liked the bitmap to be cropped (and to later implement a "scroll-down" mechanism) - HOWEVER, apparently:
1. The size of an "empty" sprite is defined by the size of its first children(s) - once I addChild the bitmap into the sprite - the sprite becomes 100x100 (If I try to define the size of the sprite to 100x50 before adding the child, and then adding it - then nothing is displayed).
2. If I then try to resize the sprite by modifying its Height property - the bitmap get's "scaled-down", or rather "squashed-in" to fit the new size.I'd like the bitmap to retain its original size (and be cropped at the bottom).Can it be done (without copyPixeling to a different bitmap etc.), and if so how?
btw:(3) If after all that I try to scale the bitmap back up (by changing scaleY) - then the sprite itself is again gets scaled and resized with it...
View 1 Replies
Jan 15, 2010
Is there any way to disable the resizing of swf file??
View 1 Replies
Jan 11, 2010
I want to have a rollover effect of a movieclip (mo1) inside a movieclip (mo) of another movieclip (popup1).Is it possible to do that? I try calling it using this code in the frame 1 of my flash, am i doing wrongly?
Code:
popup1.mo.mo1.onRollOver = function() {
popup1.mo.mo1.gotoAndStop(2);
[code]......
View 9 Replies
Aug 13, 2009
I have a box I made, in the box I place textfields, When I resize the box, the textfields also resize.
Is there anyway for me to disable item resizing within the box?
View 1 Replies
Dec 5, 2009
I'm new with actionscript and I have a basic question:
I have a Sprite and an image added to this sprite as a child of it.
Whenever I'm changing the size of the parent Sprite, the image is stretched with the Sprite.
Is there any way to disable this automatic scaling of the children?
View 2 Replies
Jan 17, 2012
I have a window witch is resizing on creationcomplete phase according user preference. This part woks well. But inside this window a s:Group (maincontainer2) exists and even if width and height is in percent, the s:Group size is bigger that the new window measure.
<?xml version="1.0" encoding="utf-8"?>
<windowSkin:wCustomWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[Code].....
View 1 Replies
Apr 16, 2008
I have a listener that calls a function which sets up everything on the stage exactly where and how I want it, works great. However..I also use the same function for my initial setup, and it's not triggered until/unless someone resizes the window, and as a result, everything is a mess until the window is resized.I could just duplicate the relevant bits in a separate function, but that seems needlessly redundant.Is there a way to trigger the function upon the initial load without waiting for a resize event?I would just call the function directly at the end of the script, but it expects a parameter that I can't figure out how to pass it.[code]
View 3 Replies
Feb 12, 2010
How do you resize a sprite without resizing the contents? For example the script below create a sprite, attaches it to the root, creates a button, attaches the button to the new sprite then resizes the sprite. but it scales the button when I try to resize?[code]...
View 9 Replies
Jan 29, 2009
Imagine I have a movie clip on the main timeline that has text in it. If I use the free transform tool on this clip, it resizes the movie and the text within.
However, if I resize the clip using AS2 e.g. clip._height = x; then the clip is resized but the text isn't.
Is there an easy way of achieving the effect that the transform tool has using AScript or do I have to set all the text params separately when I resize the movie
View 1 Replies
Sep 10, 2011
I have two movieclips, one loads an image, I resize that mc and add it in a bigger movieclip which has to be resized too. My problem is that that the inner movieclip doesn't resize the way I want although I've tried many variants of the sequence of the commands. I've also taken into account something that I read that an empty mc resizes strangely but it didn't change anything.
that's the code:
loader_mc.x=0;
loader_mc.y=0;
cont_mc.x=1440;
[Code]....
red mc is the outer one but the sizes of the inner are not right it should be about one third of the outer but it's about two thirds. same with the height.
All I want is to be able to resize them independenlty. with the outter beeing bigger than the inner
View 1 Replies
Dec 23, 2009
I have a rectangular movieClip named 'container'. In this movieclip, a function generates some number of squares.My problem is that; for example, if I generate 12x12 squares with each width/height of 40; it resizes the container to width/height of 480. If I set the width and the height of the container movieClip to a lower value; then the squares become smaller.I have been struggling for some time on this problem. I tried setting the ScaleMode of container and squares to various values but it did not work.How can I overcome this illogical (for me at least) problem? How can I prevent children from resizing their parent OR how can i prevent parent downsizing the children?
View 2 Replies
May 19, 2010
Is there a simple way to force all the child components of a Flex app to redraw when that app is resized?
For instance, I have a HDividedBox with percentHeight and percentWidth set to 100. On the left hand side of the divided box is a data grid and on the right side is a number of text inputs. The divided box is not added to the view stack until after the user logs on.
If I resize the app before the HDividedBox is added then the box takes up the full size of the app, whatever that may be. However if i resize the app after the box appears then the box retains the same dimensions it does when it was first added.
I would have expected that on the resize of the app then all the children would redraw (the application component itself appears to).
View 1 Replies
Feb 23, 2009
I would like to change the width of the rollover-resizing of this menu to 400 px,
ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;[code]...
View 0 Replies
Feb 11, 2010
Is there an easy way to make a parent container (eg Group) resize when it's children resize?
Below is a little example app. When I put the 200x200 'food' in the 'stomach' the stomach & it's containing 100x100 'body' should resize to contain the food.
[URL]
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[Code]....
View 2 Replies
Oct 26, 2003
the allow scale only disables scaling of the content..can we actually disallow scaling of the window that plays the projector file ?I want it at a fixed window of 800x600 projector...and set it to the centre...
View 3 Replies
Oct 26, 2003
Well..the allow scale only disables scaling of the content..can we actually disallow scaling of the window that plays the projector file ?I want it at a fixed window of 800x600 projector...
View 5 Replies
Nov 9, 2010
How can I reliably iterate through a MovieClip for every child?
I'm working on a game and a great way to lay out my levels is inside a MovieClip, with each frame being a new level. The problem is that when I move on to frame 2 or 3 and try to iterate through the MovieClip's children, I'm getting a different number (less) than is actually on that frame.
I think it's because the instances from the previous frame are being carried over to the new frame.
A simple solution is to create a new MovieClip for every level instead of a new frame inside each MovieClip, but this isn't the most scalable solution (say I want to remove a level or add a level between other levels, etc).
View 3 Replies
Mar 8, 2011
I'm developing a Calendar application, and I'm using a Spark List inside a Panel for each individual day, in a 5x7 grid. I'd like to make sure that the individual lists stay the same size and simply add scrollbars when needed, but I'd also like to avoid setting an explicit width or height to maintain compatibility with multiple screen resolutions.
View 1 Replies
Dec 22, 2011
I am converting complex animations from vector to bitmap. It is easy to convert them to bitmap when the animations are in the main timeline. However, when there are animations inside animations it all becomes very messy because I need to move all those playheads recursively.
View 1 Replies
Mar 14, 2012
In haxe I have a DropDownMenu class that extends MovieClip:
class DropDownMenu extends MovieClip { ...
TextFields are added to DropDownMenus (about 50 TextFields total):
// in a loop in DropDownMenu new method
addChild(myTextField);
When a DropDownMenu is displayed the items further down are hidden as the menu goes off the bottom of the flash player. How can I make these DropDownMenus scroll?
I've considered doing something on the rollout mouse event. However I imagine MovieClip provides some mechanism for scrolling its contents.
View 1 Replies
May 10, 2011
Is there a way to get the columns to resize to the width of the new Datagrid instead of overflowing and showing the scrollbar? I've tried on the skin, setting all relevant properties and ran out of options. I just want it to behave like the previous Datagrid where the columns would resize to the width of the datagrid.
View 1 Replies