ActionScript 3.0 :: Move The Vertical ScrollBar Position Of The ScrollPane To Top/initial Position

Jun 30, 2009

I am using a ScrollPane in my application(viz., instance name is: myScrollPane). When I view the contents of the ScrollPane, it shows them perfectly. My issue is: When I try to view data present inside the ScrollPane, if I move the Vertical-ScrollBar of the ScrollPane to middle(or somewhere from top to down) and then click on Submit button(viz., instance name is: submit_btn), then its Vertical ScrollPosition must be reset from middle(or any position where we leave it before) to top(or initial position). Hence, I need to move the Vertical ScrollPosition of ScrollPane to top (or) initial position. Everytime, I need to refresh the VerticalScrollBar Position when I click on the submit button. How to do it?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Make Buttons That On Rollover Move To Left - On Rollout Move Back To Their Initial Position

Dec 15, 2009

well i want to make buttons that on rollover move to left, on rollout move back to their initial position, and if clicked, they but stay this time at the final rollover place, and be there until something else is clicked. When something else is clicked, the previous button , returns to its initial place. So i ve got it all figured out except for the freeze and move part when the buttons are clicked. All it does now , is when they are clicked they freeze at the position i want, but i havent got a clue how to update them, after so they start moving back, and reacting on rollover and rollout, when the next button is clicked.

[Code]...

View 2 Replies

IDE :: Scrollpane: Resetting Scrollbar Position?

May 18, 2009

In my main .fla I have a scrollpane which opens an external SWF, inside this external SWF I have 5 frames, each with a 'Next' button at the bottom, the problem is when the user clicks the 'Next' button the the scrollpane doesn't change the position of the scrollbar, so essentially the user is looking at the bottom of the next frame. Is there any way to reset the scrollbar position from either the external SWF (linking to the main SWF), or with some code in the main SWF?

View 3 Replies

ActionScript 2.0 :: Move Punto_mc From Current Position To Random Position After Release?

Aug 29, 2009

how to make an actionscript to move punto_mc from current position to random position after release, and then from this new position to mevo to another randon position after release?

View 2 Replies

ActionScript 3.0 :: Movieclip To Move To The Position Of Each Of Buttons From Any Position?

May 13, 2010

I'm hoping someone can solve this headache. Basically, I want a movieclip to move to the position of each of my buttons from any position along my x axis. Therefore, the movieclip needs to 'flip' to face the way it is traveling.At the moment I have the movieclip moving to the mouse x axis when I ROLLOVER the button and stop following the mouse when I ROLLOUT but the code won't flip the movieclip so I must have something wrong...

btn.addEventListener(MouseEvent.ROLL_OVER,followCa t);
btn.addEventListener(MouseEvent.ROLL_OUT,stopCat);
btn02.addEventListener(MouseEvent.ROLL_OVER,follow Cat);
btn02.addEventListener(MouseEvent.ROLL_OUT,stopCat );

[code]....

View 0 Replies

IDE :: Way To Get 'MovieClip' To Move From Position A In Keyframe 1 To Position B

Feb 3, 2010

What i'd like to do is have a menu/site map that adjusts when you click on a certain icon. For example, I have a AS3.0 flash file with, say, 5 keyframes with 5 buttons that are in different positions on each key frame. The buttons are set to gotoAndPlay the various keyframes. I can set up a tween that links frame 1 to 2, 2 to 3 etc. but what I would like is a tween from, say, 1 to 3, then 3 to 5, then 5 to 1 - basically in a random order rather than sequentially through the key frames. I could set each of these tweens up individually but the site is for a portfolio that I would like to keep adding to and to do this individually would mean an ever increasing amount of tweens.Basically, is there a way to get a 'MovieClip' to move from Position A in keyframe 1 to Position B in another keyframe without a set of tween frames? I'm sure this is simpler than I am making it sound but I don't seem to be able to work it out.

View 1 Replies

ActionScript 2.0 :: Move A Box From Position X To Another Position?

Oct 4, 2003

find the basic script to move a box from position x to another position by clicking on a button and easing the movement when it stops.

View 7 Replies

ActionScript 2.0 :: Storing Initial Position Of MC?

Apr 17, 2004

Okay maybe its because I've been working on this all day and can't think straight any longer but this seems like it should be really obvious and I'm getting frustrated that I can't think of how to do it.I have a movie clip sitting just off stage. When the file is first launched I want to record the x position of this movie clip in a variables, say startX. When a button is pressed (and there are several of these) I am using Voetsoejba's easing code (brilliant) twice, once to move an MC just in the x direction (easeX):(on the main timeline, whre movetxt and content are the two MCs)

Code:
//record initial positions
menux = movetxt._x;

[code].....

View 14 Replies

Flash :: Setting Initial Position Using SharedObject?

Aug 8, 2011

I have created a simple audio player to play continuously even if the page is refresh it will play continuously.This is my code to store audio position in flash Temp memory

MySharedObject.data.audioPos = mySndChannel.position;
MySharedObject.flush();

