SourceTec Software

It is currently Thu Apr 24, 2014 12:19 am

All times are UTC + 8 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Need help in scroll bar
PostPosted: Sat Nov 06, 2010 6:53 pm 
Offline
Member

Joined: Sun Oct 24, 2010 6:23 pm
Posts: 5
var scrollUpper: Number=133;
var scrolLLower: Number=334;

var textLower: Number= 902.3;
var textUpper: Number= -490.3;

var scrollRange: Number= scrolllower -scrollUpper;
var textRange: Number= textLower -textUpper;

function scroll() {
var moved:Number = scroller_mc._y - scrollUpper;
var pctMoved:Number = moved/scrollRange;
var textMove:Number = pctMoved*textRange;
text_mc._y= textLower -textMove;

}

scroller_mc.onPress= function(){
scroller_mc.startDrag(false,this._x,scrollUpper,this._x,scrollLower);
scroller_mc.onMouseMove= scroll;

};

scroller_mc.onRelease= scroller_mc.onReleaseOutside=function(){
scroller_mc.stopDrag();
scroller_mc.onMouseMove= null;
};

this is ghol's scrollbar action script but when i view it using sothink swf easy it does not work properly.....how can i make it function....

please help me ... sorry im a beginner in making flash


Top
 Profile  
 
PostPosted: Sat Nov 06, 2010 6:56 pm 
Offline
Guru

Joined: Thu Jul 08, 2004 2:19 pm
Posts: 943
Have a look my samples @ following link:

viewtopic.php?f=3&t=300673


Top
 Profile  
 
PostPosted: Sat Nov 06, 2010 7:16 pm 
Offline
Member

Joined: Sun Oct 24, 2010 6:23 pm
Posts: 5
yeah i already test that... but i can't scroll it... when i preview the gla....

it seems its only work on 5.0 but mine is v6.0....

how can i make it function and please... could you explain your actionscript..


Top
 Profile  
 
PostPosted: Sat Nov 06, 2010 11:43 pm 
Offline
Guru

Joined: Thu Jul 08, 2004 2:19 pm
Posts: 943
go here http://www.feizsite.com/Sothink/Sothink ... index.html at the bottom of my page there is a link where it says: If you need any help refer to following tutorial click on that and it well explained , the tutorial is for flash and works very well with Sothink SWF Easy;


Top
 Profile  
 
PostPosted: Sun Nov 07, 2010 1:56 pm 
Offline
Member

Joined: Sun Oct 24, 2010 6:23 pm
Posts: 5
now my problem is the whole page was scrolled not the text ,, text was name text_mc and the scroll is scroller_mc

heres the actionscript

var scrollUpper:Number = 87.1;
var scrollLower:Number = 480.1;

var textLower:Number = 351.3;
var textUpper:Number = 82.4;

var scrollRange:Number = scrollLower - scrollUpper;
var textRange:Number = textLower - textUpper;

function scroll() {
var moved:Number = scroller_mc._y - scrollUpper;
var pctMoved:Number = moved/scrollRange;
var textMove:Number = pctMoved*textRange;
text_mc._y = textLower - textMove;
}

scroller_mc.onPress = function() {
this.startDrag(false,this._x,scrollUpper,this._x,scrollLower);
this.onMouseMove = scroll;
};

scroller_mc.onRelease = scroller_mc.onReleaseOutside = function() {
this.stopDrag();
this.onMouseMove = null;
};


Heres the link ----- http://www.megaupload.com/?d=3J8WLNQB


Top
 Profile  
 
PostPosted: Sun Nov 07, 2010 11:23 pm 
Offline
Guru

Joined: Thu Jul 08, 2004 2:19 pm
Posts: 943
Very funny that I had same problem yesterday and now my file again works.

I made a demo for you to see that there is no problem with code, I have suspected that problems with Sothink SWF Easy.

see the demo that code works: http://megaswf.com/serve/68746/

and you know what some of my old file I made with Sothink SWF Easy version 5.0 years back I can not open with Sothink SWF Easy version 5.0 very strange!

for instance have a look at this link: http://megaswf.com/serve/68747/

Note:
I hate to install latest version Sothink SWF Easy 6.x it because of very ugly GUI. sorry for that.


What I suggest is try to make one from ground according to this demo

http://www.republicofcode.com/tutorials ... ollbar.php

and see if it works with SWF Easy version 6.x


Top
 Profile  
 
PostPosted: Mon Nov 08, 2010 3:32 pm 
Offline
Member

Joined: Sun Oct 24, 2010 6:23 pm
Posts: 5
yes i'll follow the instruction and toturials that you gave but... it seems the problem is in the version cause in your gla. it works in 5.0 and mine 6.0 when i try to scroll its scrolling the whole page....


Top
 Profile  
 
PostPosted: Wed Nov 10, 2010 2:41 pm 
Offline
Guru

Joined: Thu Jul 08, 2004 2:19 pm
Posts: 943
Try this

download for Sothink SWF Easy 6.4
http://rapidshare.com/files/429916657/Scrollbar.zip

or

http://www.megaupload.com/?d=1A00C2LP

since Sothink SWF Easy 6 converts every static text to movie clip the solution is to use dynamic text.

Demo:

http://megaswf.com/serve/69917/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 8 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group