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








Scroller Component Doesn't Update New Scroll Max *$&#^@^


Ok, I'm posting this after almost 3 hours surfing other threads about the same thing, but no answer.

I'm modifying a guestbook I think I got from here at FK, and my mod includes the scroller component.

when I reload the guest book text from the external file, the scroller doesn't scroll! here's the link:

http://www.mike-watt.com/phpTests/GuestBook.html

notice the black box? click inside the text field and type something. the box does a little animation when you type. I used the "onChanged" function to do that. But the onChanged function doesn't seems to listen to when new text is loaded in. Go ahead, sign the guest book, and after pressing submit, the box don't move when the new entry loads. What is going on here. Macromedia, you are so stupid to not have thought of this!!!!!!!!!!

Please help...

Thanks,

MB




FlashKit > Flash Help > Flash ActionScript
Posted on: 07-01-2004, 11:07 PM


View Complete Forum Thread with Replies

Sponsored Links:

Update Component Scroller
hi all,
I'm using the included scroller on a dynamic text area, my problem is that i cant figure out how to update the scroller after i have changed the amount of text in the box so it will scroll down the new amount of text.

thx in advance

View Replies !    View Related
Scrollbar Component Doesn't Update
I'm loading text in an XML file through an XML object in Flash 04. If there's enough text in the dynamic text box the scrollbar component will scroll properly. However, if I scroll to the bottom of the text and then click another button to load new text the scrollbar component does not reset itself to the top of the same text box.

Is there a simple workaround in AS to achieve this? Or does one have to build their own (hopefully not the later).

Appreciate any advice.

View Replies !    View Related
Scroller Doesn't Scroll When Loaded
Hello, I'm making a new site but I got stuck. I hope someone can help me 'cause I just don't understand what I'm doing wrong.

I made a "site" in which I load the other parts of the site, for example "scroller" (both in attachment). If you open "scroller" you'll see it works just fine (I wish it would only skip one line at a time but that's not that important). When you open "site" it loads "scroller" in it but the scroller doesn't work anymore?!?

What did I do wrong? I guess it has something to do with the referrence path, but I can't find the sollution.

Please help me if you know how to fix it.

Thanx a lot!

View Replies !    View Related
Scroller Doesn't Scroll When Loaded
Hello, I'm making a new site but I got stuck. I hope someone can help me 'cause I just don't understand what I'm doing wrong.

I made a "site" in which I load the other parts of the site, for example "scroller" (both in attachment). If you open "scroller" you'll see it works just fine (I wish it would only skip one line at a time but that's not that important). When you open "site" it loads "scroller" in it but the scroller doesn't work anymore?!?

What did I do wrong? I guess it has something to do with the referrence path, but I can't find the sollution.

Please help me if you know how to fix it.

Thanx a lot!

View Replies !    View Related
Scroll Bar Component Doesn't Scroll When Dynamic Txt Is Used?
I have a dynamic text box with the Flash UI component "Scroll Bar" attached to it. It works and scrolls fine when you enter text directelly into the dynamic box but when you use the loadVariables command to load an external txt file into it, it fails to scroll the text?
Is there a way to get it to scroll?

thx Bk9

View Replies !    View Related
[CS3] SIMPLE | Getting Text To Scroll Using UI Scroller Component.
Ok this is driven me nutz I'm just playing around trying to get the UI scroller component to work and I'm having to problems. One the scroller isn't working and 2 most of the Lorem Ipsum dynamic text isn't showing up. This is TOTALY weak. Cause the video tutorial I have on this makes it look unbelievable easy to make both works. Just drag the UI scroller in place and purplish and it should be working we it’s not working for ME!

Link to sample project file:

www.johncliffordtaylor.com/text_scroll.fla

Thx for any help and feed back on what I'm doing or not doing to make this work.

View Replies !    View Related
Scroll Component Doesn't Work?
Hi,
I've got a site that looks like this (click the button to enter): [link]
As you can see the text-field has got more text, but the scroller doesn't work. The text is loaded from a info.txt file. When I write a bunch of text right into the text-field instead, the scroller works just fine. Why isn't it working when I load the text from a text-file!?? Please help me..

View Replies !    View Related
Stupid-ass Scrollbar Component Doesn't Scroll. Wrf I Should Just Call It 'bar' ?
what's the deal with this scrollbar component? i followed the helpfile's instructions: create dynamic textbox, name instance, drag scrollbar onto textbox, it auto snaps, matches length, and links to the box.

when i test, the scrollbar arrows are greyed out, and i can't scroll. i am, however, able to scroll the textbox itself by selecting the text. wtf?

