Professional :: Control Over The ScrollPane Component?

Nov 29, 2010

I've got some moveieClips in container in a scrollpane component.The movieClips are draggable.I'd like to add extra functionality where if an item is dragged and touches the bottom of the scrollpane, it automatically scrolls up, and the reverse if you touch the top with a dragged object.I tried the scrollDrag, but I only want it to scroll once the dragged item touches the bottom or top.So I wrote this and put it in the drag function:[code]....
It needs a bit of work, and I think I can get it working, but the one thing I'm stumped on is how to make the scrollbar move too.Is there a way to communicate with the component using code (I created this component from the component inspector)?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Can't Control .tabChildren Property When Using ScrollPane Component

Feb 13, 2011

I have multiple tab loops, where I enable/disable the loops as needed to control the tabbing experience. I'm attempting to set control the tabbing with the tabChildren property on the Movieclip or Sprite containers I have by setting their tabChildren property to true/false. I am trying to set up tabbing that has three distinct tab loops (three different containers), each with their own internal Sprites/Movieclips that have their tabIndex properties set as needed. I am able to properly set tabChildren to false, and back to true. But with the component, once I set it to false, I can't set it to true again.

Tab loop 1: main content (a loaded SWF file)

Tab loop 2: nav bar (previous & back buttons to load different SWFS, and a Help button)

Tab loop 3: a help pop-up window (a Sprite container) with a scrollPane component used to show scrolling content

Things seem to work fine without the ScrollPane component involved in the mix.Have others experienced this inability to control tabChildren like this? And with regards to using components? I am not using the FocusManager class in any capacity, and believe that it only applies to the components (unless I created my own components and implemented IFocusManager, which I haven't).

View 1 Replies

Professional :: Can Seekbar Component Control Movieclip Playback

Mar 24, 2010

I've created a site in CS4/AS3 (my first site, so I'm still pretty new at Flash and especially AS3). The site contains a number of embedded movieclips. For each movieclip, the user needs to be able to control the playback. I've created a play/pause button that works but I cannot figure out how to use the seekbar component so that the user can move around within the movieclip. Is the seekbar component only for manipulating video files? If so, how might I go about creating a seekbar-type feature for movieclips?

View 3 Replies

Professional :: Control The Swf Movie Loaded In Loader Component?

Oct 13, 2010

I have an external swf file loaded in loader component. The external swf loaded in loader component is stopped initially. I want to play it by a button outside the loader component which is located in the main swf movie.

View 1 Replies

ActionScript 3.0 :: Have A ScrollPane Component On The Stage And Within That Component?

Dec 22, 2010

All I want to do is have a scrollPane component on the stage and within that component I would like to have a movieclip that is essentially a list, and each list item is a button to be clicked on. I have no problem doing this if I have buttons within a movieclip, but having them in a scrollPane produces the following error:

1119: Access of possibly undefined property mcButtons through a reference with static type fl.containers:ScrollPane.It seems that I am unable to use the scrollPane component as if it were a movieclip and to use dot syntax to access it's content.

View 2 Replies

ActionScript 2.0 :: Control The Content Of The ScrollPane?

Mar 12, 2009

I'm using an AS2 ScrollPane component and I want to be able to control the content of the ScrollPane....like change it's _x/_y or _height/_width....how do I do this?

View 6 Replies

ActionScript 3.0 :: Flash ScrollPane Component?

Nov 23, 2009

I have a scrollPane component set up with a long form in it. When a user gets to the bottom he can submit the form, the button then navigates him away from the scrollPane. If the user comes back to the scrollPane, the content in the scrollPane is scrolled all the way to the bottom where they clicked away. How do I reset the content so if they return to the form, the top of the form is visible in the scrollPane instead of the bottom of the form?

View 1 Replies

ActionScript 3.0 :: X And Y Properties In ScrollPane Component?

Jan 18, 2010

I have a small problem with ActionScript in a SWF file I'm creating. It is a ScrollPane component where I want lo upload multiple buttons with links to Web pages. I have everything prepared, a ScrollPane created and buttons as well (about 30). What I cuden't find is how to locate the buttons on stage with the properties X and Y, how introduce the properties for each of the buttons. I still do not handle well ActionScript and the manual I have is very basic.

View 2 Replies

ActionScript 2.0 :: Can't See Text In ScrollPane Component

Jan 18, 2008

I loaded a swf into a scrollpane as scrollpanes go. The only difference is that the dynamically generated textfield in the loaded swf did not come out at all while the pic in the loaded swf did.

I've posted my code for the scrollpane and also for the swf being loaded:

SWF to be loaded

Code:
var a:MovieClip = this.createEmptyMovieClip("loaded", 100);
loaded.createTextField("mytf", 101, 0, 0, 100, 100);
loaded.mytf.text = "This text should come out."; //this doesn't come out

