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


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

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 :: Make Image Gallery With Thumbs And Horizontal Scrollbar?

Aug 1, 2009

how to make image gallery with thumbs and horizontal scrollbar. if images are more that three scrollbar is shown otherwise it will hide.

View 2 Replies

ActionScript 2.0 :: Convert This Vertical Scrollbar Into A Horizontal Scrollbar?

Apr 26, 2009

how I would convert this vertical scrollbar into a horizontal scrollbar

heres the code:

onClipEvent (load) {
diff_y = bound_box._height-scroller._height;
bounds = bound_box.getBounds(this);
top = bounds.yMin+(scroller._height/2);
bottom = bounds.yMax-(scroller._height/2);

[code]....

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

ActionScript 2.0 :: Creating A Custom Horizontal Scrollbar ?

Jul 19, 2011

I would like to know how can I make a horizontal scroll bar in AS2?I have make a vertical one already and using the below script, what should I change then let the scrollbar become left to right?

var scrollUpper:Number = 9;
var scrollLower:Number = 158;
var textLower:Number = 0[code].....

View 4 Replies

Whole Animation To Fit Whole Screen Without Users Horizontal Scrollbar

Jun 3, 2009

URL...I really like the style and I think it's Flash but not sure.How do they get the whole animation to fit the whole screen without a users horizontal scrollbar coming in? Is this something you can set in Dreamweaver when you upload it?

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

Professional :: Horizontal Scrollbar In List Not Working

Apr 29, 2010

I've got a List component set up but some of the text exceeds the space available and so I'm trying to add a horizontal scrollbar as well as the vertical one.In the component inspector I've set the horizontal to "on" and given it a width of 200 (my component has a width of 150).However, it cannot be scrolled and I get this error message: TypeError: Error #1009: Cannot access a property or method of a null object reference. at AWorkingFile1_fla:: Main Timeline/baseData()Is it actually possible to get the scroll bar to work?

View 2 Replies

Flex :: Removing The Scrollbar From Horizontal List?

Jul 14, 2010

I've got an Horizontal List. It contains 6 XML Nodes at the moment. But what I'd like to do is remove the scrollbar so that an button can function to scroll through the nodes instead.

View 1 Replies

ActionScript 2.0 :: Horizontal Scrollbar Not Working Properly?

May 3, 2010

I'm coding a horizontal scrollbar that will contain several movieclips. The scrollbar has a few ways to scroll through it, a traditional scrollbar (scrubber & track), a next and a previous button that will scroll from clip to clip, and finally clicking on the scrollbar track to go to that point. However the bar doesn't full scroll back to it's original start point and at the opposite end it scrolls a little too much past the end of the clip. The same with the next and previous buttons you click the previous button it comes up just short of the original start point and the next button goes just a little further then it should. I cant seem to figure out whats wrong with it. I realized this is kind of a hard problem to explain so I attached an fla file (CS3 & CS4).

Here is my code:

ActionScript Code:
Stage.scaleMode = "noScale";
Stage.align = "TL";

[code]....

View 0 Replies

ActionScript 3.0 :: Photo Album With Horizontal Scrollbar

Nov 10, 2010

Just as the title says.. I am trying to make a Photo Gallery with a Horizontal Scrollbar,

View 0 Replies

ActionScript 2.0 :: Create A Horizontal Scrollbar Instead Of The Vertical?

May 4, 2008

I've tried to use the "Simple Custom Scrollbar" tutorial to create a horizontal scrollbar instead of the vertical. I've changed the defenitions like this:

scrolling = function () {
var scrollWidth:Number = scrollTrack._Width;
var contentWidth:Number = contentMain._Width;

[Code]....

I put the "Width" instead of the "height", and "x" instead of "y". What I've got is when I push on the "scrollFace" button it slides but disappears immidietly, and the the image (which is "movieclip" as well) beneath the masked area freezes.

* In addition - I have to make this scrollbar move from right to left - Is there any additional defenitions I must concern?

View 2 Replies

ActionScript 2.0 :: Horizontal Scrollbar And MoveIt MC Transitions

Aug 22, 2011

I am using a MoveIt function to show a horizontal scrollbar in State 1 and then another mc in State 2. The scrollbar is working perfectly when the flash animation loads but after I switch to State 2 and back to State 1 the scrollbar no longer functions.I would like to make it so that the scrollbar stays in its last position and is always working without reloading.[code]

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

Drag And Drop With Horizontal Scrollbar And They Will Enlarge (with Some Text)

May 13, 2009

I'm working on a schoolproject and I have a flashapplication that I want on my site. In this image you see a horizontal scrollbar and a vertical scrollbar. In the middle are the photographs, those you'll click in the horizontal scrollbar and they will enlarge (with some text). That's the red arrow. The yellow arrow is the thing I wanted too. When you click a photograph in the horizontal bar en you hold em, you can drag that photograph in the vertical bar and drop it there.

View 4 Replies

Flex :: Horizontal Scrollbar Hides Content Of ApplicationControlBar?

Oct 9, 2009

I have an application control bar at the bottom of my Flex application (with attributes width="100%", dock="false", left="0", bottom="0", height="50"). It contains a lot of elements (like buttons and labels). The width of the SWF is the width of the browser.When the user makes the width of the browser window smaller, after a certain point, thecomponents on the application control bar gets "squished": they are forced on top of each other. And so, it becomes confusing and ugly. To ensure that that doesn't happen, I've set the minWidth attribute to a value so that it'll always display the components without them overlapping each other.

But then, a horizontal scrollbar appears and hides the bottom half of the application control bar.I've googled and I found this article: flex verticalscrollpolicy bug (referenced by this SO question: Flex: Prevent scrollbar from covering content when automatically displayed).But that seems to apply only to a fixed size component. My component's width is a percentage. how to have the horizontal scrollbar appear and have it not cover up the application control bar?

View 3 Replies

Flex :: 4.5: Displaying Horizontal / Vertical Scrollbar On Canvas

Aug 1, 2011

I have a canvas lets say the size of it on the screen is 500x500. But I want the actual canvas size to be 1000x500 making the other half scrollable. How can I make a blank canvas with that specification?

View 1 Replies

ActionScript 3.0 :: Horizontal Scrollbar Doesn't Appear - Error 1046

Sep 2, 2009

I read some of the other posts concerning scrollbars but they didn�t solve my problem. I created a simple horizontal scrollbar but it doesn�t appear on my screen at all. Instead I keep receiving the following error message (I translated it from German so it might not be 100% correct):

1046: Type has not been found or there was no Compiling time constant: ScrollEvent.

The error lies with "public function scrollHandler(event:ScrollEvent): void { ".

[code]....

View 9 Replies

ActionScript 2.0 :: Simple Scrollbar - Smooth Horizontal Scrolling

Oct 2, 2011

I've made the kirupa simple scrollbar [URL] to scroll horizontal. This works just perfect but it is not smooth. My question to you is - how to make it smooth? I've got 4 MC's with the instance names content, mask, scroll_area and scroller.

My AS looks like this:
onClipEvent (load) {
_root.content_width = content._width;
_root.scroller_area_width = scroll_area._width;
scroller._width = _root.scroller_area_width/(content._width/scroll_area._width);
_root.scroller_width = scroller._width;
[Code] .....

View 1 Replies

ActionScript 2.0 :: Horizontal Scrollbar To Control Vertical Movement?

Feb 9, 2009

I've been struggling with a horizontal scroll bar controlling vertical content movement. Can anyone help me? I'm using AS2 in CS3 and I have tried the search function....in vail..

View 4 Replies







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