View Replies !    View Related
Scroll Pane Component Doesn't Work On Server
I have a movie which loads up a lot of other movies, pulling much of it out of xml files. Works lovely on my computer. Problem occurs when I upload the site to my server. Suddenly one of these parts, a Flash component called 'cspThumbnails' which basically loads a group of thumbnails, doesn't load the thumbnail .jpgs. The contentPath of cspThumbnails- 'mcEmptyMC2'- does load, I can see it.
I've checked the paths to the .jpgs numerous times, and have other pictures that are loading fine.

The actual code where this stuff occurs looks like this:

code:
this.cspThumbnails.contentPath = "mcEmptyMC2";
for(i=0; i<=_root.aContentArray.length-1; i++) {
this.cspThumbnails.content.createEmptyMovieClip("m cHolder"+i, cspThumbnails.content.getNextHighestDepth());
this.cspThumbnails.content["mcHolder"+i].createEmptyMoveiClip("mcJPEG", 1);
this.cspThumbnails.content["mcHolder"+i].mcJPEG.loadMovie(_root.aContentArray[i][1]);
this.cspThumbnails.content["mcHolder"+i].index = i;
this.cspThumbnails.content["mcHolder"+i].onRelease = function() {
loadFullImage(this.index);
setCaptionText(this.index);
}
}


I'm stumped, man. Like I say, the line that defines the contentPath works, because "mcEmptyMC2" shows up-- it isn't actually empty. On my computer locally all of this works just fine. Uploaded to the server however and the thumbnail .jpgs don't show up.
Now the loadMovie command calls a path stored in '_root.aContentArray[i][1]'-- but thos paths work fine in other parts of the movie, so I'm thinking there must be something about the Flash ScrollPane component going on.
Argh!

thanks,
Richard

View Replies !    View Related
Mouse Wheel Doesn't Scroll The Browser When Component Added [flash8]
Hello everyone,

I have a 700px heigh movie, which makes the browser scrollbar appear on most resolutions.
If I focus on the html part the mouse wheel works fine; however if I bring the focus to the flash movie (simply clicking on it) it doesn't work anymore!
This started to happen when I added the numericStepper component to the stage even if the focus is not on it.

Does anyone have any lead on how to fix this? else I'm going to get my hears pulled by the flash-accessibility-sucks people.

Thanks a lot
fred

View Replies !    View Related
Datagrid Scroller Always Going To Top After Update
I have a datagrid component and each time I update it,
The scroller goes to the top, and doesn't stay in the same place it was before the update.

How can stop this annoyance?

Thanks

View Replies !    View Related
Flash Doesn't Update From PHP? O.o
Ok, in flash, I have one simple line:

loadVariables("system/scripts/menu_is.php", "_root");

It works great, PHP prints directly to the variable it's suppost to.
One major problem, which I hope can be fixed somehow. When I change the PHP file to print something else, the FLASH SWF file on the website does NOT update unless I'v closed out the browser and/or opened a new one to the site, or clear all temporary internet files and hit the refresh button on the browser. Those are the ONLY two ways it will update that flash file. Is there some way to fix this or get around it? Please, anyone that can help.

Thanks in advance.

View Replies !    View Related
ComboBox Doesn't Update Value
Hi all,
I can find tutorial that tell me how to trace the selected item from a combobox, but can't figure out how to pass that information into a useful variable. The trace works fine, over and over, but the other part will only execute first time there's a change, and not again. Could anyone please give me a clue as to why that might be? Thank you very much in advance! Here's the code:








Attach Code

this.createClassObject(mx.controls.ComboBox,"my_cb",10);

my_cb.addItem({data:1, label:"One"});
my_cb.addItem({data:2, label:"Two"});
my_cb.addItem({data:3, label:"Three"});

var cbListener:Object = new Object();

cbListener.change = function(evt_obj:Object) {
trace("Currently selected item is: "+evt_obj.target.selectedItem.label);

var itemNumber = my_cb.getSelectedItem().data;
if (itemNumber == 1) {
textbox.text = "One";
} else if (itemNumber == 2) {
textbox.text = "Two";
} else if (itemNumber == 3) {
textbox.text = "Three";
}
};

my_cb.addEventListener("change",cbListener);

View Replies !    View Related
TextField Doesn't Update
The following event handler takes a few seconds to run. I want to give the user a courtesy message while processing happens. The problem is that the "Updating . . ." message never appears. After the processing delay only "Done" shows up. I've worked around the problem by putting the "Updating . . ." message in an event handler for SliderEvent:THUMBDRAGGED. But processing doesn't really begin until the thumb is released. I'd rather have my program tell the truth.



Code:
public function sliderChanged(e:SliderEvent):void {
myStatus.text = "Updating . . .";
removeDots();
placeAllDots();
thresholdText.text = thresholdSlider.value.toString();
myStatus.text = "Done";
}

View Replies !    View Related
Auto Update News Ticker (scroller)
Is there a way in flash to link a scroller to an external source that will auto update news items as and when they happen?

