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








List Component - Auto-Adjust Horizontal Scroll


I am trying to implement an auto adjust horizontal scroll in a list that changes based on the users choices...

I am currently adjusting the hscroll by checking the length of the string that makes up the label...this however doesn't give me an accurate measurement when it comes to lower case and upper case letters...because two strings may be the same length but visually appear quite different in length...

each of the following strings has 10 characters

1234567890
HHHHHHHHHH
hhhhhhhhhh

So this is not a good way of doing this since the lower case strings fit in the list but yet are longer than my max char length and therefore enable the horizontal scroll...

Is there any way to get the width of the label or the pixel width of a string?




FlashKit > Flash Help > Flash ActionScript
Posted on: 06-19-2008, 10:12 AM


View Complete Forum Thread with Replies

Sponsored Links:

List Component - Auto-Adjust Horizontal Scroll
I am trying to implement an auto adjust horizontal scroll in a list that changes based on the users choices...

I am currently adjusting the hscroll by checking the length of the string that makes up the label...this however doesn't give me an accurate measurement when it comes to lower case and upper case letters...because two strings may be the same length but visually appear quite different in length...

each of the following strings has 10 characters

1234567890
HHHHHHHHHH
hhhhhhhhhh

So this is not a good way of doing this since the lower case strings fit in the list but yet are longer than my max char length and therefore enable the horizontal scroll...

Is there any way to get the width of the label or the pixel width of a string?

View Replies !    View Related
Horizontal Scroll In List Component?
Is there an option to turn on the horizontal scroll for the list component? I have some list entries that are longer than the list is wide, so they get cut off at the end...can this be done?

View Replies !    View Related
Horizontal Scroll In List Component?
Is there an option to turn on the horizontal scroll for the list component? I have some list entries that are longer than the list is wide, so they get cut off at the end...can this be done?

View Replies !    View Related
Horizontal Scroll In List Component?
Is there an option to turn on the horizontal scroll for the list component? I have some list entries that are longer than the list is wide, so they get cut off at the end...can this be done?

View Replies !    View Related
List Component Horizontal Scroll Problem.
This one is strange,

I just add a Flash CS3 List Component on stage and fill it's data provider with very long labels. When I run movie, no horizontal scroll appears in list component. Even if I set it's horizontalScrollPolicy property to ON, it just displays a disabled scrollbar.

Does anybody know the reason?

Thanks.

View Replies !    View Related
List Component In Horizontal
I'm adapting a tutorial that uses a list component. I'd like to figure out how to re-orient it to display itself as horizontal. Or do I have to use an accordian?

mny thx
--steve...

View Replies !    View Related
Component List : Horizontal ScrollBar
Hello,
i have on my scene a component List and i would like to activate the horizontal scrollBar :

Code:

import fl.controls.List;
import fl.controls.ScrollPolicy;
import fl.data.DataProvider;

var dp:DataProvider = new DataProvider();
for (var i:int = 0; i < 10; i++) {
    dp.addItem({ label:"mon label dépasse car il est carrement trop grand !!", data:null });
}

var dg:List = new List();
dg.setSize(150,300);
dg.dataProvider = dp;
dg.horizontalScrollPolicy = ScrollPolicy.ON;
dg.horizontalLineScrollSize = 10;
addChild(dg);

but it doesn't work ! I can see the horizontal scrollBar but its not active... If someone can help me.

Thanks

View Replies !    View Related
Automatic Horizontal Scrollbar In Component List
Is there a way that the horizontal bar in component list can be automatic? Like the vertical scrollbar it will show when the Height of the component is not enough to show all the items.. Thanks

View Replies !    View Related
Scroll Bar Ui Component Horizontal How-to
in flash MX....

How does the scroll bar UI Component work horizontaly and what would one use it for?

I cannot get it to work horizontal true.
I drag the scroll bar into the lower portion of a dynamic text box and the scroll bar snaps to the bottom horizontaly set to true but when I test movie it does not work.



I have a text field that I want to scroll, but I do not have enough room on the side. So I am trying to put a scroll bar at the bottom and if it works, I then plan on changing the skin of the arrows to point up and down.

