Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Ingale... Found Your Easing Scrollbar


http://www.flashkit.com/movies/Scrip...3848/index.php




FlashKit > Flash Help > Flash MX
Posted on: 08-26-2003, 03:50 AM


View Complete Forum Thread with Replies

Sponsored Links:

I Found A Great MC Scrollbar, Now Help Me Make It Scroll Dynamic Text Too.
I found this great draggable scrollbar that scrolled an MC. It works like a charm and is very snazzy. What I would like to do is have the same daggable scrollbar on my dynamic text fields. Is this possible, and if so, what in the script below would I have to change??

The way I have my dynamic text fields is a very simple:code: loadVariables("bla.txt", ""); Then have the texfield have a var. called 'text' and then have the actual .txt file start with text=blablabla

Anyway, here's the script for the draggable scrollbar:
code: fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=true;
space = 50;
friction = 10;
speed = 10;
y = dragger._y;
top = main._y;
bottom = main._y+mask_mc._height-main._height-space;
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
dragger.scrollEase();
};
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
this._parent.dragger._y = this._parent._ymouse;
this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
} else {
this._parent.dragger._y = this._parent._ymouse;
}
dragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {
clearInterval(myInterval);
} else {
dragger._y += d;
dragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 5, -1);
};
down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 5, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._y-y)/(bar._height-this._height);
dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);
main._y += dy;
};
};

There were up/down arrows, but I removed those just to have the dragger and the bar.

Many thanx in advance...

View Replies !    View Related
Easing Scrollbar
Hey,

Can anyone help me create this easing scrollbar...

http://www.stevemurray.com/flashindex.html

Thanks.

View Replies !    View Related
Easing Scrollbar
Hi guys,
I've been searching high and low for a tutorial on creating an easing scrollbar similar to those in use over at fontsforflash.com, but have only found things like flashloaded payperuse components and woudl obviously rather make my own..
Does anyone know of any good tuts on the subject or has a fla I ca take a look at? I'm really after something that can just ease/scroll my dynamic text content.

Thanks in advance..

View Replies !    View Related
Easing A Scrollbar..
Hi kirupians.. heheh well im trying to add "inertia" to this tutorial

http://www.actionscript.org/tutorial...II/index.shtml


i want when you scroll down the text kinda sliiiides... or boings, so its not so choppy .. if anyone knows this it would be MUCH appreciated!!!

View Replies !    View Related
Another Easing Scrollbar
I got a request and decided to package my scrollbar as a component at put it up for download.
There is of course already plenty of scollbars to choose from, and mine is not that special but quite flexible and very lightwieght (4k uncompressed).

It's not using the V2 framework to keep it lean and simple and it should be fairly easy to use I hope.

The features:
Can scroll one or several movie clips, text fields or buttons.
Responds to mousewheel, arrow keys and page up/down keys.
Configurable easing.
Fairly easy to alter style by simply editing the component.
Drag area that resizes with the amount of content to scroll.
Can update when changing the size of the content to be scrolled.

Get the download here.

