ActionScript 3.0 :: Object Oriented Scrollbar - Cannot Scroll Contents

Jan 31, 2009

I tried the tutorial on [URL] The Object-Oriented Scrollbar: Part 2 tutorial. Every thing is fine, but when I load the swf to main.swf

- I can scroll the scroller, but not the content
- I got this error

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.leebrimelow.ui::ScrollBar()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at com.leebrimelow.ui::ScrollBox() .....

The scenario is:
- The main timeline play and stop at 56.
- At 56 the main.swf loads the sec1.swf

View 3 Replies


Similar Posts:


Actionscript 3.0 :: Object-Oriented Scrollbar Part 1?

Jan 20, 2010

Clearly i'm a coding Novice, and I am going absolutely insane trying to figure out The Object-Oriented Scrollbar. I have the caurina folder in the same directory as my .fla , but when I publish I get these three error messages:

1172: Definition caurina.transitions could not be found.
1172: Definition caurina.transitions could not be found.
1120: Access of undefined property Tweener.

When I change my publish settings to find the files I get this message: 5001: The name of package 'caurina.transitions' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. /Users/npenta/Documents/AKA::Truth/Web/caurina/transitions/Tweener.as

View 4 Replies

ActionScript 3.0 :: Object Oriented Scrollbar - Getting Error

Mar 17, 2010

I have followed correctly the Object-Oriented Scrollbar: Part 1 [URL] and Part 2 [URL] tutorials and I seem to have a problem when I want to use it with code. I have in my library the following objects:
ScrollBox:Linkage ScrollBox ;
ScrollBar:Linkage ScrollBar ;
Thumb ; Track ; Masker ;
Long (the long content that I am displaying with a scrollBar)

I create a new scroll with this code:
Select allvar scroll:ScrollBox = new ScrollBox();
for(var i:int = 0 ; i<= dictionarXML.length(); i++){
//This are some actions i have in my .fla (the DictionaryWord is a custom class)
var word:DictionaryWord = new DictionaryWord();
word.engleza.text = dictionarXML.cuv[i].engleza;
[Code] .....

View 3 Replies

Professional :: Multiple Instances Of An Object-Oriented Scrollbar?

Jan 31, 2010

Ive gone through the Object-Oriented Scrollbar tutorial on [URL]. Its working great and I have multiple buttons inside of the moveclip it lives within. The problem occurs when I create another one on the same page. I have put one on frame 1 and the other on frame 5 so that I can select a 'category' and the scrollbar movieclip changes to the relevant buttons.Ive duplicated the movie clips and changed the instances accordingly. I keep getting these errors in the Output panel when playing my swf;TypeError: Error #1009: Cannot access a property or method of a null object reference. at as3_movieplayer_fla::MainTimeline/frame1()and when I click the like to the second category it comes up with this error;TypeError: Error #1009: Cannot access a property or method of a null object reference. at as3_movieplayer_fla::scrollbox_1/thumbUp()Not really sure what im doing wrong - or even what these mean!Here is the code from my main actions layer;
 
stop();//buttonsbtn_advertising.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);function mouseDownHandler(event:MouseEvent):void {    gotoAndStop(1);}btn_corporate.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);function mouseDownHandler2(event:MouseEvent):void {    gotoAndStop(5);}//video player scriptfunction

[code]....

View 13 Replies

ActionScript 3.0 :: How To Make Horizontal Object Oriented Scrollbar

Feb 2, 2010

I am using an Apple PowerBook g4, Flash CS4, ActionScript 3 and I am trying to develop and design my own site and truth be told I have no idea what I am doing nor how I will put all the pieces together. But at the moment I am trying to make a horizontal scrollbar using the Object-Oriented Scrollbar: Part 1 tutorial. Basically all I have done is used x instead of y within the actionscript code. However, the only error I am getting is with the import caurina.transitions.Tweener*; code. What comes up in the compiler error report is:

Location) Symbol 'scrollbox' , Layer 'Actions', Frame 1, Line 1.
Discription0 1086: Syntax error: expecting semicolon before mult.
Source) import caurina.transitions.Tweener*;

The caurina file was downloaded the from Tweener Documentation and Language Reference site [URL] and I used the tweener_1_33_74_as3.zip Stable version 1.33.74, Actionscript 3 (Flash 9+) Featured Jun 2009 34.4 KB file. After placing the unzipped caurina folder into my project folder and that not working I have placed in Applications/Adobe Flash CS4/en/First Run/Classes as I read within the forum post "Re: Object-Oriented Scrollbar Part 1" posted by AKA//TRUTH on Wed Jan 20, 2010 12:30 pm.