Am I on the right track?????

Please help!!

View Replies !    View Related
Scroll Bar UI Component Horizontal How-to
in flash MX....

How does the scroll bar UI Component work horizontaly and what would one use it for?

I cannot get it to work horizontal true.
I drag the scroll bar into the lower portion of a dynamic text box and the scroll bar snaps to the bottom horizontaly set to true but when I test movie it does not work.



I have a text field that I want to scroll, but I do not have enough room on the side. So I am trying to put a scroll bar at the bottom and if it works, I then plan on changing the skin of the arrows to point up and down.

Am I on the right track?????

Please help!!

View Replies !    View Related
Adding Horizontal Scroll Functionality To ListBox Component
how can i add a horizontall scroll bar to ListBox Component, so that when the item width is greater than the original width of the ListBox, the ListBox show a horizontal scroll at bottom.

I came to know that i can extend the class to provide this functionality but dont know the code to do it.
any body knows this how to do it please.

View Replies !    View Related
Need To Alter Scrollbar Component To Not Auto-scroll...
First off, I am not sure if I am using a Flash MX or MX2004 version of this component, but I am able to go in and edit its Actionscript, and despite my analysis I can't figure out how to do this:

The scrollbar is used as part of a chat interface. As such, messages often scroll off the top of the text area, and I often have to scroll back to see missed messages. Problem is, new incoming messages ALWAYS force the scrollbar back down to the bottom, and I lose track of what I was reviewing.

Can anyone suggest working changes to the code in this component such that it will NOT auto-scroll to the bottom if the text is changed AND you are currently dragging the scrollbar? Thanks so much!

View Replies !    View Related
Auto Scroll To Certain Position Using ScrollPane Component
I'm building a pretty simple horizontal scrolling timeline in Flash CS3 using AS2. I've used the Flash ScrollPane Component with a content path to a movieclip from my library. The final size of the exported movie is 1024x768 while the size of the scrolling content is 6760x768. Currently when the movie is opened the timeline appears with a registration at 0 and the scrollbar on the far left. I would like to have the movie open and the timeline automatically scroll to a point somewhere in the middle then allow the user to control the scrolling and scroll either left (to go to the beginning of the timeline) or right (to go to the end). I have looked around on many help sites but can't come up with any script that works. Any suggestions would be greatly appreciated!

View Replies !    View Related
Scroll List Component
Hello everybody, I've got a problem working with flash and I'd like to know if there is anyone out there to help me to sort it out.

This is the problem: I need to modify the scroll bar of a Flash 'List' component (size, colour, design...) and to do so I'll need to know which one is the property to scroll a List component. This flash component it's going to be used in a Tactile screen and it's hard to scroll up and down using such a slim bar so I've thought to make it wider or replace it with two buttons.

The 'setStyle' property lets me to modify the appearence of flash components but it doesn't help me much as the modifications I have to do go far away from setting a different colour with scrollTrackColor. Till now I've just found a few examples for the text boxes scroll, something like this:

on(click)
{
_root.my_txt.scroll ++;
}

I've tested it but it doesn't work in a List component.

If someone knows which property or code sentence is the one I'm looking for or knows any alternative to customise the scroll bar of a List component, I'd appreciate it.

Regards, Nauzet.

View Replies !    View Related
Customizing List Component Scroll Bar
Hi,
I have put a list component in my flash movie and have used the following actionscript to customize the colors but its seems to be working for all the Scrollbar components in my movie except the one inside my List component.
Is there something different I have to do for it?

globalStyleFormat.textColor = 0xD0D0D0;
globalStyleFormat.arrow = 0xAC83BF;
globalStyleFormat.face = 0x5A2670;
globalStyleFormat.shadow = 0x381945;
globalStyleFormat.darkshadow = 0x000033;
globalStyleFormat.highlight = 0xDAC8E2;
globalStyleFormat.highlight3D = 0x000000;
globalStyleFormat.scrollTrack = 0x000000;
globalStyleFormat.background = 0x000000;

The following seems to work for the actual list items but has no affect on the scrollbar if I wrote something similar to change it:

_global.styles.ScrollSelectList.setStyle("backgrou ndColor", "black");
_global.styles.ScrollSelectList.setStyle("color",0 xFFFFFF);
_global.styles.ScrollSelectList.setStyle("rollOver Color",0xDAC8E2);
_global.styles.ScrollSelectList.setStyle("selectio nColor",0x864B9F);
_global.styles.ScrollSelectList.setStyle("textSele ctedColor",0xDAC8E2);
_global.styles.ScrollSelectList.setStyle("borderSt yle","none");

How do I change the Scroll Bar color inside a List component???

View Replies !    View Related
Changing Look Of List Component Scroll Bar - See Attachement
Hi all,

I want to change the design of List Component's Scroll Bar simillar to the image I attached to this thread. Can it be possible and how?

Thanks in advance.

View Replies !    View Related
Long Tex List Problem With Buttons And Scroll Pane Component
I have 174 titles in a text box (one on each line). I can’t see it all on the stage unless I move the text box but at least, all of the text is there. These titles are over 174 buttons. Each button will then display its content.

My problem is that when previewed, some of the text disappears. I have read that there is a maximum height which Flash can work with…. How would you then present these buttons? I have been using this method in the rest of my movie with a scroll pane component and it works.

Does anybody have a great idea for me?

Thanks,

Luke

View Replies !    View Related
Auto Adjust And Keep Proportions
Hi,

Does anybody knows how to auto adjust flash to the size of the window but preserving the size of the objects in the movie?.

These are two fantastic examples of that:

http://www.musicalarchitect.com/
http://www.mocafusion.com/

(try to resize the window and look how the objects adjust to the new size of the window)

I hope someone knows how to archive that.

Thanks

View Replies !    View Related
Zoom Mc With Auto Adjust Scrollbars
We have a movie clip that can be zoomed to the mouse point location. The mc also can be scrolled (horizontal and vertical) and we need to be able to zoom the mc and the scrollbar handles update their position. We have everything working except that something is causing the mc to jump on it's way to the desired zoom size. We would love it if someone could take a look at the fla and find/cure the problem or point us in the direction of something that might help.

Thanks in advance!

Any help greatly appreciated

View Replies !    View Related
Auto Adjust Application Size
Hi guys,

my site is somewhat done http://www.project-mobius.com
i was wondering if there's a way to auto resize the application without doing it manually in the application tag? i've been seeing the stage tag but not sure how to use it, i haven't found a good example yet if anyone could help that would be great.

hope you guys like my first flex attempt any feedback are welcome


ASZ

View Replies !    View Related
Auto Adjust Text Size
hi all
is it possible in as3 to adjust label size according to widht and height of text in it at runtime?

i am using dynamic text and i have a number of fonts style and text size. which i can change at runtime. but what i want is when i change font and size the labels size automatically change with it (perfectly adjust with text like static text component)

thanks
maani

View Replies !    View Related
Auto Adjust Scrollbar To Content
Hi There,

I am a product design student and I have to make a website as an assignment for my school. Next week is the presentation and now I have this little problem:

I found an instruction on this site on how to make a scrollbar and so far so good; it worked. The problem is that this scrollbar was only meant for a 'non changing' content. It means the 'slidebar' will always stay the same size. The problem is however that my content varies, one time it's only text, when you'll click a button, pictures slide out and so, the content will be bigger. For example, look at your screen on the right, this is the kind of scrollbar a need: The size of the slidingbar will change if you fold content out.

Now, the problem is I am very bad at actionscript, so that means that I need some help.
I can send you the file by email so that you can take a look at the script.
I would be very grateful if someone's able to help me out!

Thanks in advance.

View Replies !    View Related
FMX2004 Background Auto-adjust Size
hey there mates!
first of all, happy new eyear!

does anyone know any cool tutorial who teaches how to make the background auto-resize?
something like this:

http://www.evb.com/archive/

thanks in advance!

View Replies !    View Related
What Do I Do To Allow My Files To Auto Adjust To The Size Of The Html Browser Window?
How do I allowscale of my .swf file when I embed the file in my html file for the browser window? I've tried using the FScommand "allowscale","fullscreen" and so on, but I'm lost on this one guys. What do I do to allow my files to auto adjust to the size of the html browser window?