is so how?

cheers

View Replies !    View Related
CaretIndex Doesn't Update Properly?
For example, I have a button thats reading key strokes. I also have a few text fields on the same interface.

on (keyPress "o") eats up all the "o"'s... So if you focus a text field and type "this one", the "o" will be eaten leaving "this ne"...

So,

on (keyPress "o") {
if (Selection.getFocus() == null) { // no text field

// do stuff for the letter "o"

} else { // a text field focused
eval(Selection.getFocus()) = eval(Selection.getFocus()) + "o";
Selection.setSelection(Selection.getEndIndex(), Selection.getEndIndex());
}
}

Simple enough... I have tested using setSelection as a kind of setCaretIndex, and it apears to work properly in an isolated setup (specifying the same start and end indices and using a predefined string)... However, using the above code (and any variation you can imagine using strings, getcaretindex, and the length's) the setSelection line will always insert the caret at -1 of the aparent index.

For example, if you type "This one", the text field will look like this, "This ne|o", with the "|" showing where the cursor is... in other words, the EndIndex is -1 of the actual number of characters in the text field...

So you might say, thats easy enough to fix:

Selection.setSelection(Selection.getEndIndex() + 1, Selection.getEndIndex() + 1);

However, this code produces the exact same results... after experimenting it apears the bounds checking for the text field is testing against - 1 of the string... or at least the index isn't being updates immediatly...

The behavior is a little stranger than that, experiment with the code and you'll see what I mean. (seems to work after the first keypress, until you run the code for a different key)

Any ideas on how I could get around this, or what I'm doing wrong?

View Replies !    View Related
Score Doesn't Update Continuously
I am working on a shooting game where I increase or decrease the score on certian events during the game. The problem is that the score only updates at each level change. I have the score set as a global variable and displayed in a dynamic text box. Any Ideas would be appreciated

View Replies !    View Related
Flash/XML Doesn't Update On Website?
Please help!
I'm working on a school website and have a 'Stop Press' panel on the home page which is used for breaking news e.g. School Closed Due to Snow....
The home.htm file contains a flash insert to do the animation which in-turn is supplied with the news announcements from an XML file. The administrator updates the news in the XML and then uploads to the site.

Now the problem...
Whereas all htm files uploaded to the web server usually take effect immediately, the XML doesn't. Users of the web site report all sorts of delays in seeing the new information. I can see from my FTP program (Dreamweaver) that the xml is PUT onto the site but it has an erratic delay (sometimes hours!) in getting into the Flash program?

Strange - How can my Browser (IE7) affect the web server file?
I find that if I open the XML file on the web server (by writing it's address directly into the browser address bar), I see the OLD version of the XML.
However, if I then click my browser REFRESH button, the XML file on the server updates and is then available to the flash program on the home page and all is well (at least in my browser)??

Yours, confused Dave

View Replies !    View Related
Continuosly Update Thumbnail Image Scroller To Keep It Moving
Hi, could someone please help me out on how to continuosly update mi thumbnail image scroller so it slowly loops to the left side as soon as the page gets loaded with out loosing the capabilities it already has (grow on rollover, shrink on rollout, and loop to either side on rollover on eitherside). Thanks, I really appreciate it. This is the scroller code:

ActionScript Code:
var loader:MovieClipLoader = new MovieClipLoader(Thumbnail);

// use the main timeline to listen to and respond to loader's broadcast events

loader.addListener(this);

/********* DEFINE FUNCTIONS, INCLUDING INIT FOR MOVIE SETUP **********/

// thumbnail rollover handler

function grow() {

this.onEnterFrame = function() {

if (this._width < THUMBW * 1.2) {

this._x -= this._width * .025;

this._y -= this._height * .025;

this._width *= 1.05;

this._height *= 1.05;

} else delete this.onEnterFrame;

};

}

// thumbnail rollout handler

function shrink() {

this.onEnterFrame = function() {

if (this._width > THUMBW) {

this._width /= 1.05;

this._height /= 1.05;

this._x += this._width * .025;

this._y += this._height * .025;

} else delete this.onEnterFrame;

};

}



// function to move thumbnail slider ("this" = thumbs_mc)

function sliderControl() {

var w:Number = this._width/2;

var hw:Number = mask_mc._width/2;

var npixels:Number;

// only do when mouse over slider mask

if (_ymouse > mask_mc._y && _ymouse < mask_mc._y + mask_mc._height) {


// mouse over left half of slider:

if (_xmouse > mask_mc._x && _xmouse < mask_mc._x + hw) {

npixels = (hw - _xmouse) / hw * MAXPIXELS;

this._x += npixels;

if (this._x >= 0) this._x = this._x - w;


// mouse over right half of slider:

} else if (_xmouse > mask_mc._x + hw && _xmouse < mask_mc._x + mask_mc._width) {

npixels = (_xmouse - hw) / hw * MAXPIXELS;

this._x -= npixels;

if (this._x <= -w) this._x = this._x + w;

}

}

}

// thumbnail click (onrelease) handler

function openPic() {

pic_mc.loadMovie(PICPATH + picnames[this.i] + ".jpg");

}

// assign event handlers (called when all jpgs are loaded)

function setupHandlers() {

pct_txt.removeTextField();  // don't need loading indicator any more

thumbs_mc.onEnterFrame = sliderControl;

for (var i:Number = 0; i < NPICS*2; i++) {

thumbs_mc["mc"+i].onRollOver = grow;

thumbs_mc["mc"+i].onRollOut = shrink; 

thumbs_mc["mc"+i].onRelease = openPic;


}

}

View Replies !    View Related
Cached SWF Doesn't Update Database Values
Hey..

I'm using Flash MX to access an Access database through an ASP script. The problem is, whenever I modify the database, it doesn't show up in Flash because the SWF is cached and it's not re-processing the script.


Any ideas would be greatly appreciated...



Thanks!

View Replies !    View Related
FileReference-Browser Doesn't Update Image
I have a flash file which uploads an image, calls a php script to (which stores several various resized copies of the image in different directories), and then downloads the smallest resized image for the user to see.

The upload works fine and I have verified that the PHP file does everything I expect, the right files get created, resized, etc. The download also seems to complete successfully with no error callbacks triggered.

BUT, the imagePane shows the "sorry, error downloading file" message. If I refresh the browser the image shows up as expected. This must be a browser problem. Anyone know how to resolve this. I have tried to make the file that downloads unique by attaching "?unique=getTimer()" but the browser still won't update the image until I hit refresh.

Thanks very much for any help.

-jheske

View Replies !    View Related
MousEvent.MOUSE_DOWN Doesn't Update Per Frame?
seems like a typical question, so if it's been answered before please direct me.

in Actionscript 2, a MovieClip.on(press) function is called as long as the mouse-button was held down. From my tinkering with Actionscript 3, it seems that the equivalent setup (by adding a listener using MouseEvent.MOUSE_DOWN) yields a function that is called only once when the mouse is pressed, and not continuously while the mouse-button is held down.

The way I got around this is by adding an Event.ENTER_FRAME function that does the heavy-lifting, the MouseEvent.MOUSE_DOWN function just registers that listener, and MouseEvent.MOUSE_UP unregisters the listener. this all seems like a work-around, though.

Any thoughts? (i'll post code if this the above doesn't make sense).

View Replies !    View Related
Text Field That Should Be Receiving It Doesn’t Change/update
Code:
part2.text = part1.text;
I have a problem. I have a button that takes numerical text from a text field and sends it to another! However this only works once! Say I type in 12.00 first it’ll send it! Then if I change it to something else and click my button the text field that should be receiving it doesn’t change/update! And I can’t figure out why!

View Replies !    View Related
Scroll Gallery [doesn't Scroll After Particular Point]
Hello guys,

I have got this script from one of the opensource files on flashkit and want to use it for one of my requirements. Basically all I want to do is, scroll images vertically based on mouse movement. I've done that already but the issue is that when I have over 10-15 images, it doesn't scroll as there is no place left for the mouse to go further down. If you have a look at the attached file, you'll know what exactly I am talking about. Ideally, if mouse is held downwards, the images should keep scrolling untill it reaches it's end.

Can anybody have a look at the fla and help me out.

Cheers,
D

View Replies !    View Related
Flvplayback Component Update 3
hi
where can i download the flvplayback component update 3
(h.264 update... mov.mp4...)

thanks

View Replies !    View Related
Update Component LivePreview
Hi
I'm concerned with my V2 component's appearance at authortime in LivePreview. My component correctly scales and arranges itself since I've implemented the setSize method.

But I have also got colour properties which can be set from the properties inspector.

How would I get changes made from this inspector to update the component instance on stage? I'm after something like redraw() but I'd rather avoid UIObject/UIComponent for now.

View Replies !    View Related
Update Component LivePreview
Hi
I'm concerned with my V2 component's appearance at authortime in LivePreview. My component correctly scales and arranges itself since I've implemented the setSize method.

But I have also got colour properties which can be set from the properties inspector.

How would I get changes made from this inspector to update the component instance on stage? I'm after something like redraw() but I'd rather avoid UIObject/UIComponent for now.

View Replies !    View Related
Scroller Doesn't Work
Hi y'all!

I need help on a scroller that doesn't work, and also when I publish the movie, a window comes up saying that there are some errors on my script, and I can't find out why. The files are attached to this message so you can take a look at them. I would REALLY appreciate your help. If you help me, I'll send you a virtual kiss!

Thanks a lot!

View Replies !    View Related
Text Scroller Help - Scroller Won't Scroll Full Length Of Text?
I have a text scroller that calls for a external text file. I have 16 numbered items in the .txt file but only 12 items will scroll. Why is this and how do I fix it? Also, is there any way to format text in the .txt file so that it appears formatted in flash? Right now there is a bunch of spaces between the numbered items. Thanks anyone!!

View Replies !    View Related
List Component Doesnt Update Dynamically?
Hi everyone,

Im very new at flash, only been writing stuff for a couple weeks, so maybe there is a simple solution. I have a List component that i use, and it doesnt seem to update its labels dynamically when i change an object in the dataprovider. The code goes like this:

I use a dataprodiver.

var dp:DataProvider = new DataProvider();
mylist.dataProvider = dp;

var myObj:testObj = new testObj("name");
dp.addItem(myObj);

mylist.labelFunction = setLabel;

function setLabel(Obj:Object):String{
return Obj.name;
}

then if I change the object name, it doesnt update the label.

myObj.name = "test 2";

I have even dispatched an event in the in myObj and added a listener so
I can explicitly make the List update label, but I cant find any
function call to make it do that. Driving me insane :)

Please let me know if youve experienced that same., TIA





























Edited: 06/08/2007 at 03:00:01 PM by studmanho

View Replies !    View Related
Update Datagrid Using Datechooser Component, MySQL And PHP
Hi there,

I've been struggling a few days with this. Any help would be greatly appreciated.
here is my code:


Code:
var aSession:Array = new Array();
var myXML:XML = new XML();
myXML.ignoreWhite = true;

test_btn.onRelease = function() {
myXML.onLoad = loadXML;
myXML.load("http://localhost/test/get_session.php");
};

function loadXML(bSuccess:Boolean):Void {
if (bSuccess) {
var xnRoot:XMLNode = myXML.firstChild;
for (var i:Number = 0; i<xnRoot.childNodes.length; i++) {
//mainList_mc.user_ds.removeAll();
aSession.addItem({sDate:xnRoot.childNodes[i].childNodes[1].firstChild.nodeValue, sStudio:xnRoot.childNodes[i].childNodes[2].firstChild.nodeValue, sStart:xnRoot.childNodes[i].childNodes[3].firstChild.nodeValue, sEnd:xnRoot.childNodes[i].childNodes[4].firstChild.nodeValue, sType:xnRoot.childNodes[i].childNodes[5].firstChild.nodeValue});
aSession.reverse();
mainList_mc.user_ds.items = aSession;
}
} else {
trace("Unable to load XML File.");
}
}
var myListener:Object = new Object();
myListener.change = function(eventObject:Object) {
var sendDate:LoadVars = new LoadVars();
var sDate = calendar_mc.calendar.selectedDate.toString();
sDate = sDate.substr(0, 9)+sDate.substr(27, 6);
sendDate.date = sDate;
sendDate.sendAndLoad("http://localhost/test/get_bydate.php", myXML, "GET");
myXML.onLoad = loadXML;
trace(myXML);
};
calendar_mc.calendar.addEventListener("change", myListener);
Here is what I have:

The XML file is coming from php which is taking the nodes data from a mySQL database. As you can see, the XML values are stored in an Array which has been assigned to dataSet component (user_ds). All those values are displayed via a dataGrid component binded to the dataSet. So far it's working great, but here it comes the problem. Now I would like to use a dateChooser component to retrieve the database data by date. I set up a listener and I'm using LoadVars to send the chosen date to php and mySQL, but even though the variable passes and php outputs the new XML file, the dataGrid doesn't update.
I've never used components before, but I'm pretty sure the problem lies on the XML object and the whole dynamic system which is also a new territory for me. The only thing I tried was to create another XML object to handle the new output, but that didn't work either. Any ideas?

Thanks in advance for any help!

View Replies !    View Related
Text So It Doesn't Sit Up Against The Scroller Walls::::::::.........................
I am trying to get my text to have some space on the left and right margin of my dynamic text scroller so that it's not totally up against the walls of the scroller. I talked to a friend and they told me to select the text area, and under properties, go to format, and change the pixels of the left and right side.

I tried doing this and nothing worked, I set it to 4 pixels and 4 pixels. Do I need to go larger?

Is there something I am missing?

If you wanna see what I am talking about GO TO:
www.carpeinternational.com

then to the "Carpé" section, then to the "News" section.

Thanks for the help.

GG.

View Replies !    View Related
Scroller Doesn't Work - Urgent
Hi y'all!

I need help on a scroller that doesn't work, and also when I publish the movie, a window comes up saying that there are some errors on my script, and I can't find out why. The files are attached to this message so you can take a look at them. I would REALLY appreciate your help. If you help me, I'll send you a virtual kiss!

Thanks a lot!

View Replies !    View Related
Scroller Inside Of MC Doesn't Work
please help??

Right now if you put this scroller insdie a MC it doesn't work...any ideas?

http://www.studioxmedia.com/scroller.fla


Thanks,
Andrea

View Replies !    View Related
Why Doesn't My Text Scroller Work?
So I got a text scroller from Billy T's tutorial.

Then I mad some simple sizing modificattions and now the scroller doesn't work.

Could someone take a look?

Here's the download: http://www.caillouette.com/scrolling_text.zip

thanks

View Replies !    View Related
Dynamic Scroller Doesn't Work Right
Hi,

I've added more photos and text to the copyrights section of a site. However with the added content, the red background doesn't fully display:

www.cedarparkent.com/reachglobal.com/index.html
Not sure if this is an xml problem or a scroll pane problem.

If anyone can help, I am willing to send over any needed files.

Thanks.

View Replies !    View Related
Scroller Doesn't Work With Actionscrip 2.0
Attached here I have a really great scroller, it does everything I want a scroller to do and it is - above all - simple. However it was build with actionscript 1.0 and flash 5. Now All my movies are in flash 7 (8 soon I hope) but I can't find a way to make it work. Could someone take a look at it? I would be really gratefull.

this is the main code:

Code:
textvar = "a lot of text, in the enclosed fla there is a lot more";
var textareaheight=back._height
var linesdisplayed=12
var lineheight=textareaheight/linesdisplayed

scrollbar.setup=function(){
lineheight=_parent.lineheight
linesdisplayed=_parent.linesdisplayed
textareaheight=_parent.textareaheight
top=_y=_parent.border._y
bottom=_parent.border._y+_parent.border._height
calcSize()
}

scrollbar.calcSize=function(){
var totallines=linesdisplayed+_parent.textvar.maxscroll-1
var proportion=linesdisplayed/totallines
_yscale=(linesdisplayed/totallines*textareaheight)>12?(linesdisplayed/totallines*textareaheight):12 // minimum size of bar.
if((_y+_yscale)>bottom){
_y=bottom-_yscale
_parent.textvar.scroll=1+Math.floor(((_y-top)/((bottom-_yscale)-top))*(_parent.textvar.maxscroll))
}
}

scrollbar.scrollchk=function(){
_visible=_parent.textvar.maxscroll>1
calcSize()
if(eval(Selection.getFocus())!=_parent.textvar){
_parent.textvar.scroll=1+Math.floor(((_y-top)/((bottom-_yscale)-top))*(_parent.textvar.maxscroll))
}else{
_y=top+((_parent.textvar.scroll-1)/(_parent.textvar.maxscroll-1))*((bottom-_yscale)-top)
}
}
Can expert tell me why this scrollbar doesn't work when converted into flash 7?

View Replies !    View Related
SWF Scroller Doesn't Display Correctly
Hi All,

this is a stonker that's had me stuck for a day.

I have an autoscroller FLA file, kindly allowing me to use it and try out by the original creator.

I've scrapped most of it as it loaded in an array of images from an XML file link. The XML link version works but I desperately need the SWF's to load in directly so I can ADD CODE TO MAKE A PRELOADER PERCENTAGE CLOCK.

Seems easy enough, and I've got it working to a degree, but the SWF keeps dissapearing from the scroll pane or not appearing at all!

When it does appear, it scrolls automatically as it should but blinks all the time and dissapears when the mouse is inactive.

I'm not good enough to figure out where the problem is - there's 2 frames of code, one in the main "thumbScroller" and another in the "thumbMC". That's it and there's not too much code to go through.

ANY ONE ABLE TO TAKE A LOOK?

Thanks in advance to all who gives it a go, and it might be a useful scroller for you.

I'VE SUPPLIED THE TEST FILES I'M MESSING WITH AS IT WOULD BE EASIER TO SEE WHAT'S HAPPENING. UNLESS THERE'S A UBER-SCRIPTER OUT THERE THAT CAN DO IT FROM THE CODE ALONE!

RAW Code:- thumbScroller


Code:
MovieClip.prototype.easeY = function(y) {
this.onEnterFrame = function() {
this._y = y-(y-this._y)/1.15;
if (Math.abs(y-this._y)<=1) {
delete this.onEnterFrame;
this._y = y;
boot();
}
};
};




// ------------------------------------------------------------

boot = function () {
mc = container.loadMovie("C:/about.swf");
//Next Line Not Needed?
//mc._y = 50;
mc.path = mc;
//Next Line Not Needed?
//mc.link = container;
setRollOver();
};
setRollOver = function () {
this.onEnterFrame = function() {
if (this.mask.hitTest(_root._xmouse, _root._ymouse)) {
slideMenu();
}
};
};
slideMenu = function () {
diffspacing = 160;
diff = this._parent._ymouse - ( this._y + diffspacing );
scale = diff*10/( this.mask._height - 2*diffspacing );
scale = Math.max(0,Math.min(100,scale)); // confine within 0->100
target = -scale*(this.container._height-this.mask._height)/100;
this.arrows.easeY( diff + diffspacing );
this.container.easeY(target);
};


RAW CODE:- thumbMC



Code:
MovieClip.prototype.backwards = function(){
this.onEnterFrame = function(){
this.prevFrame();
if(this._currentframe == 1) delete this.onEnterFrame;
}
}
loader.loadMovie(this.path);
/* Not Needed Anymore?
aux.onEnterFrame = function() {
if(loader._width>0) {
delete this.onEnterFrame;
loader.onRollOver = function(){
delete over.onEnterFrame;
over.play();
}
loader.onRollOut = function(){
over.backwards();
};
}
};
*/Not Needed Anymore?

View Replies !    View Related
Help With Scroller That Doesn't Work - Fla Is Attached Now
Sorry, I forgot to attach the file!

Hello!

Can anybody, by any chance, in this cruel world take a look at the attached .fla and help me to find out why the scroller doesn't work? Pleaaaaaaseeeee!!!!

Thanks!

View Replies !    View Related
Ahh Scroller Of Embedded .swf Doesn't Work
hey, im currently redoing my flash site and making all pages in external .swf files. I have a "homepage" which loads all of the seperate pages (external .swf's) through a 'contents' movie clip, but for some reason, once the specific .swf (say, the "News" page, 'news.swf'), is loaded into the "homepage", its scroller won't work. when you click the Up or Down arrow, it just reloads the news.swf file... the scroller is a custom scroller and is part of each external .swf, not the homepage.
what should i do? i have "stop();" all over the place.. and the news.swf is loaded using the code
_root.contents.loadMovie('news.swf');
thanks

View Replies !    View Related
Help With Scroller That Doesn't Work - Fla Is Attached Now
Sorry, I forgot to attach the file!

Hello!

Can anybody, by any chance, in this cruel world take a look at the attached .fla and help me to find out why the scroller doesn't work? Pleaaaaaaseeeee!!!!

Thanks!

View Replies !    View Related
How To Update Scrollpane Component Scrollbar When Mc Has Changed Height?
Hi guys

i've got a scrollpane component that loads in a movieclip.
that movieclip itself loads in data and changes height.

How can I tell the scrollpane to update the scrollbar height once the movieclip has loaded in properly?

Any ideas gratefully appreciated

Joe

View Replies !    View Related
That Scroller Doesn't Stop, I'm Feeling Sea-sick;)
step by step, I'm trying to learn. but now I've got another problem. I've got a sliding menu in a movie clip that activates various movieclips when I press the buttons like the one in
http://www.flashkit.com/movies/Inter...-463/index.php
taking this movie as an example, I'd like to understand
1) if the scrolling of the menu can be activated ONLY when the mouse is on it (Dunno, I really can't figure out HOW )
2) if there is a way to stop it when the mouse is over it; I've tried inputting commands such as on mouseover stop/on mouseout play but probably I'm waaaaaay out from the right path...
can you help me!?

View Replies !    View Related
Vertical Scroller Doesn't Loop Perfectly
hi there
i have this vertical scroller (picture scroller)
a big flyer must be viewed up and down, but, when i am at the bottom or at the top of the flyer, the flyer doesn't appear re-appear directly... so the "looping" effect seems very jerky...

this is my coding
// slider
acceleration = 0.1
heightMovie = 14;
//
startDrag("/draggy_mc", true);
middenlijn_y = hoogteMovie/2;
// bw_pics
setProperty("/bw/bw_all_sub", _visible, false);
duplicateMovieClip("/bw/bw_all_sub", "bw_all_1", 1);
duplicateMovieClip("/bw/bw_all_sub", "bw_all_2", 2);
heighteSlider = getProperty("/bw/bw_all_sub", _height);
//
stop();

anybody?

View Replies !    View Related
Added Thumbnails To Scroller, Doesn't Work In Another SWF
Hello All,
I followed the Adding Thumbnails tutorial, then changed it to a vertical scroll. Everything works great. Well I need this swf executed in another flash document as on of the pages. When i copy all of the frames and paste them in the new flash, the gallery displays ok with no errors, however the vert scroller doesn't display. If you click prev and next the picture DOES display. Please advise.

Thanks.

View Replies !    View Related
Update Text Size, Color And Font Of A TextArea Component
Hi All,

I'm using Adobe CS3 and writing in AS3. Many people are having the same problem as me, all across internet land, so if you can resolve this you will be helping a lot of people.

I have two textarea components that I'd like to change the font, size and colour of the text in each. Both have to remain editable, and if possible I'd like to do it from within the CS3 IDE.

Here's one of them:


Code:
var playerlist:TextArea = new TextArea();

playerlist.move(530.5,375.9);
playerlist.setSize(200,173);

playerlist.editable=false;
Can anyone give me (a newbie to this!) step by step instructions as to how to do this please?

Please do not direct me to the Adobe help pages or anywhere else. I have scoured the web and cannot find/understand anything that helps me resolve this problem. Among the solutions I've tried include:

1) Accessing the TextField component within the TextArea directly (I thought I was on to a winner with this, but found out the variable is protected)