ActionScript Code:
Code: Select allimport caurina.transitions.Tweener*;
var xOffset:Number;
var xMin:Number = 0;
var xMax:Number = sb.track.width - sb.thumb.width;
[Code] .....

View 2 Replies

Actionscript 3.0 :: Multiple Instances Of The Object-Oriented Scrollbar?

Jan 6, 2012

how to make an Object-Oriented Scrollbar. Its working great and I have multiple buttons inside of the moveclip it lives within. The problem occurs when I create another one on the same page. I have put one on frame 1 and the other on frame 5 so that I can select a 'category' and the scrollbar movieclip changes to the relevant buttons.Ive duplicated the movie clips and changed the instances accordingly. I keep getting these errors in the Output panel when playing my swf;

TypeError: Error #1009: Cannot access a property or method of a null object reference.at as3_movieplayer_fla::MainTimeline/frame1() and when I click the like to the second category it comes up with this error; TypeError: Error #1009: Cannot access a property or method of a null object reference. at as3_movieplayer_fla::scrollbox_1/thumbUp()

Here is the code from my main actions layer;

Code: Select allstop();
//buttons
btn_advertising.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);

[code]....

View 6 Replies

Actionscript 3.0 :: Object Oriented Scrollbar With External HTML And CSS File

Oct 28, 2008

Simply put, what I'm trying to do is create a Dynamic Textfield with custom scroll bars via this tutorial [URL], that renders an external HTML file with CSS attached as its content instead of images like in the tutorial. I've tried a mix and match combination, ultimately, when I test the movie, the scroll bar works, but I see no content to scroll through. I have attached my project file.
prototype.fla [ 80 KiB | Viewed 730 times ]

View 6 Replies

Actionscript 3.0 :: Getting Error:1120 With The Object Oriented Scroll Bar

Mar 1, 2009

I was following Lee Brimelow's Tutorial on making an object oriented scrollbar. I am trying to implement this with a project that im doing. So far im getting this Error.

1120: Access of undefined property masker_mc.

Here is the Code:

import caurina.transitions.*;
var yOffset:Number;
var yMin:Number = 0;

[Code].....

View 2 Replies

ActionScript 2.0 :: Object Oriented Xml Api

Oct 2, 2006

does anybody know about any good open source xml framework for actionscript? I find the one that comes with actionscript is quite cumbersome and unintuitive so I was wondering if anyone there is a framework that loads xml files into objects in actionscript 2.0 if you know of any such framework

View 2 Replies

ActionScript 3.0 :: Object Oriented Game Programming?

Mar 9, 2009

I'm a programmer familiar with object oriented programming, with experience in C++, C# and the MS Visual Studio development environment.

I've been tasked to create a web based game using Flash CS4 and ActionScript3. I am new to Flash, ActionScript and game programming. I have never used previous versions of Flash or ActionScript.

The game will be a single player role playing game. The player will have the ability to create an avatar. The player will move the avatar from screen to screen based on button clicks or drag and drop onto objects in the current screen. Players must register, and player information will be stored in a database backend. Additonal data will be saved to the backend database during game play.The saved data will be based on player actions in various screens, and in some cases data entered in a form on a screen.

For a first pass a stick figure avatar and screens containing simple buttons and simple objects to drag the avatar to will be sufficient. I would like to store data in a database tracking date/time information, e.g. date/time each screen is entered/exited.

View 3 Replies

ActionScript 2.0 :: Functions In Object Oriented Classes

Aug 4, 2009

I'm new to the object oriented stuff and I'm trying to learn how it works. Here's what I've started on - it's led to a few dilemmas. I have one flash file and two .as each with one class. In the timeline of the fla file, it reads:
ActionScript Code:
var FileObject:ScriptFile = new ScriptFile();
function onEnterFrame(){
FileObject.CallInput();
}