Thanks,

old_newbie101

View Replies !    View Related
How Do I Adjust The Width Of The Scrollbar In The Scroll Pane ?
Hello Everybody,

How do i adjust the width of the scrollbar in the scroll pane ?


thanks.

best regards
Kiran:

View Replies !    View Related
How Do You Adjust The Text Scroll Area Of This .fla File?
I have a scroll bar for my text movie that I use throughout this website I created.

For the life of me, I can't figure out how to adjust this scroll box so I can add more text, if needed.

I's very limited. I can only add so much text and then it cuts it off, so when I publish the movie it would display all the text inside. I can't even adjust the speed of the floating scroll. I attached the file to this posting. If anybody has knowledge of this, Please help!

Thanks,
Tom

View Replies !    View Related
Flash 8- Adjust Scroll Bar To Fixed Size
I have finally found a scroll bar that I really like the look of, made by Oringe (thanks knvb1123, thread: http://www.kirupa.com/forum/showthread.php?p=2160619) ! It can be downloaded here:

http://www.box.net/shared/2ezf4zoogm

This blur scroller is set to adapt to the size of the main window, as far as I understand. I would like to know if there is a way to put the scrolling area to a fixed size rather than using the height of the main window to scroll? I basically want to use this scrollbar in a fixed size area of say 300 width and 400 height. Since I am quite new to Flash I can’t figure out how to change the code to do this (if possible even?). Can anyone help????

View Replies !    View Related
ScrollPane: Adjust Scroll-limits To Up-scaled Content-movie?
Hi there

i got a scrollPane with a zoomable content. so if i scale the content-movie over the initial values, dragging doesn´t bring me to the borders of my content. Due to this i need to change the limits...

any hint?

thx

schlue

View Replies !    View Related
How To Adjust Page To Length Of Content And Add Scroll Bars Automatically
Hey all,

how would you go about making your page in flash scroll or extend with an ease depending on the length of the content?? and add scroll bars automatically that arn't the browser ones...so they browser ones will be replaced by my own??

any tutorials etc?? Cheers Peeps

View Replies !    View Related
Change Horizontal Scroll To Vertical Scroll
Hi,

I've flash source code that is having a horizontal scrolling. Anybody can help me to change this to a vertical scroll.

Pls check the attached file.

thanks in advance...

View Replies !    View Related
Horizontal Auto Scrolling (external Text File)
hi

I have a dynamic text file in my website. And i want to load texts from an external text file and auto scroll it horizontally. Is it possible in flash 5/6?

View Replies !    View Related
Horizontal Scrolling In A List
hello ev'ry body !

does anybody know how to make an horizontal scrolling in a list component, or tell me if there's a bug with that ?...
even with that code, it doesn't work :

myList3.hScrollPolicy = "on";
myList3.hPosition = 500;
myList3.Box.maxHPosition = 500;

thanks

Ohm

View Replies !    View Related
(Flash MX Or 8) List/List Component Issues
Hello all.

I recently completed Kirupa's "Creating a Listbox" tutorial, (http://www.kirupa.com/developer/mx/listbox.htm) but have been having a difficult time modifying the event attributes of each list item. Basically, I want to click on an item and have an object on the stage move to a unique xy coordinate. I can get the object to move already (object._x = object._x +10, but unfortunately ALL items on the list execute this script command. I've tried fooling around with the code to get each item to do a unique movement but...well, clearly I haven't succeeded yet.

I'm a Flash nooby and help in the form of specifics would be greatly appreciated. If you can provided modified code from the tutorial to move an object to a unique positions that's even better.

Thanks.

David

View Replies !    View Related
List Component. Help. Looked Everywhere. Button And List.
Trying to use a list component and a button. When user selects something from list component and clicks button it takes them to new page, if user doesnt select something from list and hits button, (this is where my question lies) I want it to do nothing and setFocus to list component.

Here is how I am going about it now: New if statement (however it still transfers user if nothing is selected from list component) How can I get it to not transfer? I have tried rewritting this many ways, searched all over the nets, and Nada.


Code:
var arUrl:Array=["/browsecategory.aspx?cat=1","/browsecategory.aspx?cat=2","/browsecategory.aspx?cat=3","/browsecategory.aspx?cat=4"];

var provider:Array=[{label:"Option 1",data:0},{label:"Option 2",data:1},{label:"Option 3",data:2},{label:"Option 4",data:3} ];

mcList.dataProvider=provider;
var obj:Object={};
obj.click=function(eo:Object)
{
var count:Number=mcList.selectedItem.data;
getURL(arUrl[count],"_blank");
trace("count="+arUrl[count]);
}
but.mcSubmit.addEventListener("click",obj);/////here is where I am sending off
if(mcList.selectedIndex == undefined) {
setFocus.mcList;
}
So this thing works perfectly, however if user hasnt selected anything how can I get it to not transfer and setFocus?

I have tried setting if to check it for - 1 (since starts at 0) set to 0? Any ideas please help. Thanks in advance MT

View Replies !    View Related
Re: Auto HorizontalScrollbar In The List
I have one doubt in Flex. I want to add auto horizontal scrollbar in the List.

Scenario: If the width of any of the item is > default width of the List then, scrollbar should be on else it’s off.


When dragging from List A to List B the long character item3, then horizontal scroll bar should be ON and in List A horizontal scroll bar should be OFF. Similarly for List B to List A.

I tried but not getting properly.

List A an List B are two list controls, getting data from Ac1 in global variables to List A and Ac2 is getting data from the Ac1.


private function HBar():void{
if((sourceList.measureWidthOfItems() > sourceList.width) && (myList.measureWidthOfItems( ) > myList.width)){
sourceList.horizontalScrollPolicy="on";
myList.horizontalScrollPolicy="on";

} else if (sourceList.measureWidthOfItems() > sourceList.width ){
sourceList.horizontalScrollPolicy="on";
myList.horizontalScrollPolicy="off";
} else if (myList.measureWidthOfItems() > myList.width ){
myList.horizontalScrollPolicy="on";
sourceList.horizontalScrollPolicy="off";
} else{
sourceList.horizontalScrollPolicy="off";
myList.horizontalScrollPolicy="off";

}

}


If dragged from List A to List B means List B is updated properly List A not. Similarly viceversa.

i used the fuinction in
<mx:List id="sourceList" height="100" width="200"
allowMultipleSelection="false" allowDragSelection="true"
dragEnabled="true" dropEnabled="true" dragMoveEnabled="true"
styleName="txtInputStyle"
rowHeight="18" dataProvider="{usersArrayForRole}"
labelField="snm"
dragDrop="RemoveSelectedData(event)" dragComplete="HBar()"
/>

View Replies !    View Related
ASTweened Horizontal Thumbnail Menu/list
Hello, all!

I am working on a class for a horizontal list of thumbnails that will function as a menu. The current selected thumbnail will display in the middle with the previous and next thumbnails displayed on either side. In the screenshot shown, the standby images before and after previous and next are also displayed, although they won't be in the final result.

Here's what it looks like at the moment:


Everything works apart from the animation itself. When the user clicks a left or right arrow, the thumbnails will slide left or right and change their size an opacity as well.

I have attempted to use the Tween class, but there are four clips to be animated with five tweens (the unused standby thumbnail is simply removed), amounting to a total of 20 Tween instances running simultaniously. That seems to be too heavy on the processor, so I'm exploring a different apprioach, but it dosn't seem to be going all that well.

Here's the code for the slide-function:

Code:
private function slide(clips:Array, xPositions:Array, yPositions:Array, scales:Array, opacities:Array):Void
{
// Test increment/decrement values
var xSpeed:Number = 1;
var ySpeed:Number = 0.2;
var sSpeed:Number = 2;
var aSpeed:Number = 10;

// Animate all mc's in the clips array
for (var i:Number = 0; i < clips.length; i++)
{
// Update animation counter
this.animationsRunning++;

var x:Number = xPositions[i];
var y:Number = yPositions[i];
var s:Number = scales[i];
var a:Number = opacities[i];

var thisObj:HorizontalFlipMenu = this;
clips[i].onEnterFrame = function()
{
// If no more adjustments are necessary
if (this._x == x && this._y == y && this._xscale == s && this._yscale == s && this._alpha == a)
{
// Clear enterFrame loop
this.onEnterFrame = null;
delete this.onEnterFrame;

// Update animation counter
thisObj.animationsRunning--;

// If all animations are finished
if (thisObj.animationsRunning == 0) thisObj.onMotionFinished();
return;
}

if (this._x != x)
{
if (this._x > x) this._x -= xSpeed;
if (this._x < x) this._x += xSpeed;
}

if (this._y != y)
{
if (this._y > y) this._y -= ySpeed;
if (this._y < y) this._y += ySpeed;
}

if (this._xscale != s)
{
if (this._xscale > s) this._xscale -= sSpeed;
if (this._xscale < s) this._xscale += sSpeed;
}

if (this._yscale != s)
{
if (this._yscale > s) this._yscale -= sSpeed;
if (this._yscale < s) this._yscale += sSpeed;
}

if (this._alpha != a)
{
if (this._alpha > a) this._alpha -= aSpeed;
if (this._alpha < a) this._alpha += aSpeed;
}
}
}
}
The animations are running, but the properties of the clips aren't changing correctly, and I realize that this probably isn't the most robust way of performing the animations anyhow. Does anyone of you have any suggestions as to how to modify/replace this code in order to attain the desired result?

If anything is unclear, please ask! Thanks!

View Replies !    View Related
ASTweened Horizontal Thumbnail Menu/list
Hello, all!

I am working on a class for a horizontal list of thumbnails that will function as a menu. The current selected thumbnail will display in the middle with the previous and next thumbnails displayed on either side. In the screenshot shown, the standby images before and after previous and next are also displayed, although they won't be in the final result.

Here's what it looks like at the moment:


Everything works apart from the animation itself. When the user clicks a left or right arrow, the thumbnails will slide left or right and change their size an opacity as well.

I have attempted to use the Tween class, but there are four clips to be animated with five tweens (the unused standby thumbnail is simply removed), amounting to a total of 20 Tween instances running simultaniously. That seems to be too heavy on the processor, so I'm exploring a different apprioach, but it dosn't seem to be going all that well.

Here's the code for the slide-function:

Code:
private function slide(clips:Array, xPositions:Array, yPositions:Array, scales:Array, opacities:Array):Void
{
// Test increment/decrement values
var xSpeed:Number = 1;
var ySpeed:Number = 0.2;
var sSpeed:Number = 2;
var aSpeed:Number = 10;

// Animate all mc's in the clips array
for (var i:Number = 0; i < clips.length; i++)
{
// Update animation counter
this.animationsRunning++;

var x:Number = xPositions[i];
var y:Number = yPositions[i];
var s:Number = scales[i];
var a:Number = opacities[i];

var thisObj:HorizontalFlipMenu = this;
clips[i].onEnterFrame = function()
{
// If no more adjustments are necessary
if (this._x == x && this._y == y && this._xscale == s && this._yscale == s && this._alpha == a)
{
// Clear enterFrame loop
this.onEnterFrame = null;
delete this.onEnterFrame;

// Update animation counter
thisObj.animationsRunning--;

// If all animations are finished
if (thisObj.animationsRunning == 0) thisObj.onMotionFinished();
return;
}

if (this._x != x)
{
if (this._x > x) this._x -= xSpeed;
if (this._x < x) this._x += xSpeed;
}

if (this._y != y)
{
if (this._y > y) this._y -= ySpeed;
if (this._y < y) this._y += ySpeed;
}

if (this._xscale != s)
{
if (this._xscale > s) this._xscale -= sSpeed;
if (this._xscale < s) this._xscale += sSpeed;
}

if (this._yscale != s)
{
if (this._yscale > s) this._yscale -= sSpeed;
if (this._yscale < s) this._yscale += sSpeed;
}

if (this._alpha != a)
{
if (this._alpha > a) this._alpha -= aSpeed;
if (this._alpha < a) this._alpha += aSpeed;
}
}
}
}
The animations are running, but the properties of the clips aren't changing correctly, and I realize that this probably isn't the most robust way of performing the animations anyhow. Does anyone of you have any suggestions as to how to modify/replace this code in order to attain the desired result?

If anything is unclear, please ask! Thanks!

View Replies !    View Related
To Adjust Stage Size, Or Adjust The Code ?
HI
got 4 different lines i want to interact with a content box. each time the box / picture increases in size or moves around, the lines reshape to frame it.

i just included the following code for each of the four different lines :


Code:
BotL.onResize = function() {
this._width = Stage.width;
};
TopL.onResize = function() {
this._width = Stage.width;
};
LeftL.onResize = function() {
this._height = Stage.height;
};
RightL.onResize = function() {
this._height = Stage.height;
};
then i increased the stage size. its now at 1300 x 470.
then i published at 100%.

you can check the new result (very ropey, i have got a lot of work to still do - but you can get the drift) at
http://www.geocities.com/elopah/
you will see what i mean.

next query is this though :
the lines dont quite make it all the way to the edge of my screen. what should i adjust next ? increase the stage size or look again at the code ? still not sure of the next step forward, or maybe perhaps there is a third way ??

check the .fla below for more.

-thanks and have great weekend.

View Replies !    View Related
'list' Event Of List Component
oops i mean 'change' event of list component

Hi guys/gals. Ive made an xml/list component driven mp3 player as can be viewed at http://www.flashmatics.co.uk/blog/sa...mp3player.html

When someone selects a new song from the list that songs starts to play. Everything is working fine.

I now want to add an extra bit of functionality i.e When one song finishes i want the next song to start playing. But this means I have to tell the list component that a change has occured as well (even though there has been no user interaction to cause this 'change'). How would I go about this. Here is a snippet of relevant code.


Code:
mySound.onSoundComplete = function():Void{

//from here i need to tell the component a change has occured and to move it
//to the next song in the menu
}


//create a listener for the list component
var compListener:Object = new Object();
list_comp.addEventListener("change", compListener);

compListener.change = function(info:Object):Void{
//how do i get this to move to the next track?
}
Thanks for any help in advance. I dont actually need the whole code or anything but rather a point in the right direction..cheers

View Replies !    View Related
Loading XML List Into RMP List Component
I have several XML lists to load into a RMP List Component List Box.
I was told the code should be like:

myButton.onRelease=function(){
myList.load(String(search.text));
}

So I made a button and named the instance "myButton"
Add the list component called "myList"
The XML files are named test1.xml, test2.xml etc.

I tried variations of:

myButton.onRelease=function(){
myList.load(String(test1.xml));
}

Result....

Nota

I think I may need a Listener or I am not sure...
Can anybody please advise me what I am doing incorrectly?

View Replies !    View Related
Horizontal Scroll - Please
I need to create a horizontal scroll but I'm having some problems. I create a MC instance and I put these actions in it:

onClipEvent (enterFrame) {
movie_width = 740;
scroll_width = this._width - movie_width;
scrollbar_width = movie_width - _root.drag._width;
proportion = scroll_width/scrollbar_width;
this._x = proportion * _root.drag._x * -1;
}

A button inside another MC instance (drag) has the following action:

on (press) {
startDrag (/:this, false, 259, 165, 469, 165);
}
on (release) {
stopDrag ();
}

My doubt is: how I can determinate the beginning and the end of the scroll area?

Please, any help will be welcome!

View Replies !    View Related
Horizontal Scroll
I'm trying to do a horizontal scroll in my flash movie. the tutorial i found - http://www.flashkit.com/tutorials/In...87/index.shtml is pretty much want, just rotate it 90 degrees CCW. i know basic actionscript and tried messing around with it, but couldn't get it to work. what needs changing in order to make it scroll horizontal?

- thanks, Ben

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);
function updateScrollbar () {
content._y = -(((scroller._y-top)/diff_y)*(content._height-bound_box._height));
}
friction = 0.90;
}
onClipEvent (mouseDown) {
if (scroller.hitTest(_root._xmouse, _root._ymouse)) {
startDrag ("scroller", false, scroller._x, top, scroller._x, bottom);
scrolling = true;
}
}
onClipEvent (mouseUp) {
stopDrag ();
scrolling = false;
}
onClipEvent (enterFrame) {
if (scrolling) {
updateScrollbar();
newY = scroller._y;
yspeed = (newY-oldY)*0.50;
oldY = newY;
done = false;
} else if (!done) {
oldypos = scroller._y;
newypos = oldypos+yspeed;
if (yspeed<-0.2 || yspeed>0.2) {
yspeed *= friction;
} else {
yspeed = 0;
done = true;
}
if (newyposbottom) {
yspeed = -1*yspeed*friction;
newypos = bottom;
}
scroller._y = newypos;
updateScrollbar();
}
}