MyProblem,When the player starts the sndPosition is null, so it was not playing. If I set some value, when I am refreshing it will not continue from the last position. How can I set the initial position to play from the start?

View 1 Replies

ActionScript 2.0 :: Slider Button Reflecting Initial Value Position

Oct 8, 2009

I have a slider in my movie (depositAmount) and in the component inspecter it has Initial value for the slider. In my first frame I have an input field for depositAmount and i want the position of the slider button to reflect that. So if the min and max deposit amount are 0 and $10,000 respectively and the user inputs deposit Amount as $2000, I'd like to position the slider button 1/5th of the way across the slider. Is that possible? At the moment the slider button will just reflect the initial value position.

View 0 Replies

ActionScript 2.0 :: Buttons Doesn't Come Back On Initial Position?

Oct 9, 2003

i've a little problem with my buttons wich are movieclips if you rol over and out to fast they stay "on" (they do not come back to initial position) i've used actions: rolover >goto and play frame 2there is a stop on frame 1 and 5rolout > goto and play frame 6 (so it plays to frame 9 and come back and stop on frame 1 :initial position)

View 4 Replies

ActionScript 2.0 :: Buttons Doesn't Come Back On Initial Position

Oct 9, 2003

i've a little problem with my buttons wich are movieclips if you rol over and out to fast they stay "on" (they do not come back to initial position) i've used actions: rolover >goto and play frame 2 there is a stop on frame 1 and 5 rolout > goto and play frame 6 (so it plays to frame 9 and come back and stop on frame 1 :initial position) url...

View 4 Replies

ActionScript 2.0 :: Store The Initial X Position Of Five MovieClips In An Array By Looping Through It

Jan 9, 2005

I'm trying to store the initial X position of five movieClips in an Array by looping through it. Should be no worries, but I only end up with "Undefined" when I trace the array afterwards...

[Code]...

View 2 Replies

ActionScript 2.0 :: Fullscreen Mode - Make Some MovieClip To Re-appear At Their Initial Position?

Sep 18, 2008

I have a small problem with my fullscreen mode.It enters fullscreen mode nicely when the user click on a button and exit as well when you press the"esc" key (which is the standard). is there a way to track when i exit the full screen because i want to make some MovieClip to re appear at their initial position.

View 1 Replies

ActionScript 3.0 :: Make A Generated Object Return To Its Initial Position

Dec 12, 2011

The issue i'm having is that i want to have dispersed code-generated stars, and then they form a form (reindeer, santa, etc).

The idea is how i make the stars disperse and then return to their previous positions, knowing that the initial positions were randomly generated as well.

View 2 Replies

ActionScript 3.0 :: Movieclip Slider Effect - Change The Initial Position Of The Movieclips ?

May 2, 2011

I have two movieclips in the centre of my stage. One is on top of the other and fade's between them using left/right buttons.I want to change this so that they slide in like a jQuery slider does. I don't want to change the initial position of the movieclips (on top of each other) just change the fade effect to a slide in.

View 1 Replies

ActionScript 3.0 :: ScrollPane Scroll Position?

Jun 7, 2009

I have a scrollpane with the source set to ImageMovieClip. ImageMocieClip is long in length with 50 images stacked vertically. Because of the size of the scrollpane only 15 are visible at a time.I have a button, navBtn, that I want to jump the scrollpane's scroll position to half way down. Is it possible? What scrollpane property do I need to use?

View 2 Replies

AS3 :: Setting Scroll Position For ScrollPane Component?

May 19, 2009

I ve got a series of frames, each with its own instance of a scrollPane called actionText. When navigating from frame to frame I want the vertical scroll position of actionText to reset to 0.For some reason these separate instances of the component are inheriting scroll positions from one another,for example,if I scroll to 50% in one frame, jump to a new frame with a new instance of actionText, that new instance starts at 50%, not 0.

I should be able to set the scroll position by actionText.vPostion = 0 but I get Position is an undefined property of the object actionText .Roll over either the star one or star twotabs and select any action item, scroll the text down (actually a pdf converted to swf), then navigate to another action item and the new scrollPane does not default to 0. Only stars one and two are coded.[url]......

View 3 Replies

Professional :: ScrollPane - Set The Starting Position Of The Picture?

Jul 27, 2010

I was experimenting and finally got my "scrolling picture" test going. That is, a picture that can be scrolled around. I used the ScrollPane, also set the ScrollDrag to TRUE so you can drag the picture around, but no matter what I do, I can't get the Horizontal Scroll Bar, without the drag, people will no be able to scroll left to right and vise-versa. How can I include or make the Horizontal Scroll Bar to work / show? Also, is the a way to set the starting position of the picture ? For example, the initial display set to the center of the picture.

View 2 Replies

ActionScript 1/2 :: ScrollPane Position Buttons In Another Frame?

Nov 6, 2011

I've been looking everywhere but not solved my problem:In frame "2" I've got a ScrollPane with a long external sfw text scrolling. At his side I have buttons that links to a certain position of the scroll so they have:

on(release) {
ScrollPanename.vPosition=200;
}

