ActionScript 3.0 :: Trying To Make An X-scroller Class?

Oct 3, 2009

I was trying to make a some gallery that has scrolling thumbs, and I already had a function that scrolls the thumbs in one of my old files. I tried to turn that into a class but I'm having some trouble...  here's the code:

[Code]...

basically what I'm trying to do to make this class to use it later simply by passing in the parameters of the init() method but it is not working. so where did I go wrong about this?

View 11 Replies


Similar Posts:


ActionScript 3.0 :: Trying To Make X Scroller Class

Oct 3, 2009

I was trying to make a some gallery that has scrolling thumbs, and I already had a function that scrolls the thumbs in one of my old files. I tried to turn that into a class but I'm having some trouble...

ActionScript Code:
package {
import flash.display.MovieClip;
import flash.ui.Mouse;
public class ScrollerX {
public function ScrollerX(){
[Code] .....

Basically what I'm trying to do to make this class to use it later simply by passing in the parameters of the init() method but it is not working.

View 8 Replies

Flex :: Scaling An Image In A Scroller Resizes The Scroller When Relative Dimension Are Set To The Scroller?

Mar 9, 2010

I would like to position relatively a scroller in my application like below.When I scale the image, I resize the scroller...

<s:Scroller width="50%" height="50%" >
<s:Group>
<mx:Image

[code].....

View 2 Replies

ActionScript 3.0 :: Delete Scroller From Other Class?

Jun 2, 2010

I have FlashSite class where after clicking to button i see page with text and with scroll. If i click to 'close' button i want removeChild this page, text and scroll. But for scroll i use code from other class. (i insert this class like: import classes.Scroller.*;)
 
So, how i can remove this scroller?
 
code:
public function lilyContent():void
{
// create a sample pane

[Code].....

View 2 Replies

AS3 :: Make A Scroller With Inertia?

Apr 26, 2010

I've been trying to make a scroller, but the movieclip IS the scroller (if that makes sense?)So I have a movieclip that's, say, 1920 wide, and the stage just resizes to the browser, and when you drag the movieclip it scrolls. I have this semi-working but it's quite buggy on resize, and i also want inertia on the movieclip when it moves.

View 9 Replies

Make A Scroller Vanish On Mouseout?

May 11, 2009

I'm using the following to reveal scrollers on mouseover, but although one replaces another when I move the cursor over the buttons, when I move the cursor away from all buttons or move to another area on the page, the last scroller I moused over remains visible -- can anyone tell me what I need to change on the following code to make the scroller vanish on mouseout?
 
on (rollOver) {
gotoAndPlay("s1");
_root.scroller.swapDepths(2998);

[Code].....

View 3 Replies

ActionScript 2.0 :: How To Make Dynamic Scroller

Oct 22, 2009

I have this scroller but I don't know how to make it dynamic

View 6 Replies

ActionScript 2.0 :: Make A Custom Scroller?

Jun 14, 2003

How can i make a custom scroller

so i have 2 movie clips, one moves text up and the other down

View 3 Replies

Professional :: Make A Custom ScrollPane/scroller?

Aug 14, 2011

I want to make a MC that holds various Data such as textfields images maybe a video, ect just basic content, so i want to put that into a MC and be able to scroll it. But i cant figure out how to do this, no tutorials on the internet. And i dont want to use the UIScroller and Scrollpane components as they are highly unnatractive.. It is for a touch enabled device so maybe a gesture could be used? But im sure a Mouse Event would work,

View 1 Replies

ActionScript 3.0 :: Make A Horizontal Image Scroller?

Oct 15, 2009

How can I make a horizontal image scroller that when u click and hold would allow me to scroll through a pan with hotspots(buttons)? I have this script which does the basic functions I am wanting but it if I drag right enough I can drage the MC right out of the frame. I would like to be able to scroll right and then when it meets the very right edge of the movie clicp and the actual movie frame it won't go further. Same with the left edge.

Code:
var mouseStartX:int;
var mouseStartY:int;
var bgStartX:int;[code].......

View 4 Replies

ActionScript 2.0 :: Vertical Sliding Scroller Based On A Tutorial For A Horizontal Slide Scroller

Feb 21, 2004

I am trying to build a vertical slide scroller based on a tutorial for a horizontal slide scroller and am having difficulties undertanding what values I need to change in the code for the slider mc in order to make it work. The horizontal slider is quite smart [code]

View 3 Replies

ActionScript 2.0 :: Make Xml Driven Thumbnail Scroller Repeat(loop)?

Dec 12, 2007

I am creating a thumbnail scroller and I have everything set to work. The last final issue I'm having is this:

The scroller displays 25 items.

8 at a time.

When you page left/page right it scrolls to the next(or previous) 8 thumbs in the list.

This is what we want to happen:

Once the final (25th) thumb is reached it starts over on the first thumb again and we are back at 1. So that it becomes an endless loop.[code]...

View 1 Replies

ActionScript 2.0 :: Make A Scroller For A MovieClip With A Static Text Inside

Sep 9, 2005

I'm trying to make a scroller for a movieClip, with a static text inside does any one Know how can i do it. (I don't need the arrowfor this case but only the code for the scrolling bar)

View 5 Replies

ActionScript 2.0 :: Make A Dynamic Scroller That Reads All Text From A Xml File?

Aug 15, 2007

how to make a dynamic scroller that reads all text from an xml file.

Kinda like a way to insert text into a movieclip without it having a set text field height..

View 5 Replies

ActionScript 2.0 :: Make A Simple Horizontal Image Gallery Scroller

Jul 23, 2008

I'm trying to make a simple horizontal image gallery scroller. Not sure what I'm doing wrong here. I've gotten the slider tab to work properly, but the masked image gallery is not moving at all when the slider is pulled. I included the Flash 8 FLA for the scroller in the post below.

View 1 Replies

ActionScript 3.0 :: Activate The Browser Scroller With A Site Make Full In Flash?

Mar 9, 2012

[URL]make fully in flash, can interact with the brwoser size (try to resize the windows and see what happen). I thought that it isn't possible, but i unserstoond that i was wrong after saw the louis vuitton site.. Then how i can activate the "browser scroller interfacing" with my swf?

View 2 Replies

ActionScript 3.0 :: Make Vertical Text Content Scroller Working In A Flash

Jul 26, 2009

I've tried for hours and days to make my vertical text content scroller working in a flash fake 3d environment with rotationX / Y. But because of vector>bitmap conversion when 3d roationing, the scroller fails to works. I know the stratDrag method fails to work in a 3d environment. other than using PV3D or so ? cause I don't know how to work with PV3D, it's just tooooo complicated to get it for me.

View 1 Replies

ActionScript 2.0 :: Pre-loading - Make A Scroller As It's Own Movie And Simply Import It From A Library?

Jan 20, 2004

On a few rather cliche'd flash sites, the loading process is preceded by a scrolling bar in which the percentage of loaded bytes or frames is shown. instead of making a new % scroller for every file/movie I make (and want to display separately), could I make a scroller as it's own movie and simply import it from a library? (Dumb question, I know, but I'm the kinda guy who'd prefer Perl over PHP.)

View 1 Replies

ActionScript 2.0 :: Menu Text Above Scroller It Controls The Scroller?

Jul 29, 2005

my problem is that if you go over the menu text above my scroller it controls the scroller. I wan this areas movement to have no effect on the scroller below. is there a way to script my scroller to set it to this?

View 1 Replies

ActionScript 2.0 :: Convert Vertical Scroller To Horizontal Scroller?

Aug 17, 2007

have a cool vertical scroller that I did try to convert to horizontal, but I could not make it work.

//code by Billy T
//set a variable
targY=0;
//set the x position of the dragger
dragger._x = 370;

[code]....

View 4 Replies

ActionScript 2.0 :: Change Vertical Scroller To Horizontal Scroller?

Jan 10, 2011

change vertical scroller to horizontal scroller?

View 2 Replies

ActionScript 2.0 :: Make A Horizontal Scroller, That Pulls Images From An XML Document, And Scrolls Them Infinitely?

May 9, 2008

Im trying to make a horizontal scroller, that pulls images from an XML document, and scrolls them infinitely.I have 2 problems with this and I have been looking everywhere for a tutorial, or example that shows how to do this and I always find something that is close to what I want but not quite.Here is what I have so far:

Code:
var mcLoader:MovieClipLoader = new MovieClipLoader();
var mcListener:Object = new Object();[code]....

What I'm wanting to do is instead of using 490 (underlined), I want to be able to get the width of each loaded image so that I can line up the next image right up against it regardless of its width (490 just happens to be the width of all of them right now).I'm trying to use the onLoadInit() function, but I know I'm doing something wrong. When I try and trace my mainLoader variable, it traces the right amount of times, but they are all the last object in the group.What do I need to do to be able to get the widths of each image as it loads, then use that variable to position the next image right after it?

also (a semi unrelated help request), what I'm doing right now is loading them ALL in creating one giant line of images, then loading in another giant line of images and just alternating between the 2 each time one is almost to the end of its length. Is there a better way to do this so that only the right amount will load, and scroll, at the beginning adding the one right before it enters stage, and as they move off stage they are removed, then when it's near the end it just adds the first one back to the end?

View 6 Replies

ActionScript 2.0 :: Vertical Scroller To Horizontal Scroller?

Oct 24, 2009

I would like to use it as a horizontal scroller for an image gallery. Just to clarify a horizontal dragger and a horizontal stage motion for image viewing.

fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 20;

[code]....

View 0 Replies

ActionScript 3.0 :: Scroller That ACTUALLY Replaces Browser Scroller?

Jul 23, 2009

I can find tons of articles/tutorials on custom scrollers but none of them actually replace the browser scroller. If the browser is made smaller the custom scroller and the browser scroller are there. [URL]...

View 1 Replies

ActionScript 2.0 :: Build A Vertical Slide Scroller Based On A Tutorial For A Horizontal Slide Scroller?

Feb 21, 2004

I am trying to build a vertical slide scroller based on a tutorial for a horizontal slide scroller and am having difficulties undertanding what values I need to change in the code for the slider mc in order to make it work. The horizontal slider is quite smart and there is additonal functionality attached to it to affect it's movement which I'm not too worried about although it would be nice)

Code:
// set up content_mc info
contentRight = _root.content_mc._x;

[code].....

View 3 Replies

ActionScript 2.0 :: Flash 8 / CS3 - Make The Scroller Refresh To Allow For New Text In The Dynamic Text Area

May 29, 2007

I'm using the dynamic text scroller from [URL] found at [URL] Here's a link to my zipped files too... [URL]

1) I can't figure out how to have URL links in the text that loads.

2) How can I make the scroller refresh to allow for new text in the dynamic text area. The content changes alright, but the scroller stays in the same position and if it wasn't needed initially, the scroller disappears and doesn't return on new text.

View 2 Replies

ActionScript 2.0 :: Text Scroller/Ticker - Make It 'shuffle' The "headlines"?

Dec 21, 2007

This is a nice xml based actionscript driven Flash Text Scroller/Ticker.I'm wondering if anyone sees a way to make it 'shuffle' the "headlines"?

Actionsctipt:

Code:
var width = 744;
var height = 22;
var framerate = 30;[code]......

View 3 Replies

Flash - Make A Flex/AIR Scroller With An HGroup "snap" To Each Item When Scrolling Completes?

Feb 23, 2011

I'm developing an app for ANDROID devices using Flash Builder Burrito and am having trouble figuring out how to accomplish one aspect of my app.I have an HGroup inside of a Scroller. The HGroup has images that are 400px in width and I have the width of each HGroup column set to 400px. Although the number of items is dynamic, assume I have 10 images in the HGroup. The width of the Scroller and Viewport is set to 400px.

So far so good -- the user can see a single image within the scroller. The user can then scroll left or right using touch or mouse and see each image. But here's where I'm stuck. I want to make it so that when the user STOPS scrolling the scroller then "snaps" an image into view. In other words, I don't want half of one image and half of another image in the viewport.

Seems pretty straightforward but I can't figure it out. Part of the issue is that there doesn't seem to be an event to use for this purpose. I know I can hook in to PropertyChangeEvent.PROPERTY_CHANGE or MouseEvent.MOUSE_UP/TouchEvent.TOUCH_END (which is what I'm doing now) but that event doesn't really give me what I need.

I really need an event that fires when the user releases the mouse as part of the scroll or lifts their finger off the device as part of the scroll. And then I need to wait for the scroll to stop. For example, if I do a really fast swipe I need to wait for the scroller to stop or almost stop before I perform the snap. The event fires as soon as I let go of the mouse or take my finger off the tablet, so if I alter the horizontal scroll pos then it gets overwritten by the "slowing down of the scroller".

By the way, I know I can use modulus logic to show each image "whole". That's not where I'm stuck -- I'm stuck at which event to use to know WHEN to perform this mod logic.

Note that what I've already developed works just fine if I slowly scroll and then let off the mouse. It's only when you slide more rapidly that it ceases to work.

Here's my partially working code:

private function onVehicleScrollerMouseUp(event:Event):void
{
snapScroller();
}

[code]....

View 2 Replies

ActionScript 2.0 :: Make Class Instances Into Listeners And Broadcasters From Inside Each Class?

Jul 8, 2007

I want to know how to make class instances into listeners and broadcasters, from inside each class. Here is what I am trying specifically... part of the Proj class... (projectiles, as a matter of fact)

Code:
private function listen():Void {
u.register(this);
onUpdate = function(){
step(); // a function I have which makes the projectile move (not shown)
}
}

where "u" is another class, the Updater class with this code...

Code:
class Updater {
// const. --- make this a broadcaster
public function Updater(){

[code]....

PS: What is the syntax for using AS2 code tags instead of just "[CODE|"?

View 2 Replies

Actionscript 3 :: Use The Class Datatype To Make A Class A Property?

Jan 9, 2011

can I use the Class datatype to make a class a property, then create new objects from that class? Like so:

class Foo{
private var ExampleClass:Class;
public function Foo(exampleClass:Class){

[Code]....

View 1 Replies







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