View Replies !    View Related
Horizontal Scroll
There any way to do an horizontal scroll in Flash?

I dont like the idea to do it in HTML whit Iframes etc...

View Replies !    View Related
Horizontal Scroll Bar
I am trying to create a horizontal scroll bar that will scroll through about 20 buttins.

I need it to go forward and backwards.

Also, when it scrolls to the end I want it to loop back to the beginning.

I want it to also do this when it gets to the end going the opposite direction but loop to the end of the clip.

Make sense?

I want it to scroll when on press and stop scolling on release.

Here is an asci representation of what it would look like...

< = Left button

> = Right button

1, 2, 3, etc. = buttons to be scrolled through

Would look like this...

< 1 2 3 4 5 >

Does that make sense?

So when you press "<" I want "1,2,3,4,5" to scroll to "6,7,8,9,10" and so on and so forth.

Any help would be greatly appreciated. This one of my last hurdles on this project. Can't wait to finish it!

Thanks in advance!

Robert

View Replies !    View Related
Horizontal Scroll Bar
hi guys, I need help with creating a horizontal scrollbar. does anyone have a link to a fla?

i tried looking through the movies on flashkit, but i couldnt find anything.


thanks in advance for your help!

Greg

View Replies !    View Related
Scroll Horizontal
I would like to know if there is a way to scroll a listbox component horizontally.