(where 200 is nof pixel down from the top)My problem is that I'd also like to have those shortcuts buttons on frame "1" (main menu) so they can jump directly to the ScrollPane position in frame "2" by press.

View 3 Replies

ActionScript 2.0 :: Vertical Position Of Text In A Textfield?

Nov 9, 2005

What I'm trying to do is to position the text in the top part of a combo box vertically. I need to make the height of the textfield section a minimum amount because of touchscreen considerations. It's taller than appropriate for the font size I've chosen.

I know how to reference the textField element of the combo box, so my actual question is can I position the text so that it is centered vertically in a textField? I've seen several of the formatting options, but just haven't stumbled across a setting that allows me to change the default "top justification" that textFields get for their text.

View 2 Replies

ActionScript 2.0 :: Logging And Setting Scrollpane Scroll Position?

Sep 20, 2010

I have a scrollpane with a very long list of images stacked vertically. The user can scroll around, click on an image, and it will take them to another part of the application. There, there is a back button so they can return to the list of images. Instead of jumping back to the top, I want the back button to return them to where they were in the list of images beforehand. how do I log the value of the scroll position, and then set it to that value when the page is loaded again?

View 3 Replies

ActionScript 2.0 :: Vertical Portfolio Viewer - Position New SWF With Same Height?

Aug 11, 2009

I'm building a vertical portfolio viewer which uses the below code to create my gallery. I'm loading the data externally via xml (which loads fine, so no problems there). The data which loads is a set of separate .swf files all of different sizes in height. The only thing I can't do is position the newly created .swf file right underneath the last one in the array, based on the height of said last .swf file. The only way I can do it at the moment is per below, which duplicates my project clip (the clip which the .swf's load into) and places the next one right underneath the height of the actual project clip, not the height of the .swf being loaded into it. How I can target the height of the external .swfs, and position the next one in the array right underneath the last one, based on the height of that last .swf, (so if at anypoint in the future the height changed, it would psition itself correctly).

code:
// set up gallery...
setGallery = function () {
// Builds gallery projects menu based on XML Data...
for (i=0; i<total; ++i) {
// Build arrays...
image[i] = xmlNode.childNodes[i].attributes.Image;
[Code] .....

View 9 Replies

ActionScript 2.0 :: CS3 : Vertical Scroller Controlled By Mouse Position?

Aug 15, 2010

Using this code made by Genesis F5:

Code:
// EXAMPLE CREATED BY GENESIS F5 (www.flashkit.com)
stageheight = Stage.height / 2;
overhangy = ((stageheight * 2) - image._height) / 2;

[code]...

Basically, my problem is that i've got 15 buttons labeled Channel 1 to Channel 15, but when the page first loads up, it skips down showing the very last button at the bottom, rather than the very first button at the top. The top button is off the screen.

View 9 Replies

IDE :: Can't Reset ScrollBar Position

Mar 8, 2006

ok - i'm totally confused here... this is probably a stupid noob question... just recently got flash 8 - upgrading from mx2004, but had previously been using flash 6 components and AS1, due to files that had already been written in mx... my problem is this - i have a dynamic text field, populated with data from a LoadVars object. When a button is pressed, different data is loaded into the text field, and the scrollBar is supposed to reset to the top (position=0)

[Code]...

View 2 Replies

Flash :: Tween Scroll Position Of ScrollPane Component With TweenLite?

Sep 10, 2010

In actionscript3,using the ScrollPane component and the TweenLite package, would it be possible to animate to a particular scroll position?

View 2 Replies

Actionscript 3.0 :: Browser Scrollbar Position?

May 1, 2010

Is there any way to track and set the browser window scrollbar position from Flash? I've searched around the web but I haven't been able to find a definitive answer. It would be really cool if its possible.[URL]...

View 5 Replies

IDE :: Stop On Rollover This Endless Vertical Slider In Fixed Centered Position?

Mar 13, 2009

how to stop on rollover this endless vertical slider in fixed centered position?

[Code].....

View 2 Replies

ActionScript 3.0 :: Change Position Of Horizontal Scrollbar?

Jul 31, 2009

With scrollPane, is it possible to change the position of the horizontal scrollbar? I saw an old thread that suggested using the following for moving the vertical scrollbar:scroller.verticalScrollBar.x=-20;So I tried changing it to "scroller.horizontalScrollBar.y=-20;" but that had no effect.

View 1 Replies

ActionScript 2.0 :: Scrollbar Moving The Position Of An Image?

Apr 8, 2006

I have a horizontal scrollbar. I want this scrollbar to move a movie clip left and right on the screen.I cannot figure out what I am doing. In one example I'm looking at, it has the script on the button of the slider:

onClipEvent(mouseMove){
_root.vPosition = _root.SliderMC.ButtonSliderMC._y * 5 / 6;
}

I can't figure out the math for my scrollbar. How do I find the fraction that is in this part of the script? The numbers are not matching up for me. I also can't get my slider to go left to right. It keeps going down. And my image that is suppose to be scrolling the with slider is not even moving.

View 3 Replies







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