Call input is a function in "ScriptFile.as" that calls another function in "Input.as";
ActionScript Code:
class Input{
public function Input(){
} public function keyListener(target:Number):Number{
[Code] .....

In output, when I press Left, it will say -5 over and over again, and I'm trying to add to xpos value but that isn't happening.

View 1 Replies

ActionScript 3.0 :: Understand Object Oriented Programming

Sep 28, 2010

I have no background in programming and at 49 it seems that I am having a hard time understanding AS3, especially AS3 OOP. I wonder if I should give up at this point. I have been studying AS3 for 3 months now. Here's what I don't get right now.:

[Code].....

View 7 Replies

Flex :: Show Scrollbar To Navigate Over Tabs Only (Not Contents)

Mar 3, 2010

I need to make a tab navigator in flex3. If no. of tabs increases then I need to show scrollbar to navigate over the tabs. I am trying to do this using tabBar. But if no. of tab increases it puts scrollbar around the parent of tabBar and its content. Whereas i need to scroll only tabs not its content like in firefox.

View 1 Replies

ActionScript 3.0 :: Designing Scrollbar - Contents Does Not Flow Freely

Apr 19, 2009

I have to design this scroll bar. Whats special about this scroll bar "contents" it doesn't flow freely. If it stops in a certain position. It either scrolls a little bit up or little bit down so to say the beginning of a paragraph.. I tried using this if _y=min

View 1 Replies

ActionScript 2.0 :: Apply OOP(Object Oriented Programming) In Flash?

Jun 12, 2009

I have been trying to make a tic tac toe game in F8.The code has gone too long,it has repeated many times,hopelessly.

How can I apply OOP(Object Oriented Programming) in flash actionscript like as in Java?[code]...

View 1 Replies

Actionscript 3 :: Recommendation For Object Oriented Programming Preferrably With A Focus?

Jan 22, 2010

I know there are a billion questions regarding what books are best and I'm sorry for posting another, but all of them see to have an orientation to a language I am not familiar with.

My problem is I learned to program before OO became big, then I stopped programming for a few years, moved into web design, moved into coldFusion, and now find myself in PHP, actionScript and FLEX.

I have muddled along for quite some time, but I am really struggling with my understanding of OO and would like a good book that will help me out with it. If that book is geared towards Flex and AS3 then that would be awesome, but if it had no language specified either I would be happy. I'm just not sure how reading a book oriented to Java or whatever is going to help my understanding of AS3.

View 5 Replies

ActionScript 3.0 :: Object Oriented Game - Referencing Dynamic Objects

Jun 26, 2009

I'm doing this object oriented game and I create a bunch of 'boxes' via a for loop

Code:
Select allfor (var z=0; z < numOfBoxes; z++){
var box:Object = new Object();
box.mc = new Box();
box.mc.name = "box"+z
box.mc.x = Math.round((Math.random()*(530-box.mc.width)) + 20);
for (var i=0; i<boxXArray.length; i++){
[Code] .....

I get my random amount of boxes scattered over my stage (I haven't put in any checks to see if they are touching). How do I 'name' these boxes so I can reference them later? Say I want to move the .x of boxA in another function? Is there a simple way to call them box+z instead of just all as box? (Then I can run them through a loop later to talk to them).

View 2 Replies

ActionScript 2.0 :: Object Oriented - Apply A Movement To Each New Ball Created

Mar 19, 2007

I am dynamically creating a movieclip, say, a ball. I want to apply a movement to each new ball created. I have created a movement function and now I need to know how to use this function as a method on each newly created ball. Would I do something like this:

[Code]...

View 2 Replies

ActionScript 3.0 :: Creating Full Site With Object Oriented Programming?

Dec 29, 2010

Any links to any tutorials that teach how to create a full site with Object Oriented Programming? I am one year in now on Flash and AS3 and think I am getting pretty good at the basic AS3 principles and creating dynamic sites. Now I want to start migrating over into OOP so that I can create the more dynamic and browser friendly Flash Sites, but OOP is much more complex and would like a good example or sample of how to finish a full site under OOP coding.

View 6 Replies

ActionScript 3.0 :: Flash - Object Oriented Game Design Error?

Apr 6, 2012

ame_Manager.as= this manages the creation of balloons, players and collisionsBalloon.as= This is the balloon classPlayer.as=This is the player classThe Game Manager class will pass stage to the balloon and player classes and create them. I add these two in the Game Manager class.In the balloon class i add all the balloons in an balloon array.Now when i run the code i am unable to check for collisions as nothing happens when the player and balloon collides. and i get a child must be a caller of the display object when i ry to remove the balloons after they have crossed the stage.I have been trying to make it work for a long time a the game is very very simple.in the Object Oriented way of designing this simple game as i think that is where my error might be.I will post the code for these belowGame Manager.as

Code:
public class GameManager extends MovieClip{
public var backGround:BackGround;

[code].....

View 4 Replies

ActionScript 2.0 :: How To Make Auto Scroll For Contents

Sep 4, 2006

I tried to make auto scroll for contents. It works but someting is wrong
[AS]
function core() {
buttons_height = 566.3; //this is the height of the contents (buttons)
mask_height = 319; //this is the height of the mask (mask)
the_speed = 6;
if (mask.hitTest(_root._xmouse, _root._ymouse, false)) {
mousepos = _ymouse;
[Code] .....

View 1 Replies

ActionScript 2.0 :: Printing Contents Of A Scroll Pane?

May 12, 2009

I'm using a scroll pane component to contain a horizontally scrolling timeline. I'm also setting up a print function, which has worked fine for me in the past (i.e., sans scroll pane). However I find that with the scroll pane, it only wants to print the elements of the scroll pane and not the contents. Is there a simple workaround or other solution for this?

View 2 Replies

ActionScript 3.0 :: Object-oriented Event.COMPLETE - .LOAD Line (in Red) Be Executed Only After The Image Completes Loading?

Mar 9, 2011

I have no experience with Object Oriented Programming, so I wonder about the following:

1) Will the code past the .LOAD line (in red) be executed only after the image completes loading?
2) Can I nest several listeners as seeing in my code below?

[Code]...

View 7 Replies

Actionscript 3.0 :: Scroll The Contents Horizontally If The Text Is Too Long?

Dec 9, 2010

I have a text box that loads content from an .xml file. I need it to scroll the contents horizontally if the text is too long to fit in the box. Similar to a marquee...

View 1 Replies

IDE :: Scroll Textbox Without Scrollbar?

Aug 8, 2009

Is there any simple way to scroll a dynamic textbox with easing, without having i scrollbar visible? perhaps something that scrolls when mouseover? Every tutorial i found is with a scrollbar, and still i come across the kind of scroll that doesn't have a scrollbar!

View 1 Replies

ActionScript 2.0 :: Activate Scroll Only Towards End Of Scrollbar?

Jan 21, 2010

I have a scrollbar that scrolls left or right when the cursor is moved either side of the central x coordinate. I've been trying to change it so the scroll only activates when the cursor is towards the far right hand side (ie x>75%) or towards the far left hand side (x<25%) of the scrollbar, leaving the central 50% of the scrollbar inactive.

Code:

function scrolling() {
_root.onEnterFrame = function() {
container_mc._x += Math.cos(((mask_mc._xmouse)/mask_mc._width)*Math.PI)*15;

[code].....

View 5 Replies

Flash :: Scroll List With Different ScrollBar?

Jul 23, 2011

I'm using the List and UIScrollBar components. I've got a list with a scrollbar placed far from it. I want to disable the built-in scrollbar in the list and scroll it with a different scrollbar. How is this possible?

View 1 Replies

Flash 8 :: Scrollbar - How To Scroll Content?

Dec 22, 2011

I have several scenes in a Flash app; for some of them the Movie height is right while for others the content is very long so i would need to have scrollbars to let the user scroll down.Which is the correct way to handle it in this old version of Flash?

View 1 Replies

ActionScript 3.0 :: Cant Seem To Get Scrollbar Conected To MC To Scroll It

Jan 22, 2010

i have a bunch of variables loaded into a movie clip and taken the data and created a comment post / shout box the problem im having is i cant find anything on scrolling an mc using the uisrollbar everything i have found has been with custom scrollbars and scrollbar classes.Url..In the first example it is the data loaded and placed into a MC and the second example i have tried to load that MC into a scrollpane but it doesnt scroll right.As you can see its scrolling right past all the post into blank area when it shout stop at the last post. The other problem is if there is more then 8 entries into the databse it wont even scroll to the last few entries....so obviously its not recognizing the hight of the MC properly maybe i need to force it some how but i dont know.I have tried a masking scroll but i cant seem to get the scrollbar conected to the MC to scroll it.some sample code or perhaps a good tutorial on using the uiscrollbar with a mask scroll.One last thing i shout ask is should i be using variables or XML passed from php to acomplish this entry viewer?

View 0 Replies

ActionScript 2.0 :: Scroll Masked MC With Buttons (no Scrollbar)?

Jul 1, 2009

I'd like to scroll (with ease) my masked movie clip up/down with buttons. I do not want to use a scroll bar.

View 1 Replies







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