ActionScript 2.0 :: Resizing MovieClip With Scrollbar Text

Oct 6, 2010

I am trying to re-size a movie clip which contains some dynamic text with scroll-bar in a swf using mouse. I am able to re-size the movie clip using "setProperty". But unable to control the behavior of the scroll-bar. When I am increasing the size of the movie clip the scroll-bar should automatically disappear.

Here is the link of the swf I am working on: [URL]
Here is the code I have used for the resizer:
if (this._x <= 20) {
setProperty(_root.cont.frames, _width, 20);
setProperty(this, _x, 20);
} else {
setProperty(_root.cont.frames, _width, this._x);
[Code] .....

View 2 Replies


Similar Posts:


ActionScript 1/2 :: Resizing Movieclip With Scrollbar Text?

Oct 6, 2010

Here I am trying to resize a movie clip which contains some dynamic text with scrollbar in a swf using mouse.I am able to resize the movie clip using "setProperty". But unable to control the behaviour of the scrollbar. when I am increasing the size of the movie clip the scrollbar should automatically disappear. But I am unable to do so.

[Code]...

View 3 Replies

ActionScript 3.0 :: Dynamic SWF Resizing With Native Browser Scrollbar?

Mar 2, 2011

I've seen this pretty slick flash site where the content is clearly loaded in dynamically and the browser scroller bar is used.

View 4 Replies

As3 :: Flash - Resizing Movieclip Inside Movieclip?

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

ActionScript 3.0 :: Resizing Movieclip Inside Movieclip?

Sep 20, 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. 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;
cont_mc.y=0;

[code]...

the size of the outer is right 1440x1000 but the sizes of the inner are not right it should be about one third of the outer but it's about two thirds. about same with the height.

All I want is to be able to resize them independenlty. with the outter beeing bigger than the inner. Or to be exact I want the the inner to fit exactly the height or the width of the outer depending on which site of the inner is bigger( for example if the inner's width is bigger than its height then the inner width gets as big as the outer's width and then inner's height gets resized according to its ratio) and furthermore to center it in the middle of the outer.

View 2 Replies

IDE :: Distort Height Of Dynamic Text Field Without Resizing Text?

Jan 15, 2010

As part of my flash design, I want to have some tweening text. At the beginning of the tween, the height of the text needs to be distorted ('too tall'), and at the end of the tween, the text will have settled into its correct height. However, when I try to scale the text in the first keyframe of the tween, the font size changes along with the text field height. Normally, I could just make the text into an image, but this needs to be a dynamic text field. Is there no way to scale the height of the text field and distorting the text height without changing the font size?

View 1 Replies

ActionScript 2.0 :: Scrollbar - Component Does Not Update Itself To Accommodate Text That Is Larger Than The Text Box

Dec 12, 2003

I have an empty textbox with the basic scroll bar component. Nothing is in the text box so the arrows are greyed out on the scrollbar. I have a button that loads text into the textbox, but the component does not update itself to accomodate text that is larger than the text box.

how can I make it so that the scrollbar changes when text is added.....also If I put text in the text box in flash, when I publish it gets the scrollbar fine, but it will not adjust itself when I click on the button that loads different text into the text box. what happens is the scroll bar stays the same regardless on the size of the loaded text.

View 6 Replies

ActionScript 2.0 :: Add A Scrollbar To A Text Area That Swaps Out Xml Text Files

Nov 29, 2005

I'm building a site and I would like to add a scrollbar to a text area that swaps out xml text files. Currently, I have up and down arrows to scroll the text, but I would like to have an actual scrollbar instead since there is a lot of text in some of the sections. Here is a link to the current version of the site with the up and down arrows: [URL]

I can make the scrollbar work just fine if I put the text in the first frame, but whenever I set it up to call on text files, then the scroll bar won't work. Obviously, I'm pretty new at Flash. I've attached an FLA with the text box.

View 4 Replies

ActionScript 3.0 :: Text In A Text Field So A Scrollbar?

Dec 5, 2009

I import text to a text field via xml. How do I detect if it is too much text in a text field so a scrollbar is needed?

View 3 Replies

ActionScript 2.0 :: Scrollbar - Charge Different Text In The Same Text Box?

Mar 3, 2008

I have a scrollbar, this charge some external text, but the trouble is the next. I charge different text in the same text box when i move the scroll to down and charge another text the scroll continue in the same position i left the last time. I need when i change the text this begging in the 0 position.This is the code i used in the scroll.

Code:
function FNSCROLL(){
if(this.scrollText != undefined ){
if(this.scrollText.maxscroll==1){[code]..........

when i charge the text in the text box. But i not sure

View 2 Replies

ActionScript 3.0 :: MovieClip And Stage Resizing

Aug 6, 2009

I am new to Actionscript 3 and i am making a basic flash site using CS4 and AS3.I need to have an image as my background that resizes whenever the window/browser is resized and that works perfectly. I also need to import another SWF to the stage as this contains the main body of the site, this SWF needs to be centered at all times on the stage even on a resize.I have pasted some code below as what i have working at the moment is the SWF gets imported, the background does scale and resize etc but the movieclip won't center when first launched and i just can't figure it out.[code]

View 2 Replies

ActionScript 3.0 :: MovieClip Resizing Weirdness?

Feb 25, 2011

I have a movieclip in an external swf, called menubg. In the library properties tab, it reports the size as 1024x768.I use an embed statement to pull the movieclip from the swf at compile time. It comes in just fine (as a Sprite since that seems to be the only way to instantiate an object from an external swf), you can see it without a hitch, but tracing out the size info does not return the same WxH as the original.Here's some code, and the trace outs

var mbg:Sprite=new wpa_menuBG;
trace(mbg.width,mbg.height); // 1028.95 777.95 --  that's not right
// the screen container[code]......

View 5 Replies

ActionScript 3.0 :: Resizing MovieClip While Dragging?

Jul 19, 2010

I'm trying to resize a moviclip in the stage with a handler, but i can't find the solution for attaching the handle to the movieclip.

View 4 Replies

ActionScript 3.0 :: Scrollbar For Masked Movieclip?

May 11, 2011

I have a movieclip that I am masking dynamically. The reason for masking the movieclip is because it can be different heights depending on user feedback to some questions. I want to add a scrollbar if the movieclip exceeds the mask area that will allow the user to scroll to see the rest of the movieclip.

View 2 Replies

Flex :: Create ScrollBar For Movieclip?

Aug 10, 2010

I am trying to scroll a movieclip with a scroll bar....I have tried ULscrollBar but it ends up only works for text.

View 3 Replies

ActionScript 2.0 :: MovieClip.createTextField & Scrollbar?

Jun 28, 2004

I created a textfield dinamicaly with MovieClip.createTextField, but my text is to long, so I need a scrollbar. How can create and attach the scrollbar to the textfield ? Any idea is welcome, tutorial is super

View 6 Replies

ActionScript 3.0 :: Resizing Movieclip In A Restricted Area?

Jul 7, 2009

I have 2 moveclip called view_mc and restricted and button called btn_scale.
 
When the user click and drag btn_scale, it resizes the view_mc where the width and height of view_mc dosen't exceed the width and height/2 of restricted area.

I made that.  But when view_mc reaches the width and height/2 of restricted area, I can't resize view_mc to be samller. (The btn_scale looks like it's disables and can't use it)

I think some logic is missing. I highlighted the code that is missing some logic.
 
var clickedX:Number;
var clickedY:Number;
var newScale:Number;

[Code]...

View 1 Replies

ActionScript 3.0 :: Resizing Images (JPG Files) In MovieClip

Jun 27, 2011

I am searching all over google for an easy way to resize images but the problem I am having is that .x does not work .width does not work ._width does not work. ._x does not work. How can I do something as easy as changing the width height of a picture? I am loading the photo into a movie clip using the Loader class

var i = new Loader();
i.load(new URLRequest("a.jpg"));
// here I try to write a code that will change the size of the image.
photon.addChild(i); //photon is the name of the movie clip instance

And have tried. all of the codes mentioned above on both the actual movie clip instance and the loaded image on variable (i).

View 2 Replies

Actionscript 2.0 :: Library MovieClip Line Resizing

Oct 12, 2008

I have been working with actionscript 2 / xml for quite a while now and this is the first time I have come upon this one. I have one movieclip in the library that I attach using attachmovie for that generic "glassy" vista type look. Only thing is, when I resize it via actionscript, it resizes incorrectly. Flash ells me it's correct via trace, but it obviously isn't. If I delete the border line off of the movieclip, it resizes fine! I have the clip set to none for scale under the properties tab(with the line and fill selected). The line has a gradient but it does the same thing if solid. What I'm wondering is has anyone else run into this and have they found a workaround?

[Code]...

View 1 Replies

ActionScript 2.0 :: Resizing Movieclip Created By CreateEmptyMovieClip?

Jul 7, 2005

resizing a movieclip created with createEmptyMovieclip.I tried changing the property using setproperty,the result : no image shown at all.. i think i stting a property for a wrong movieclip.....

Code:
addressVars= new LoadVars();
addressVars.load("http://localhost/test/flashmx_dbPassReturn.php");
addressVars.onLoad = function() {

[Code]....

View 1 Replies

ActionScript 2.0 :: Resizing MovieClip (Shapes) To Fullscreen

Jul 20, 2005

I have a movie clip named "shapes" that I use as a pseudo-background for my .swf, I alter the color of the movieclip by using the following code;
on (press) {
var colorful = new Color("_root.shapes");
colorful.setRGB(0x003366);
}
So that each section of my site has a unique color. The problem is I want to publish this as fullscreen (Publish Settings, set Dimensions to "Percent" and Width and Height to 100). For this to look right I need the movieclip "shapes" to expand to 100%.

View 2 Replies

ActionScript 3.0 :: Scrollbar Listening For Movieclip Location?

Jun 16, 2009

I'm creating a history timeline and I would like to make sure that when the dragger on the scrollbar is on a certain time period, the movieclip is on that time period as well. Is there a way to have the dragger to listen for when it reaches a specific time period on the scrollbar and have it align the movieclip appropriately?

View 1 Replies

ActionScript 2.0 :: Scrollbar Within TextBox In MovieClip Button?

Aug 2, 2010

I have a movie clip button with a text box within it. The text box also has a scrollbar component attached. Since the movie clip button has roll-over functionality [ btn.onRollover = function() ], I believe that's taking precedence over the inner scrollbar. I guess this goes back to the common problem of a button inside of a button.

View 8 Replies

ActionScript 3.0 :: Simple Scrollbar Scrolling A MovieClip?

Nov 16, 2011

I've removed all of the math I had done. Just trying to get the content area (_scrollable) to move up and down behind the mask in the opposite direction, just as you'd expect a scrollbar to do to a content area.

Dragging of the scrollbar is setup and this just needs some simple math coding in the thumbMouseMove function.

View 7 Replies

IDE :: Resizing A Dynamic Text Box?

Oct 3, 2004

i'm making a flash movie that's going to load some text from a text file. i don't know how long each of the variables within the text file will be though, so i need to resize the text box that they are going to be displayed it. is there anyway that i can do this so that all of the text is displayed and not cut off by the text box being too small

View 7 Replies

ActionScript 3.0 :: Resizing Parent Movieclip Without Affecting The Children?

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

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

ActionScript 3.0 :: Preventing MovieClip From Resizing In Fullscreen Projector?

Aug 18, 2009

I have a fullscreen projector using fscommand ("fullscreen", "true");
Fullscreen works fine. However, I have 2 movie clips that I don't want to resize with the rest of the movie. (They are non-vector images that look crappy when resized.) Is this possible? If so, do you know what code I need to use? I'm using AS3.

View 1 Replies

ActionScript 2.0 :: Dynamically Resizing/limiting Width Of A Movieclip?

Sep 23, 2008

I have some rectangles inside a movieclip. All movieclips are created by actionscript. I want to limit the size of the movieclip on top right corner when user starts drag.

Code:
this.holder_mc.onEnterFrame = function() {
this.holder_mc.rectangle_6._xscale = this.holder_mc._xscale-260;

[code].....

View 1 Replies

ActionScript 3.0 :: Scroll A Movieclip Inside A Swf With The Browser Scrollbar?

Aug 29, 2010

scroll a movieclip inside a swf with the browser scrollbar? I'm not talking about something like swfFit or so but actually controling a mc on stage while the rest of the swf stays in place? I've seen this done in a site that I don't remember the url to. Don't know though if they placed a div containing a swf on top of the "main" swf.

View 15 Replies







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