View Replies !    View Related
Easing Scrollbar?
Can anyone help to get an easing effect in the custom scrollbar by kirupa ( http://www.kirupa.com/developer/flash8/scrollbar.htm )? I saw an old post by MichaelxxOA in the forums on this topic ( http://www.kirupa.com/forum/showthre...=206127&page=3 ) , but did not get the code to work...

View Replies !    View Related
Easing Scrollbar
Hi guys,
I've been searching high and low for a tutorial on creating an easing scrollbar similar to those in use over at fontsforflash.com, but have only found things like flashloaded payperuse components and woudl obviously rather make my own..
Does anyone know of any good tuts on the subject or has a fla I ca take a look at? I'm really after something that can just ease/scroll my dynamic text content.

Thanks in advance..

View Replies !    View Related
Easing Scrollbar
hi does anyone know how to make a scrollbar that when you drag it it blurs?

if they do please post it

thanks

View Replies !    View Related
MX2004 Scrollbar With Easing
Anyone know of a good place or have some source code for a textbox & scrollbar with ease?

I would like to be able to load an external text file, apply CSS to it, and have motion easing when you drag the scrollbar.

Any help would be much appreciated!

Thanks,
Cody

View Replies !    View Related
Easing Text In Scrollbar
I saw nice Easing text in scrollbar in lot of flash sites.
Exist some tutorial for this?
Do you know what i mean?
If no I will found some example.

View Replies !    View Related
[F8] How To Actionscript Easing For Scrollbar
Hi, I hope someone can help me with this.

I need help with using actionscript to ease/add inertia to scrolling of a movie clip that is controleld by a scroll bar. I hope this could prove more fruitful than other posts on this because I have the scroll bar working, it just works like a normal scrollbar and doesn't ease.

You can view my testing page here

The actionscript basically produces a number which the main content is moved by. It really isn't a complicated setup but I will post my source if someone needs it.

I was previously told setInterval might work but I haven't had any success with that.

Thanks

View Replies !    View Related
Custom Scrollbar With Easing
can someone point me in the direction of a good tute or info on creating a scroller mc with easing? The scrollbar type NOT the up and down buttons that require a mouseclick.

I want to be able to scroll mc's based on the vertical or horiz. position of a custom scrollbar made in photoshop.

not interested in skinning pre-built flash components quite yet...

I'm interested in figuring out how to set up the scrolling function based on the height of my content and all that good stuff...

i've been trying to dissect several posted .fla's but can't quite figure out how to get the code working with my specific graphics/objects...

any pointing in the right direction is appreciated!

View Replies !    View Related
MX Scrollbar Component Easing?
hey all I know ive seen ppl use easing on scrollbars before, although Im not sure if they were components....does anyone know how this is done exactly?

View Replies !    View Related
Easing The MX Scrollbar Component?
Has anyone achieved this yet?

I found a thread on the actionscript.org forums where someone managed to create an easing effect that can point to X and Y values of the content and move there with easing, but the scrollbar itself isn't eased.

Can anyone point me to a tutorial or thread on how to make the scrollbar in flashMX easing?

Thanks

View Replies !    View Related
Problem With Easing Scrollbar
Hi there,
can someone help me with thisone: I've used the script from this board that was posted a week ago I presume.


ActionScript Code:
fscommand("allowscale", "false");_root.main.attachMovie("boxContect", "boxContect", 1)bar.useHandCursor = false;space = 20;friction = 0.9;speed = 4;y = dragger._y;top = main._y;bottom = main._y+mask_mc._height-main._height-space;dragger.onPress = function() {    drag = true;    this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);    dragger.scrollEase();};dragger.onMouseUp = function() {    this.stopDrag();    drag = false;};bar.onPress = function() {    drag = true;    if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {        this._parent.dragger._y = this._parent._ymouse;        this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;    } else {        this._parent.dragger._y = this._parent._ymouse;    }    dragger.scrollEase();};bar.onMouseUp = function() {    drag = false;};moveDragger = function (d) {    if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {        clearInterval(myInterval);    } else {        dragger._y += d;        dragger.scrollEase();        updateAfterEvent();    }};up_btn.onPress = function() {    myInterval = setInterval(moveDragger, 18, -1);};down_btn.onPress = function() {    myInterval = setInterval(moveDragger, 18, 1);};up_btn.onMouseUp = down_btn.onMouseUp=function () {    clearInterval(myInterval);};MovieClip.prototype.scrollEase = function() {    this.onEnterFrame = function() {        if (Math.abs(dy) == 0 && drag == false) {            delete this.onEnterFrame;        }        r = (this._y-y)/(bar._height-this._height);        dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);        main._y += dy;    };};



this was the script so if I try to load some thing dynamicly into the main MovieClip, it works but the scrollbar doesn't works properly, he doesn't noticed that the height from main has changed.

Can someone help me.
thx Kind regards
Flax

View Replies !    View Related
Easing Text In Scrollbar
I saw nice Easing text in scrollbar in lot of flash sites.
Exist some tutorial for this?
Do you know what i mean?
If no I will found some example.

