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


Similar Posts:


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

Flash :: Null Object Reference In ScrollPane/endDrag() When ScrollDrag=true?

Mar 9, 2010

In my flash application, I've got multiple windows which use Scrollpanes. The scrollDrag property is set to true on these because I want that functionality. If I close (within my application) one of these 'windows' and open another, I seem to get a whole lot of this error showing up in my logs:TypeError: Error #1009: Cannot access a property or method of a null object reference.at fl.containers::ScrollPane/endDrag()Sometimes I get thousands of these, which I'm guessing is probably slowing my app down a bit, but otherwise is not causing a problem. Looking through the adobe code for scrollpane, endDrag is really simple:

protected function endDrag(event:MouseEvent):void {
stage.removeEventListener(MouseEvent.MOUSE_MOVE, doDrag);
}

The stage var is the only thing that could be null here.The only thing I can think to do is set scrollDrag=false before the window in my application closes so that nothing is listening for the event

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

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

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

AS :: Flex - Handle Custom Event In Parent Component?

Feb 6, 2010

I defined a simple event class:

public class NewMoveEvent extends Event
{
public function NewMoveEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=true)

[code].....

View 1 Replies

ActionScript 3.0 :: Customize A Seekbar Component So That Handle Is A Simplebutton?

Aug 17, 2009

For some reason this answer really eludes me, and my googlefu fails... Is it possible to customize a seekbar component so that the handle is a simplebutton (ie up/over/down states), or would I have to write my own seekbar for this functionality?

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

Professional :: Scrollpane - Error #1009: Cannot Access A Property Or Method Of A Null Object Reference"

Jul 26, 2010

I have problem in using the scrollpane in the Components. It can't be used twice for two different scenes but can be used twice in the same scene? The error appear is "TypeError: Error #1009: Cannot access a property or method of a null object reference."

View 1 Replies

ActionScript 3.0 :: Scrollpane - TypeError: Error #1009: Cannot Access A Property Or Method Of A Null Object Reference?

Dec 14, 2011

I have a scrollpane component that is scrolling a movie object.I need to be able to use scrollDrag since it is an app for my phone.It works on the phone, but when I test it on the computer I get an error that I'm guessing will slow the app down as I keep using it.

The error message is TypeError: Error #1009: Cannot access a property or method of a null object reference.at fl.containers::ScrollPane/endDrag()

When I click on the scrollpane to pull up the component properties, if I uncheck scrollDrag the error message go away, but it will not scroll on the phone.When I check the box, it works on the phone but the error message comes back.I don't see a place to put any kind of value in for the scrollDrag in the component properties to keep from having a null reference.

Here is the code I am using with the scrollpane where Scroller1 is the scrollpane and contentslist01 is the movie I'm pulling up in the scrollpane:

import fl.events.ScrollEvent;

Scroller1.setSize(500, 825);[code]...............

View 3 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.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

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

Actionscript 3 :: Handle An Event In A File That Was Dispatched From A Mobile Spark Component

Jan 11, 2012

I have an mxml file called HomeView.mxml in a mobile app built using Flash Builder 4.6. In that HomeView.mxml I have an HSlider, which is dispatching events when the thumb is moved. What I'm trying to do is to listen for that valueCommit event in an .as file elsewhere in the project.

Whenever the thumb moves, an event is dispatched in HomeView.mxml:

hSlider.dispatchEvent(new FlexEvent("valueCommit", true));

I can handle that event in HomeView.mxm, but not in an .as class called view.as

In view.as I import the FlexEvent and I then have, in addedToStageHandler:

stage.addEventListener(FlexEvent.VALUE_COMMIT, commitHandler);

Then there's a simple Handler:

private function commitHandler(e:FlexEvent):void
{
trace("committed!");
}

But this code never runs. I do have a handler in the HomeView.mxml file which handles the event, but for other reasons I need to handle it in view.as as well.

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







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