[Code].....

View 1 Replies

ActionScript 2.0 :: The ScrollPane Component [FMX2004Pro]

Jan 28, 2004

I'm using Flash MX 2004 Pro. I'm facing a problem with the ScrollPane Component (Flash UI Components). I'm trying to load a movie clip from the library into the ScrollPane by using the contentPath property of the ScrollPane. Normally this works fine, but the catch is that the contents of MC I'm trying to load is generated at runtime from an external XML document. The MC itself is empty in the beginning and the code to generate the contents of the MC is present in the first frame of this clip.

The problem is that the contents of the movie clip get generated correctly and it gets loaded into the ScrollPane too. But the Scrollbars don't work! I've been playing around with this for a couple of days now and I can't seem to figure out why the scrollbars wont work. If you guys know a solution to this I'll be a really happy man!

View 1 Replies

Actionscript 3 :: Control The FLVPlayback Component's Volume Using The Slider Component In Flash?

Mar 20, 2012

I was wondering if there was a way to get the sound from a FLVPlayback component and manipulate it with using a custom volume slider? Within my Actionscript I currently have this code which enables me to control the volume of a MP3:

import fl.events.SliderEvent;
var mysong = new music();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
myChannel = mysong.play(0,10);

[Code]...

But Instead of using the MP3 for sound, is there a way to use an FLV's sound instead?

View 1 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

ActionScript 3.0 :: Displaying Image In Scrollpane Component

Mar 14, 2010

I need info regarding ScrollPane tool in Flash CS4. As I need to display a image in it. I have a "zoom" effect set up to where when the user pushes the + button,the x and y scale is increased. But when I does so Scroll bar does not get resized automatically. And thus due to increased size only half of the image remain visible.

View 3 Replies

Flash :: Error 1009 When Using A ScrollPane Component

May 6, 2010

I have the same problem of this post [url]...

But I try to put the component in the parent fla and it doesn't change anything and I still have the 1009 error. Any idea ?

View 1 Replies

ActionScript 2.0 :: Remove Dropshadow From ScrollPane Component?

Feb 2, 2012

I'm trying to remove the gray border/dropshadow from the ScrollPane component, in AS2.

View 0 Replies

ActionScript 2.0 :: Disable / Freeze The Scrollpane Component

Nov 16, 2005

How can I freeze the scrollpane component so that user can no more drag in any direction?

View 7 Replies

ActionScript 2.0 :: AS 2 Deactivate OnMouseDown When Clicking On Scrollpane Component

May 25, 2011

I have a CS3 scrollpane component with a movieclip loaded into it that the user can scroll up and down and side to side. In the movieclip I have a PNG and a drawing function that essentially lets the user drag and draw a yellow highlight box on the PNG. So onMouseDown the drawing function starts, onMouseMove the box size is set based on where the user puts the cursor and onMouseUp the box is actually drawn.

My problem is that if the user clicks on the scroll pane dragger bars (for lack of a better term) it draws a box where they clicked and dragged the scroll bar. how I could disable the onMouseDown if the user is interacting with the scrollpane?

I have tried setting X&Y conditions, but if they only work if the user is at the bottom right corner of the image. I also tried making an invisible button that would change a variable on rollOver and rollOut but that messed up my scrollpane somehow.

here is my drawing code if that helps at all:

PHP Code:

//
var myClipNames:Array = ["mc0", "mc1", "mc2", "mc3", "mc4", "mc5", "mc6", "mc10", "mc11", "mc12", "mc13", "mc14", "mc15"];
var i = 0;

[Code].....

View 1 Replies

ActionScript 2.0 :: Eliminate Border And Scroll Bar From Scrollpane Component?

Mar 6, 2012

I have a flash movie using actionscript 2.0. I want to delete the white border around a ScrollPane component i added to my flash movie. I also want to get rid of the horizontal scroll bar at the bottom of the component.

For better clarity of what i mean, I also attached a picture sample of the scrollPane component.

View 5 Replies

Actionscript 3 :: Handle Stage Reference Of The Scrollpane Component?

Jan 24, 2012

I have created a XML driven shell where I'm calling external SWF files reading from the XML.ome of the SWFs has SCROLLPANE from the component panel of Flash is added on their respective stages. Now if I'm running those files individually, they are working fine. But it is loaded in the shell the below issue is coming.

TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl.containers::ScrollPane/setScrollDrag() at fl.containers::ScrollPane/draw() at fl.core::UIComponent/drawNow() at fl.containers::BaseScrollPane/get

[code].....

View 1 Replies

ActionScript 2.0 :: Loading External Swf Files In A ScrollPane Component?

