I'm having a problem with an application which has 2 dynamic text fields. I have UIScrollBar in the library and I successfully utilise the scrollbar by attaching it to the different text field depending on which buttons on screen are clicked. I load files into these text fields no problems. The scrollbar appears on each of the textfields. In the debugger I see the scrollbar. I use the _visible = true or false to display the appropriate text field. I reassociate the scrollbar to the specific text field at the appropriate time, adjust it's position and size and make it visible. So far so good.

It seems once I click submit to allow the program to call a CGIbin program using sendAndLoad the scrollbars no longer display but the textfields still display content and are scrollable but the scrollbar is not there.

At this point in the program, in the debugger, the scrollbar disappears, and all trace statements in the program to display whether it is visible or invisible now come up as undefined where they happily displayed true or false in the same function code earlier. Obviously because for some reason the scrollbar just drops out of the programs assets for some reason.

Any idea why this might happen?

It isn't easy to display all this working code as 1. it is thousands of lines of code and 2. I probably can't really give out the entire work project source code and 3. I bet if I strip it down to small specific code it will probably work. 4. It calls a CGIbin program inhouse and not available external to my workplace.

Summary:
So anyway the code works up until it runs sendAndLoad and then UIScrollBar disappears from the program assets within debugger and yet I never attempt to remove it and don't even know how to.

I'd like to see the code in the onLoad function of the loadVars if possible. Or even describe more of what you're doing after the sendAndLoad (before and after it comes back to call the onLoad function)

I isolated the code doing the relevant bits and sure enough it appears to work just fine. The scroll bar happily stays put, whereas in my full application the scrollbar property disappears (I see it disappear in the debugger) for no apparent reason. I'm wondering if I have come across some bug as there is no reason (that I can think of) as to why it would disappear seeing as I do not attempt to remove it.

I may have to give the textarea a try as it has built in support for scrollbars.

Ok I have the code below, but as I suggest it works fine, note I have edited out the cgibin program path.

function setScrollHelp():Void {
//
// Set the scrollbar to be used with the help_Content_txt dynamic textfield
// which is larger than the help dynamic textfield
// this reuses the UIScrollbar but alters the size
//
// Set the target text field for the scroll bar.
_root.scrollBar.setScrollTarget(_root.help_Content_txt);
// Size it to match the text field.
_root.scrollBar.setSize(16, _root.help_Content_txt._height);
// Move it next to the text field.
_root.scrollBar.move(_root.help_Content_txt._x+_root.help_Content_txt._width+25, _root.help_Content_txt._y);
//
// Now make the large help dynamic textfield visible
//
_root.help_Content_txt._visible = true;
//
// Make the scrollbar visible
//
trace("============in setScrollHelp=====");
trace("_root.scrollBar._visible = "+_root.scrollBar._visible);
_root.scrollBar._visible = true;
trace("_root.scrollBar._visible = "+_root.scrollBar._visible);
}
function setScrollLegal():Void {
//
// Set the scrollbar to be used with the legal_txt dynamic textfield
// which is smaller than the help dynamic textfield
// this reuses the UIScrollbar but alters the size
//
// Set the target text field for the scroll bar.
_root.scrollBar.setScrollTarget(_root.legal_txt);
// Size it to match the text field.
_root.scrollBar.setSize(16, _root.legal_txt._height);
//
// Move the scrollbar to right of the text field.
//
_root.scrollBar.move(_root.legal_txt._x+_root.legal_txt._width+25, _root.legal_txt._y);
//
// Now make the small legal dynamic textfield visible
//
_root.legal_txt._visible = true;
//
// Make the scrollbar visible
//
_root.scrollBar._visible = true;
}

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class.
It took me a while to figure this out but once I did it makes life so much easier.
…

In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two.
Here are s…

The goal of the tutorial is to teach the user how to select the video input device.
Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.