2) Setting the style directly e.g.
Code:
playerlist.setStyle("fontFamily", "Times");
(for some reason, simply doesn't work)

3) Setting up a TextFormat object and applying that to the textarea (doesn't work)

And probably a whole lot more that I can't remember...

Your help... ANY help that gets me closer to a solution.. IS very much appreciated, thanks!

Thanks,

Dave

View Replies !    View Related
Photo Gallery Scroller Doesn't Roll Back
Hello,

I've done the Photo Gallery Tutorial and the Adding Tumbnails tutorial of this site. With this information I've made a vertical scroller and it works fine!

But there is one problem. I use the scroller on several parts of my portfolio website. When I go to "Webdesign" there are just three thumbs so the scroller doesn't work. That's OK, while three thumbs fits well on my page. W
When I go to "Print" you can scroll while there are 5 thumbs on this page. That's also OK!But when I scroll down to the final thumb of "Print" and then go back to "Webdesign" all the thumbs are gone. The scroller didn''t roll back to his original position.

I've already added:

unloadMovie(thumbnail_mc);

to the code. This avoids that there aren't thumbs from "Print" coming into the scroller of "Webdesign"

Does anybody know how i can fix this?

Thanx!

View Replies !    View Related
Scroller Doesn't Work For Image In Dynamic Text
What I have here is a dynamic text with a scroller. It worked great for texts, html anchors, etc. But when I put in the <img> then the scroller doesn't work... Does anyone know why or know how can I make it work?

Thanks....

View Replies !    View Related
Image Scroller That Doesn't Make You Motion Sick
Hi there, I hope someone can help me and my flash handicapp...so I'm trying to make a portfolio website and I want to have a dynamic horizontal image scroller that is stationary until you click on an image. The image that is clicked goes to the center and with another click enlarges. When the enlarged picture is clicked it goes back into the image scroller.
I was inspired by the website at: www.sorenhald.com,

I really don't like the tutorials that I've found and I need some serious help getting started. Please if anyone knows what I'm talking about, can you help direct me or give me some insight. Thank you!

View Replies !    View Related
My Scroller Won't SCROLL :'(
Help!

I used the tutorial on flashkit by Patrick Mineault to create a scrolling text box. The first one worked fine, but the other two don't work AT ALL, what could be going on?!

my site: http://www.7inone.info/monkeybut

the tutorial: http://www.flashkit.com/tutorials/In...29/index.shtml

basically, it's 3 parts in a MC. The first part is a dynamic text box, with a variable name. Part 2 is the up button, for which the AS is:

on( press ){
scrolling = "up";
}
on( release, releaseOutside ){
scrolling = 0;
}


Part 3 is the down button, which is scripted as:

on( press ){
scrolling = "down";
}
on( release, releaseOutside ){
scrolling = 0;
}

Now the MC with the 3 parts, is loaded onto the stage, and has the following object action:

onClipEvent (load) {
this.loadVariables ("fclient.txt");
scrolling = 0;
frameCounter = 1;
speedFactor = 2;
}
onClipEvent (enterFrame) {
if (frameCounter%speedFactor == 0) {
if (scrolling == "up" && fclient.scroll>1) {
fclient.scroll--;
} else if (scrolling == "down" && fclient.scroll<fclient.maxscroll) {
fclient.scroll++;
}
frameCounter = 0;
}
frameCounter++;
}


if you go to the "Café" button on my site, and click "Café Events" you get a perfect scrolling text box.

I made the other scrollers in much the same way, just using copy and paste. TO see what's going on, go to:

1) News, Client Corner.

2) Then click on "feat. client"

the other option is

3) click on "feat. article"

In both cases - there is no scrolling. Can someone pls help!?!?!??!!?

much appreacite it

Sid.

View Replies !    View Related
Scroller To Scroll Buttons...
I've searched and all I've found is people saying you could with the ScrollPane and a movie, but that's about it. No directions or suggestions. Right now, I have the ScrollBar Component just scrolling text, but eventually, I'll want that text to be different buttons to choose from. Any suggestions or links to Tutorials would be great...

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