Sep 21, 2011

I am developping a player with Articulate Presenter and Flash. I would like to put thumbnails that are in a special folder in swf, into a scrollPane. The scrollPane itself is in a clip loaded when I click on the Thumbnails Tab.

Here is my simplified code :

ActionScript Code:
// I first preload the thumbnailsPanel containing the scrollPane
var thumbnailsPanelClip:MovieClip = completeMenu.attachMovie("thumbnailsPanel","thumbnailsPanel",completeMenu.getNextHighestDepth());
thumbnailsPanelClip._y = 35;

[code]....

Well, my problem is that the ScrollPane is not scrolling until the end of the thumbnails, so I don't know if all the thumbnails are loaded. And even worse, exactly one time on two, the Scroll Bar is not showing at all ... !is it a scrollPane pb ? I use it many times in other parts of my project without any problem ... or is it because there are too many thumbnails ? I have around 30 - 40 to load ..

View 2 Replies

ActionScript 3.0 :: Unable To Use Scrollpane Component Cross-browser

May 23, 2009

I made an as3.0 website in Flash cs4. [URL]The content of the pages is placed in a ScrollPane component, that comes with cs4. It all works fine in Chrome, Opera and IE but Firefox and Safari only show the top-left 100x100px.

Here's how it works.index.html holds a variable that tells my flash where to go (agenda, djs, bookings etc.). index.html loads preloader.swf via swfObject. Preloader.swf loads theKitchen.swf and passes a variable to it so it knows where to go, and triggers the init() function.

Code:

var loader:Loader = new Loader();
var go:String;
public function Preload():void
{

[code]...

In the "mainswf" then comes some if/else statements to build the desired page. If you click a button in the menu a function is triggered with an if/else statement that checks if the page that belongs to that button isnt allready shown. If its false the source of the ScrollPane is set to that page.Every page is build in a seperate class. The class ready an XML file that holds all the text/urls to images/ video.

View 4 Replies

ActionScript 3.0 :: Disable Horizontal Scroll Bar In ScrollPane Component

Dec 17, 2009

Is this possible? I don't see how to do so in the manual.

View 1 Replies

Professional :: Use The Date Field Component To Control Another Field?

May 19, 2010

I am trying to use the date field component to control another field... I need the user to select a date from the date field componet this date will display in the field and an additional date in another field will then display with 280 days added. This action will also control the timeline by displaying a graphic overlay at the appropriate frame.

View 4 Replies

Data Integration :: Display Arabic Text In ScrollPane Component?

Apr 22, 2008

I have RSS reader it's work fine with english but the problem is arabic text don't display in RSS reader just english and about to display arabic text in ScrollPane component that component reader info from xml file and display it?

View 1 Replies

Flash - ScrollPane Component Required In Library Even Though It Is Not Being Used By Parent Movie?

Apr 19, 2010

note: all as3 is written in CS4 and compiled for flash 10.I have a parent movie that loads a separate standalone SWF movie. This standalone movie happens to use the ScrollPane component (fl.containers.ScrollPane), and it runs correctly when launched on it's own.When I attempt to have a Parent movie load the standalone SWF, i receive a run-time error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at fl.containers::ScrollPane/drawBackground()
at fl.containers::ScrollPane/draw()
at fl.core::UIComponent/callLaterDispatcher()

I understand that this error can be avoided by adding the ScrollPane component to the Parent Movie library. My question is why is this necessary? If the component is only used in the standalone SWF being loaded by the Loader class, why does the Parent movie require the component to be in the library as well?

View 1 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

Set The Border And Background Color Of A Flash ScrollPane Component To Transparent?

Mar 18, 2011

Does anyone have a simple example of modifying the style of aScrollPane component to set the pane area to transparent?

View 1 Replies

Actionscript 3 :: Dragging Movieclips From Scrollpane Component Into A Movieclip/stage

Oct 2, 2011

Im trying to make a flash map game.Now i have got items in a Movieclip and want this Movieclip into a scrollpane component but i have got probs cause the dragging dont go outside of the scrollpane.

Here is my Code

container.mc_item.buttonMode = true;
container.mc_item.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
function onDown(event:MouseEvent):void {

[Code].....

View 1 Replies

ActionScript 3.0 :: Make A Simple MC Scrollpane (not Component) With Some HtmlText <a>links</b>?

May 10, 2009

Is it possible to make a simple MC scrollpane (not component) with some htmlText <a>links</b>, and enable the drag-and-drop scrolling on it's entire visible body?

View 1 Replies

ActionScript 3.0 :: Add Easing To The Scrollpane (component) When Mouse-click And Drag?

Mar 27, 2012

is there a way to add easing to the scrollpane (component) when you mouse-click and drag?

View 1 Replies







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