View Replies !    View Related
As2.0 Scrollbar With Easing Effect
this is probably a cliché problem, but how do you work out a scrollbar with ease ?
I know how to use easing pretty well on anything else, I just can't get it to work on my scrollbar
any tips ?
cheers!

View Replies !    View Related
Easing The MX Scrollbar Component?
Has anyone achieved this yet?

I found a thread on the actionscript.org forums where someone managed to create an easing effect that can point to X and Y values of the content and move there with easing, but the scrollbar itself isn't eased.

Can anyone point me to a tutorial or thread on how to make the scrollbar in flashMX easing?

Thanks

View Replies !    View Related
Problem With Easing Scrollbar
Hi there,
can someone help me with thisone: I've used the script from this board that was posted a week ago I presume.


ActionScript Code:
fscommand("allowscale", "false");_root.main.attachMovie("boxContect", "boxContect", 1)bar.useHandCursor = false;space = 20;friction = 0.9;speed = 4;y = dragger._y;top = main._y;bottom = main._y+mask_mc._height-main._height-space;dragger.onPress = function() {    drag = true;    this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);    dragger.scrollEase();};dragger.onMouseUp = function() {    this.stopDrag();    drag = false;};bar.onPress = function() {    drag = true;    if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {        this._parent.dragger._y = this._parent._ymouse;        this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;    } else {        this._parent.dragger._y = this._parent._ymouse;    }    dragger.scrollEase();};bar.onMouseUp = function() {    drag = false;};moveDragger = function (d) {    if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {        clearInterval(myInterval);    } else {        dragger._y += d;        dragger.scrollEase();        updateAfterEvent();    }};up_btn.onPress = function() {    myInterval = setInterval(moveDragger, 18, -1);};down_btn.onPress = function() {    myInterval = setInterval(moveDragger, 18, 1);};up_btn.onMouseUp = down_btn.onMouseUp=function () {    clearInterval(myInterval);};MovieClip.prototype.scrollEase = function() {    this.onEnterFrame = function() {        if (Math.abs(dy) == 0 && drag == false) {            delete this.onEnterFrame;        }        r = (this._y-y)/(bar._height-this._height);        dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);        main._y += dy;    };};



this was the script so if I try to load some thing dynamicly into the main MovieClip, it works but the scrollbar doesn't works properly, he doesn't noticed that the height from main has changed.

Can someone help me.
thx Kind regards
Flax

View Replies !    View Related
How Do You Make A Easing Scrollbar
Hi all, I was just wondering if anyone knows how to do a scrollbar with easing. I'm looking to scroll a dynamic text box (the contents will be loaded from external sources, in my case from a mySQL database using PHP). I saw this effect in numerous websites already but can't seem to be able to do it at all..

a very nicely done scrollbar would be from this website. http://www.advanceflash.com/ This website scrolls more than html text I suppose.

thanks for any help..

View Replies !    View Related
Making A Custom Scrollbar With Easing?
hey was just wondering if anyone could give me a kickstart with any tutorials or anything? i was hoping to make one like the flashloaded one etc..

aiming to make it work with dynamic text though

View Replies !    View Related
Resizing Mask, Easing Scrollbar Problem
hey, i used the example for an easing scrollbar that someone made on this forum (sorry cant remember who).


as shown here, the scroller works fine working

however you can see that the area to scroll is too small and id like to enlarge it a bit.
So i tried enlarging the mask and the textfield, now heres the problem..
broke

look at the way the dragger for the scrollbar moves position and goes all off..
i looked through the AS but only really found how i can change the _x value..

so i was wondering if anyone could help me enlarge the textfield and mask but keep the scrollbar working nicely as it used to.

FLA for the working copy is here

Mayan

