Re: [Flashcoders] ::dk:: Best way to check if data is done loading for scroll bars

2006-09-20 Thread Gustavo Teider - Adobe Flash Developer

dnk escreveu:
Hi - I have had a few times where I need to call the redraw() function 
to recreate my scrollbars after the data is loaded
But I obviously need to wait until the data is completed. The times I 
seem to have the issues is when loading something that takes a bit 
longer (IE an image or something after a returned record set) into say 
an html text field (with a scroll bar) or something into a scroller pane.


Is there something that makes this a little easier? Or is it the type 
of thing where I need to do some sort of setInterval



Thanks!


d




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


use setScrollTarget

scrollbar.setScrollTarget(your_textfield);

is this ?

--
Gustavo Teider ( gugateider )
www.gugateider.com
Curitiba - PR

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ::dk:: Best way to check if data is done loading for scroll bars

2006-09-20 Thread Bbt Lists

Gustavo Teider - Adobe Flash Developer wrote:





use setScrollTarget

scrollbar.setScrollTarget(your_textfield);

is this ?

But how do you tell if the data is actually done loading? I mean for 
example, i have a field that loads a jpg in, and since the jpg takes a 
little longer, the scroll bars account for the text, but not hte image. 
And if I call redraw right after I call the data to be loaded, it seems 
to still be too soon.




--
dnk

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ::dk:: Best way to check if data is done loading for scroll bars

2006-09-20 Thread Marc Hoffman
Good point, and I don't know of an elegant answer. But one hack would 
be to simultaneously load your images into hidden clips using 
MovieClipLoader, and set up some onInit calls that would tell you 
when all the images have been downloaded.


Marc

At 09:20 AM 9/20/2006, you wrote:


Gustavo Teider - Adobe Flash Developer wrote:



use setScrollTarget

scrollbar.setScrollTarget(your_textfield);

is this ?
But how do you tell if the data is actually done loading? I mean for 
example, i have a field that loads a jpg in, and since the jpg takes 
a little longer, the scroll bars account for the text, but not hte 
image. And if I call redraw right after I call the data to be 
loaded, it seems to still be too soon.




--
dnk



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ::dk:: Best way to check if data is done loading for scroll bars

2006-09-20 Thread Gustavo Teider - Adobe Flash Developer

Bbt Lists escreveu:

Gustavo Teider - Adobe Flash Developer wrote:





use setScrollTarget

scrollbar.setScrollTarget(your_textfield);

is this ?

But how do you tell if the data is actually done loading? I mean for 
example, i have a field that loads a jpg in, and since the jpg takes a 
little longer, the scroll bars account for the text, but not hte 
image. And if I call redraw right after I call the data to be loaded, 
it seems to still be too soon.





your image its loading in html textfield with img src  ??

Do you have an example about this ?
Put your files in your server , so , will be easy

[]´s

--
Gustavo Teider ( gugateider )
www.gugateider.com
Curitiba - PR

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ::dk:: Best way to check if data is done loading for scroll bars

2006-09-20 Thread Gustavo Teider - Adobe Flash Developer

Bbt Lists escreveu:

Gustavo Teider - Adobe Flash Developer wrote:





use setScrollTarget

scrollbar.setScrollTarget(your_textfield);

is this ?

But how do you tell if the data is actually done loading? I mean for 
example, i have a field that loads a jpg in, and since the jpg takes a 
little longer, the scroll bars account for the text, but not hte 
image. And if I call redraw right after I call the data to be loaded, 
it seems to still be too soon.





if you are using loadMovie to load images, forget 
Use MovieClipLoader Class, and set scroll target after load image,
the class allow that you do this

ex:

var obj:Object = new Object();
obj.onLoadInit = function() {
   scroll.setScrollTarget(your_textfield);
}
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(obj);
mcl.loadClip(image.jpg, yourMovieClipTarget);

[]´s


--
Gustavo Teider ( gugateider )
www.gugateider.com
Curitiba - PR

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ::dk:: Best way to check if data is done loading for scroll bars

2006-09-20 Thread Duncan Reid

One thing you can try is to give your image an id so it's seen as a
MovieClip within the textfield, then you can run a checker to see when
it's loaded then redraw the scrollbar...

img id='mcID' src='stuff.jpg' hspace='10' vspace='5' align='left'

so to access it you would path: textfieldname.mcID.

hope this helps some,
Dunc


On 9/20/06, Bbt Lists [EMAIL PROTECTED] wrote:


Gustavo Teider - Adobe Flash Developer wrote:


 use setScrollTarget

 scrollbar.setScrollTarget(your_textfield);

 is this ?

But how do you tell if the data is actually done loading? I mean for
example, i have a field that loads a jpg in, and since the jpg takes a
little longer, the scroll bars account for the text, but not hte image.
And if I call redraw right after I call the data to be loaded, it seems
to still be too soon.



--
dnk

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ::dk:: Best way to check if data is done loading for scroll bars

2006-09-20 Thread Bbt Lists

Gustavo Teider - Adobe Flash Developer wrote:



Gustavo Teider - Adobe Flash Developer wrote:


your image its loading in html textfield with img src  ??

Do you have an example about this ?
Put your files in your server , so , will be easy

[]´s

This is correct. It is an html field with the img tag (in this case). I 
am offsite at another location, so I do not have my files with me to 
post. But that aspect is workign fine.. .I was just hoping to learn of a 
way to test if the data is loaded in this instance.


--
dnk

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ::dk:: Best way to check if data is done loading for scroll bars

2006-09-20 Thread Bbt Lists

Duncan Reid wrote:

One thing you can try is to give your image an id so it's seen as a
MovieClip within the textfield, then you can run a checker to see when
it's loaded then redraw the scrollbar...

img id='mcID' src='stuff.jpg' hspace='10' vspace='5' align='left'

so to access it you would path: textfieldname.mcID.

hope this helps some,
Dunc
Ah! I will try that when i am back with the files... I was not aware 
that you could do that!



--
dnk

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] ::dk:: Best way to check if data is done loading for scroll bars

2006-09-19 Thread dnk
Hi - I have had a few times where I need to call the redraw() function 
to recreate my scrollbars after the data is loaded
But I obviously need to wait until the data is completed. The times I 
seem to have the issues is when loading something that takes a bit 
longer (IE an image or something after a returned record set) into say 
an html text field (with a scroll bar) or something into a scroller pane.


Is there something that makes this a little easier? Or is it the type of 
thing where I need to do some sort of setInterval



Thanks!


d




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com