I have a textfield and loading information from an external file. The images are not showing up quickly, so after the textfield is loaded, the image will show up. Is it possible to preload the images or something? Or is it possible to show the textfield when the image is fully loaded (which is less responsive of course :()?
The image also loads slow when it's already loaded.
Another question: how can I get autoheight working? The textfield is a 'standard' height (around 300 pixels?) and autoheight does not work at all :(. Here is my code:
Code
set(plugin[showinfo].url,%SWFPATH%/plugins/textfield.swf);
set(plugin[showinfo].width, 400);
set(plugin[showinfo].autoheight,true);
set(plugin[showinfo].align, lefttop);
set(plugin[showinfo].x, get(showinfo_x));
set(plugin[showinfo].y, get(showinfo_y));
set(plugin[showinfo].alpha, 0);
set(plugin[showinfo].html,data:%1);
set(plugin[showinfo].onloaded,set(html,data:%1));
set(plugin[showinfo].visible,true);
set(plugin[showinfo].selectable,false);
tween(plugin[showinfo].alpha,1,1.0);
set(plugin[showinfo].dragging,
if(pressed,
sub(dx,mouse.stagex,drag_stagex);
sub(dy,mouse.stagey,drag_stagey);
mul(dx,dragsx);
mul(dy,dragsy);
add(x,drag_currentx,dx);
add(y,drag_currenty,dy);
if(onDrag!==null,
onDrag()
);
delayedcall(0,dragging());,
if(onDragEnd!==null,
onDragEnd();
);
);
);
set(plugin[showinfo].ondown,
copy(drag_currentx,x);
copy(drag_currenty,y);
copy(drag_stagex,mouse.stagex);
copy(drag_stagey,mouse.stagey);
set(dragsx,+1);
set(dragsy,+1);
if(align==righttop,set(dragsx,-1));
if(align==right,set(dragsx,-1));
if(align==rightbottom,set(dragsx,-1);set(dragsy,-1));
if(align==bottom,set(dragsy,-1));
if(align==leftbottom,set(dragsy,-1));
if(onDragStart!==null, onDragStart() );
dragging();
);
set(plugin[showinfo].onup,
copy(showinfo_x, x);
copy(showinfo_y, y);
if(drag_currentx == plugin[showinfo].x,
hide_data();
);
);
Display More
(a trace shows me the height is null:
trace("Height = ", get(plugin[showinfo].height));
)