View Replies !    View Related
A Simple Scrollbar With Easing, But A Small Glitch.
I believe it was here that I once found this custom scroller. The problem is this: when you first use the dragger it spontaneously shifts a couple pixels to the left. I tried putting it into this position physically before publishing thinking it wouldn't show if it already starts in the correct place. But it still shifts. That lead me to assume it was in the AS and that the starting position defined in the AS caused this. But for whatever reason I am still overlooking it. Anyone wanna find a quick solution?

http://www.justforthealofit.com/sample/jjScroller.fla

Furthermore, according to the movieclip properties, the dragger is at 404.4 for x position. But I put a trace(dragger._x) at the very top of the code and it reports that the initial x position is 409.85. If I change the x position and test, the reported number is always greater than what it really is. And no matter what, the left shift still occurs when the dragger is first clicked.

View Replies !    View Related
PLEASE HELP Easing Scrollbar Code Needed To Add Mouse Wheel Function Not Working?
Hi,

I really appreciate some help here is the code below for my scrollbar which works fine but I can't get the mouse wheel code to work (I've taken it out since) How to add a mouselistener and get it to work with my scrollbar? Apparently some simple code but when I put it in nothing works please help if you could add the code in my code that might work.

I think I need to add some code that listens to the mouse wheel? PLEASE HELP! I only know VERY basic action script.


HERE is the code:

//Scrollbar Control//

fscommand("allowscale", "false");
bar.useHandCursor = dragger.useHandCursor=false;
space = 0;
friction = 0.3;
speed = 4;
y = dragger._y;
top = main._y;
bottom = main._y+mask_mc._height-main._height-space;
dragger.onPress = function() {
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
dragger.scrollEase();
};
dragger.onMouseUp = function() {
this.stopDrag();
drag = false;
};
bar.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
this._parent.dragger._y = this._parent._ymouse;
this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
} else {
this._parent.dragger._y = this._parent._ymouse;
}
dragger.scrollEase();
};
bar.onMouseUp = function() {
drag = false;
};
moveDragger = function (d) {
if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {
clearInterval(myInterval);
} else {
dragger._y += d;
dragger.scrollEase();
updateAfterEvent();
}
};
up_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, -1);
};
down_btn.onPress = function() {
myInterval = setInterval(moveDragger, 18, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._y-y)/(bar._height-this._height);
dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);
main._y += dy;
};
};

View Replies !    View Related
Adding Easing To "Simple Custom Scrollbar"
About Simple Custom Scrollbar <-- is there a possible way to add easing to this tutorial?

link: http://www.kirupa.com/developer/flash8/scrollbar.htm

thanks

View Replies !    View Related
Frame Based Easing, Into Time Based Easing (in Actionscript)
i have code to move something from placeA-placeB based on time...then i also have a code to move something from placeA-placeB with easing, but its based on frames...can someone supply me with an easing formula based on time?

View Replies !    View Related
Easing Out AND Easing In Using Math?
Hello,
I'm familiar with how to ease something in using motion math. Easing out would not be that bad either. But how would I script something easing in half way, then easing out the second half? It would start slow, gradually move faster, then slow to a stop at the end. - almost like a sine wave I guess?

Any thoughts? I appreciate any feedback.

View Replies !    View Related
Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,

I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.

At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.

I am not sure how to do this as I have just used the built in Flash components to get what I have so far.

Any help is appreciated.

Thanks,
Martin

View Replies !    View Related
Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,

I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.

At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.

I am not sure how to do this as I have just used the built in Flash components to get what I have so far.

Any help is appreciated.

Thanks,
Martin

View Replies !    View Related
Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,

I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.

At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.

I am not sure how to do this as I have just used the built in Flash components to get what I have so far.

Any help is appreciated.

Thanks,
Martin

View Replies !    View Related
Scrollbar Problem - How To Load Text And Have The Scrollbar Default To Bottom Onload?
Hi,

I am currently working on a project whereby I need to display text in a scrollable area that refreshes every 2 seconds. I have the text loading ok but there is some extra functionality that I require.

At the moment I have a PHP application that uploads text files and adds the latest comment to the end of each text file. If you open the text file you can see the older comments at the top and the latest comments at the end. In the flash movie, I need the text file to load and the scrollbar to default to the bottom of the flash movie - that way, the latest comments will appear at the bottom of the screen and you can scroll up to the older comments.

