ActionScript 2.0 :: Partial Scroller (depending On Stage.height)?
Jun 7, 2011
I'm trying to find a way to do a scroller that scrolls only 'till the targets bottom reaches the Stage.height.I tried to attach some images explaining but :
Quote:
To be able to post links or images your post count must be 50 or greater. You currently have 10 posts.
Please remove links from your message, then you will be able to submit your post.
View 1 Replies
Similar Posts:
Apr 12, 2007
how I resize (or tween-resize) the size of a flash movie depending on its content.[URL]When you click on a new page, the stage size resizes depending on how large the page is.Do I have to use javascript to do this (because I can't find the javascript on the pier website to take a look at it).Or can I do this with actionscript?
View 6 Replies
Feb 2, 2009
Is it possible to set the height of the sprite depending on the height of an textfield inside that sprite? I'm creating a box with a textfield inside it, but I want the box to be sized depending of how much text it is in the textfield..
View 9 Replies
Jun 9, 2005
Does anyone know what I can do to change the claudio scroller so that it will scroll ease depending on the vertical mouse position?
View 4 Replies
Jun 1, 2003
I have an empty mc called "attachmcextra".Into this empty mc is attached another mc called "mcnote" that contains a texto box named "loadnote". So it`s path would be:_root.attachextra.mcnote.loadnoteThe following code is set to the mc "attachextra":
onClipEvent (load) {
//set inicial position
this.posY = 20;
[code]....
View 1 Replies
Jul 27, 2010
Is there a way to get the content of a component inside a scroller to be at 100% height.
here is a simple example:
<s:Scroller width="100%" height="100%">
<s:viewport>
<s:Group height="100%">
[Code]....
As you can see, the green bar (set at 100% height) is just using the height of the viewport, not that of it's parent group, that is stretched by the red one to be 500px high.
View 1 Replies
Aug 26, 2010
I am having a little difficulty properly sizing a Scroller component in Adobe Flex/Flash 4. As soon as I add an element to the 'widgetsGroup' VGroup, the scroller's height property resizes to match that of its parent border container, even though the content height of the vGroup may be significantly less than this value. This is a problem because the scroller then 'covers' other elements in the border container. I guess what I am looking for is the scroller height to match the widgetGroup content height until this height exceeds the bordercontainer height, at which point the scroll bar would become visible.
[Code]...
View 1 Replies
Mar 24, 2009
I have a textField with a lot of stuff in it, so I'm creating a scroller using a mask. To do the math to make the scroller work right, I need the height of the textField. But the stuff in it is retrieved from XML and the length of it varies when it is updated, which is quite often. Is there a way I can find the height of just the text in the textField?
View 1 Replies
May 8, 2003
The movie clip is a scroller which I download a while back (I can't remember where from now) The contents of the scroller which i want to scroll is a seperate movie clip which loads it's contents from a .txt file. The problems I am having are:
1 - I cannot seem to change the height of the text box movie, I can change it in flash, but when i publish and play it just appears at a set size.
2 - the last link in the contents jumps like crazy when I hoover over it.
3 - when there is less content than the size of the text box I would like the scroller to disapear.
4 - If I add a mask around the text box, the contents disapear, i have in place a custom mask for the mean time but this will have to go.
[Code]....
View 7 Replies
Jan 12, 2011
I am creating mouse scroller and when I insert actionscript my images wont move depending on the mouse movements..I am using Flash cs5 and Actionscript 2.0...this is my actionscript:
[Code]...
View 9 Replies
Mar 9, 2010
I would like to position relatively a scroller in my application like below.When I scale the image, I resize the scroller...
<s:Scroller width="50%" height="50%" >
<s:Group>
<mx:Image
[code].....
View 2 Replies
Oct 8, 2010
Is it possible to get the browser height via flash and set the stage height to that value? I know you can set the height to 100% in publish settings, however one of my scroller scripts needs the stage height to be exactly the height of the content area of the browser.
View 5 Replies
Jul 29, 2010
I am trying to reference to top level (stage) width and height of the main stage for the placement of something located inside a movieclip on the stage.
My code is:
Code:
my_loader.x = (stage.stageWidth - my_loader.width)/2;
my_loader.y = (stage.stageHeight - my_loader.height)/2;
But this seems to just relate to the width/height of the mc that my_loader is nested in...
I have tried the following and had no luck:
stage.stage.stageWidth
root.stage.stageWidth
parent.stage.stageWidth
MovieClip(root).stage.stageWidth
View 8 Replies
Sep 14, 2009
I was wondering if any of you can spot the error in my code? I got a bunch of objects called 'jelly' that are gonna bounce around my screen but the problem I got is they don't bounce at all! they just run straight off. And yeah I'm very new to actionscript, can anyone see what I'm doing wrong here?
[Code]...
View 4 Replies
Nov 3, 2009
Is it possible to get the stage height/width on something that isn't added to the stage?
View 1 Replies
May 6, 2011
I need to double my stage size, as well as all of the objects on the stage. Is there an easy way to do this? stage.stageHeight, stage.height, etc do not work.
View 3 Replies
Jul 21, 2009
I'm working on a game. I want it to attach a different level to the stage depending on what value a 2 variables are, but I keep getting Type Mismatch, or it doesn't work.
Code:
_root.attachMovie(PROBLEM IS HERE,"map"+mapSwitch,_root.getNextHighestDepth());
The current linkages are 00 (0x, 0y), and -10 (-1x, 0y). They are comprised of 2 variables, the first one is xmap, and the second is ymap. I want to be able to combine the 2 variables and then attach the clip with that linkage to the stage.
View 3 Replies
Jun 11, 2010
Is it possbile to make 'bumblebee' a variable?
var mybee:bumblebee = new bumblebee();
View 5 Replies
Oct 10, 2009
I have spent the last 2 weeks searching the web for a tutorial on content scrolling. I have a movieclip/graphic that I want to scroll from left to right on the stage. Example of what I am trying to do: [URL] but without the vertical scroll. There seems to be a couple of AS2 tutorials around I doing it in AS3.
View 2 Replies
Sep 21, 2010
Right now my stage dimensions are 980 X 800 px. I need to cut or "crop out" the bottom portion of the footer because its height is too long. So I changed the stage dimensions to 980 X 600 px (and changed the corresponding dimensions in the embed tag in the index.html file to match). Doing this seems to cut out the bottom but at the same time adds space to the top and seems to distort the overall spacing. Is there a simple way to crop out the bottom of the stage (just like cropping out a section of a photo)?
View 5 Replies
Feb 5, 2010
im trying to use this fullbrowser scroller in my site but it appears only if stage/ browser window is resized with mouse. it should appear right away! here is the site ad-d.org and here is the files ad-d.org.zip
View 1 Replies
Feb 21, 2004
I am trying to build a vertical slide scroller based on a tutorial for a horizontal slide scroller and am having difficulties undertanding what values I need to change in the code for the slider mc in order to make it work. The horizontal slider is quite smart [code]
View 3 Replies
Oct 11, 2010
I'm trying to change the position of a movieclip I've added to the stage. When I try to access stage.width or stage.height I get 0. I've tried MovieClip(root).stage, DisplayObject(root).stage, root.stage, stage, and simply width and height. All of these are equal to zero.
View 1 Replies
Jul 29, 2005
my problem is that if you go over the menu text above my scroller it controls the scroller. I wan this areas movement to have no effect on the scroller below. is there a way to script my scroller to set it to this?
View 1 Replies
Aug 17, 2007
have a cool vertical scroller that I did try to convert to horizontal, but I could not make it work.
//code by Billy T
//set a variable
targY=0;
//set the x position of the dragger
dragger._x = 370;
[code]....
View 4 Replies
Jan 10, 2011
change vertical scroller to horizontal scroller?
View 2 Replies
Aug 26, 2009
Why do you use height for Stage, but _height for the others? ( the same as width and others )
View 3 Replies
Sep 11, 2009
I have an html page that loads a swf that loads an AS 3 animation with 4 dozen 60k jpgs that rely on the tween class to move them across the screen.
I'd like to start the empty stage at 10px, and after the jpgs load, animate the height to 142px, pushing down the html underneath and run the parade.
View 1 Replies
Nov 2, 2009
I'm creating a tabbed UI and using this tut for the nav of it (but with only 3 tabs):
[URL]
..when one of the tabs is clicked..it will show the appropriate content below when it jumps to that frame. However, each tabs associated content varies in height. Is there a way for me to dynamically scale the height of the stage according to which tab is clicked?
View 4 Replies
Sep 28, 2011
I have a parent swf that loads another swf (it's for a client). The parent swf 's stage dimensions don't match the child's. How can the child set the stage dimensions?
I've tried this after the child was loaded, but it's not working:
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.stageWidth = 700;
stageHeight = 600;
View 1 Replies