Tips are welcome.


Thanks very much in advance

View Replies !    View Related
Horizontal Scroll?
Hey Guys,
Can someone point me to a tutorial or in the right direction for me to learn how to cause several layers to scroll to the left or right at different speeds...ie http://www.bestdressedkids.com click on the nav arrows on the bottem to see the effect.
Many Thanks!
-FWEB

View Replies !    View Related
Horizontal Scroll
Hi,
I am trying to set up a horizontal scroll, however I am not too sure why it is not working! please help! I have attached a copy of my code here...please have a look.
Thank you so much.

View Replies !    View Related
Horizontal Scroll Bar
I just created a horizontal scroll bar and it works great except when u click and drag the scroll button it jumps up 1 pixel. Why is it doing this? Here is a copy of the file. Thanks.

View Replies !    View Related
Horizontal Scroll?
is there a way to disable just the horizontal srcoll in dreamweaver, my flash files is going to be very long, but i only want to show a portion of it.


thnx

View Replies !    View Related
Horizontal Scroll
I read the tutorial here on Flashkit to scroll a movie clip. The code is to scroll vertically. I have been trying my best but can not figure out how to switch it to scroll horizontally. I figured I could just change all the y's to x's and the heights to widths but it doesn't seem to work.

Here is 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);
function updateScrollbar () {
content._y = -(((scroller._y-top)/diff_y)*(content._height-bound_box._height));
}
}

onClipEvent (mouseDown) {
if (scroller.hitTest(_root._xmouse, _root._ymouse)) {
startDrag ("scroller", false, scroller._x, top, scroller._x, bottom);
scrolling = true;
}
}

onClipEvent (mouseUp) {
stopDrag ();
scrolling = false;
}

onClipEvent (enterFrame) {
if (scrolling) {
updateScrollbar();
}
}



Can anyone tell me how to make this so it will horizontally scroll my clip.

Thanks

-Brian

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