I am not sure how to do this as I have just used the built in Flash components to get what I have so far.

Any help is appreciated.

Thanks,
Martin

View Replies !    View Related
Scrollbar Doesn't Work (tutorial: Object-oriented Scrollbar)
(tutorial --> object-oriented scrollbar: http://www.gotoandlearn.com/play?id=71).

I followed the tutorials instructions and this is the code that i have now:

import caurina.transitions.*;

var yOffset:Number;
var yMin:Number = 0;
var yMax:Number = sb.track.height - sb.thumb.height;

sb.thumb.addEventListener(MouseEvent.MOUSE_DOWN, thumbDown);
stage.addEventListener(MouseEvent.MOUSE_DOWN, thumbUp);

function thumbDown(e:MouseEvent):void
{
stage.addEventListener(MouseEvent.MOUSE_MOVE, thumbMove);
yOffset = mouseY - sb.thumb.y;
}

function thumbUp(e:MouseEvent):void
{
stage.removeEventListener(MouseEvent.MOUSE_MOVE, thumbMove);
}

function thumbMove(e:MouseEvent):void
{
sb.thumb.y = mouseY - yOffset;
if(sb.thumb.y <= yMin)
sb.thumb.y = yMin;
if(sb.thumb.y >= yMax)
sb.thumb.y = yMax;
var sp:Number = sb.thumb.y / yMax;
Tweener.addTween(content, {y:(-sp*(content.height-masker.height)),
time:1});
e.updateAfterEvent();
}

Does anybody see what's going wrong? I'm a beginner beginner, so all could think of to do is check if everything was typed correct. (i double checked instance names and code). But can't seem te get it to work, nothing happens when i preview swf.
No compilers errors and no syntax error. Tweener class is installed properly. PLEASE help me i've been looking for hours now.
If someone could help me, would be great!!

Sorry for my english, thank you for your time.

View Replies !    View Related
[F8] Horizontal Scrollbar Works, But Buttons On The Scrollbar Don't?
I've done a scrollbar like this one:
http://www.kirupa.com/developer/mx/infinite.htm
It works fine.

However, I want the individual buttons (button1, button2, etc.) on the scrollbar to load an image from my library whenever they are pressed. I've loaded an MC (content_mc) above the scrollbar for which the images will be seen, and added the images to each individual frame. I used the actionscript from my last menu which works great, but this one with the scrolling MC menu does not work.


Code:
content_mc.stop();
speed = 3
target = button1._y;
for (var i = 1; i<4; i++) {
this["button"+i].pageNum = i;
this["button"+i].onPress = function() {
target = this._y;
content_mc.gotoAndStop(this.pageNum);
};
}
this.onEnterFrame = function() {
current._y += (tagert-current._y)/speed;
};

View Replies !    View Related
AS3 - Change Width Of ScrollBar / ScrollPane's Scrollbar
Is there any way to change the width of the AS3 scrollbar component? I've tried changing the width of the skin, but it always snaps to the default width.

View Replies !    View Related
Ive Found
Ive found a website host that suports .php and custom .cgi and get this they offer free web space and free domain name hosting. I created a e-mail form in flash for my site yesterday only to find out my host didn't suport any of the above files and whats better when i upload my files now to the new host i don't have to be connected with them. So no more premium call cost like i use to have. Im so happy i thought i would share it with you guys.

Check them out for yourself http://www.portland.co.uk

All the best

bainsk8

Oh, i don't work for them :-)

View Replies !    View Related
I Have Found The UK Map Fla .......
Hello,
I have finally found the link I was looking for, it is at http://www.flashkit.com/movies/Inter...6394/index.php
Could anyone please tell me how to add html files to the counties buttons. For example have the button for London launch London.html when it is clicked, and still highlight when the mouse it over it. I can only seem to make it launch an html file by changing the button to a graphic file and adding an action to it, it doesnt let me add actions to buttons???

Yours Sincerely
Joe

View Replies !    View Related
I Think I Found What I Need
I'm having a problem opening this attachment.
any help?
http://www.flashkit.com/board/showth...nderlined+text

thanks
rdee

View Replies !    View Related
Found It
i think i found it, i need 200 mhz, i have 75

View Replies !    View Related
Anybody Could Said Me Where I Can Found This Example
Hi, sometime ago I get this tutorial here, I'm trying to found it but I don't have good luck, this is the link of the example, Anybody knows where is this tutorial?

http://www.yomesubo.com/ddbsite.swf

View Replies !    View Related
I Really Think I Found A Bug Is It?
FLASH 8
Okay, I'm doing this project and trying to make it as dynamic as possible when I run into a problem I'm using the Tween class and I'm using numbers out of an array read from xml as the start and end points in the tween. All of a sudden the text starts to blink while going across the screen. So I start boiling down the code to get to the problem. Problem is, Tween blinks when you give it the values stored in an array. Try out the code below. Am I crazy or is this a bug?

In order to use this you have to have a font in the library with a linkage of VERDANA


PHP Code:



import mx.transitions.Tween;var txt:TextField = this.createTextField("my_txt", 2, 25, 25, 250, 100);txt.multiline = false;txt.wordWrap = false;txt.embedFonts = true;txt.selectable = false;var fmt:TextFormat = new TextFormat();fmt.font = "VERDANA";fmt.color = 0xFFFFFF;fmt.size = 24;txt.text = 'this is sample text';txt.setTextFormat(fmt);var arr:Array = ['0','500'];var tw:Tween = new Tween(txt,'_x',Ease.easeNone,arr[0],arr[1],5,true);




I'm going to try it now without using a texfield made in actionscript, but I don't know if that will help. If it doesn't, I'll use tweener, a more awesome tween engine than Tween anyway. Please post back and let me know if it glitches for you.

View Replies !    View Related
Flv Not Found..
Hi,

I have a xml driven video player. When you load a flv into it, it plays fine, then if I load another in, it works great.
The problem is , that if one link is wrong, if i try to go back and load a working link in, it sticks and wont load it.

View Replies !    View Related
Url Not Found As Well
ok i have a folder called "main" that contains the file "MainLoader.as", I want to load another .swf file located here main/gallery/Gallery.swf, why I try to load this swf with this url: gallery/Gallery.as, it says url not found, however if i move the Gallery.swf into the same directory as MainLoader.as and try this url Gallery.swf, it loads it fine, why won't it load Gallery.swf when inside a different directory than the loader

View Replies !    View Related
FOUND BUG : WATCH THIS
Okay let me tell you the BUG i found (Lot's of hours wondering where this mysterious MC's came from!!!):

Flash internally names Buttons a "instanceXX"
XX would be a free Number avaible to Flash...
This 'instance' has got one real BUG .. it points to the MC it is contained in... so be carefull on recursiv walk...
this will crash the projector (endless loop).

EXAMPLE TO DEMONSTRATE
(put this in a MC that contains other MC's and Buttons)

Code:
for (var found in this) {
if( this == this[found]) {
trace(found+" is a Button that points to:"+this[found]);
}
}
please respond so this thread keeps ontop!
This code will point you out the buttons you got in your MC...

My idear why this is so:
I think macromedia did this to use a standard MC and tweak it to the Button-functionality we know...
So know they tweaked the standard MC they want to keep us out... they reference to the _parent!!!!

regards

View Replies !    View Related
Target Not Found
How can I use "Target Not Found" in Flash 5?

I've got a large site that is dynamically loading smaller .swfs, .xml documents, etc. I'm building pre-loaders for these files and am trying to deal with the possibility that a file I'm trying to load may not be found (perish the thought!) I know that Flash knows immediately when the file isn't found, because (when testing my movie) I can see the error message displayed in my Output window. Only problem is, I can't seem to find any documentation for using this information in a meaningful way.

Right now, the best I can think of is a timed loop (i.e. if it's been five seconds and percentage loaded <= 1, goTo...)

Oh, as a sidebar, Flash seems to return a value of 4 bytes loaded even when no file is found (which is why I'm setting my loop above to "<=1" instead of zero). Any idea why?

View Replies !    View Related
Flash Bug Found...
why do moveClip _name's change when i change the _root frame number???

best thing to do to quickly understand this problem is to look at the .fla and check the instance names on both frames, then check the .swf, and check what names you get in the textfields... it is weird alright...

http://www.cullomptonpress.com/temp/nigeProb_02.fla

http://www.cullomptonpress.com/temp/nigeProb_02.swf

thanks!

Jon

View Replies !    View Related
Target Not Found?
ok im using this button to geth this movie clip to play, which has a stop action in frame one so i used the following code on the button


on (release) {
tellTarget ("pictures") {
gotoAndPlay (2);
}
}


but that gives me the error

Target not found: Target="pictures" Base="_level0"

pictures is teh name of the MC


what am i doing wrong??

View Replies !    View Related
Target Not Found
This message keeps coming up whenever a button is clicked.

Target not found: Target="Start" Base="_level0"

I've looked at the help files and searched on Flashkit to no avail.

If someone can tell me what this means, I would be most appreciative.

Thanks,

Rilian

View Replies !    View Related
Target Not Found?
this is a continuation of my previous post "still having target problems"

(i'm using flash 5)

i've got my intro movie playing and the button coming up. the button, that is, that i want to click on and take me to scene 2 where there is another movie.

it all looks like it's going to work and then -
a window now comes up telling me that the target can't be found. it's the only one and i can see it sitting there!! everything is spelled correctly, etc.

the other problem is that this window comes up BEFORE i click the button. i don't have the option to put in the action "on (release)" because it is grayed out. (i'm guessing this is why it automatically plays)

THANKS fo any help!

View Replies !    View Related
Target Not Found
Target not found: Target="/char" Base="_level0.text"
This is the error that I see.
I can not understand why it doesen't works. I've put the swf. which was supposed to be loaded in the correct folder.(The folder wich I created for this project)
I created another movie inside wich I called "text" for loading instead of it the swf. It doesen't work. It gives me this error.The problem is that if I put level instead of target then it plays correctly but I don't know how to place it where I want.It seems that it is put where he feels right.
And the biggest question is..............How come that before I have made the same thing with another swf. and it works. Does Flash not accept 2 actions for loadmovie in the same scene?

View Replies !    View Related
404 Not Found In Flash MX
Say you have a Flash MX BBS where people can upload their photo.

When an image does not exist at the specified URL the output window returns:
Error opening URL "http://www.mysite.com/myphoto.jpg"

This is in test mode in the authoring environment.
In the plugin environment what event can I use to know for sure that the image is not there? ( beside a timeout )

View Replies !    View Related
No One Have Found The Solution
Hi, I give you a frame sequence, it's strange but when I make a preview, that freeze on the 2nd frame and I'm obligate to crash flash...

Plz Help!!

Frame 1:

loadMovieNum("menu.swf", 21);
loadMovieNum("fond.swf", 2);
loadMovieNum("accueil.swf", 19);
----------------------------------------

Frame2:

load2 = _level2.getBytesLoaded();
total2 = _level2.getBytesTotal();
load19 = _level19.getBytesLoaded();
total19 = _level19.getBytesTotal();
load21 = _level21.getBytesLoaded();
total21 = _level21.getBytesTotal();

if (load19>0 &&load19==total19) {
gotoAndPlay(4);
} else {
gotoAndPlay(3);
}

----------------------------------------

Frame 3:

gotoAndPlay(2);

----------------------------------------

Frame 4:
with (_level2._root) {
play();
}
with (_level19._root) {
play();
}
with (_level21._root) {
play();
}

----------------------------------------

Frame 5:

stop();


----------------------------------------

That all & look to crash on frame 2.... that completely freeze flash!!

help!

Benjamin

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved