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




Scrolling Text From XML Obj. W/scroll Prop



Does anyone know why the old scroll property for scrolling a text box in Flash doesn't work when filling the text box with content from a dynamically loaded XML file?



FlashKit > Flash Help > Flash MX
Posted on: 09-19-2002, 12:32 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Get X Prop Of Dynamic Loaded, Scrolling Image
Hey gurus,

How do I trace and get the current _x property of an image as it scrolls?

Setup: mc which loads images dynamically from a directory into another mc (button), the mc is renamed (button1), duplicated, next image is loaded, button is named button2, next image loaded, button named button3 etc... Then, these sequential buttons are scrolled left to right (or right to left, depending on where the mouse x is relative to the cener of the root movie) on the stage.

I need to capture the current x position of specific buttons and then do a text change (contained in a separate mc on the stage)....and the following is not doing the trick:

On the mc which loads the pics, creates the buttons, etc.:


onClipEvent (enterFrame) {
_x+=(_parent.centre._x-_parent._xmouse)/20;

w = (_root.sliders._width+216)/2
if (_x<-w) {
_x = -216
} else if (_x>-216) {
_x = -w;
}
button1 = getProperty(_root.sliders.slider.button1, _x);
trace("button1_x = " + button1);
if (_root.sliders.slider.button1._x >45) {
_root.textchange.gotoAndPlay("pic1");
}
}


.....with similar code for other images which require text changes if they are on the stage at a specific x coord.

How To Set Dropdown Component Text Prop?
Hi,

I built this form and the input fields have the size of 10 px..

for selective inputs such as sex, country, etc.. i use the dropDown component.. my problem is, the text size of the dropDown component is by default 12px (me thinks) .. would like to set this to 10.. how? not in the help documents..

tea

Text Partially Disappearing Prop?
i've got a dynamic text box and sometimes the second line of text disappears. Until I hi lite it and it then becomes visible again?

Please Help, Problem With Text-field/area Prop.
I went throug few tutorials where the creator (of tutorial) shows and explains few codes that helps us to convert texts in textfields.

I playied a little with these codes on textarea, but it gave no effect.

My problem is that i want to convert a text in textarea component into bold. I also need a way to convert text color (if needed) into red.

Thing is that php gets data from databases and publishes it as XML-tree. Flash, in the other hand reads data between these tags and publishes in a specific component (in this case textarea component).

Please ? Is there any coder who could help me out with the code, to set bold effects on texts in textarea component.

Regards
-H3ist

Text Scrolling W/o Gap Afterwards- Making A Contstant Stream Of Text Scroll
How can I make some text scroll constantly without the whitespace gap afterwards e.g. if i was doing the string "Hello World ", it would scroll "Hello World Hello World Hello World", instead of waiting for "Hello World" to go completely off screen and then start again?

Thanks

Sam

Scrolling Text Using Scroll Bar
Hi mates,

I am facing problem when i try to scroll a dynamic text using a scrollbar. how to control using scrollbar??. i have to scroll buttons also. One on the top and other at bottom. The system is exactly like the windows scroll system.

Please help

sumal

Scrolling Text Won't Scroll
I have created a simple .txt file (review.txt) to load into a text field that begins with "textField=". I've created the dynamic text box with an attached scrollbar component, used a variable in the parameters (textField), and created an action layer with "loadVariablesNum("review.txt", 0);" in it.

The file loads, but won't scroll.

HELP!!! I have wasted too much time on this seemingly simple task and it must be simple to correct, right?

Scrolling Text - Doesn't Scroll Using External Text
Okay, this is something I've got around using some fairly complex coding from these boards before, but I'm wondering if there's a much easier way.

I have a dynamic text box named "mainText", and am using buttons to scroll up or down with the following AS:

on (rollover, dragOver) {
_root.mainText.scroll -= 1; // change to += to go down
}

Now, this works fine if the txt is placed in the actual text box, but if I load external text it does not scroll.

Is there a simple way around this?

Cheers
Dave

Scrolling Text Have A Limit On Amount Of Text It Can Scroll?
Hi all,

I've created a dynamic scrolling text field with two buttons up and down. It seems to work fine except that it won't scroll the entire document. It gets about half way and just stops and won't let you scroll any further. I can't figure this one out and I can't seem to find any info on any forum. The file was created in text edit and doesn't have any funky characters in it and the down button code is:
on (release) {
biosText.scroll+=5;
}

the text code is:
stop();
loadVariables("biosText.txt", this);

Thanks

Scrolling Text Have A Limit On Amount Of Text It Can Scroll?
Hi all,

I've created a dynamic scrolling text field with two buttons up and down. It seems to work fine except that it won't scroll the entire document. It gets about half way and just stops and won't let you scroll any further. I can't figure this one out and I can't seem to find any info on any forum. The file was created in text edit and doesn't have any funky characters in it and the down button code is:
on (release) {
biosText.scroll+=5;
}

the text code is:
stop();
loadVariables("biosText.txt", this);

Thanks

Scrolling Text Have A Limit On Amount Of Text It Can Scroll?
Hi all,

I've created a dynamic scrolling text field with two buttons up and down. It seems to work fine except that it won't scroll the entire document. It gets about half way and just stops and won't let you scroll any further. I can't figure this one out and I can't seem to find any info on any forum. The file was created in text edit and doesn't have any funky characters in it and the down button code is:
on (release) {
biosText.scroll+=5;
}

the text code is:
stop();
loadVariables("biosText.txt", this);

Thanks

Scrolling Text Have A Limit On Amount Of Text It Can Scroll?
Hi all,

I've created a dynamic scrolling text field with two buttons up and down. It seems to work fine except that it won't scroll the entire document. It gets about half way and just stops and won't let you scroll any further. I can't figure this one out and I can't seem to find any info on any forum. The file was created in text edit and doesn't have any funky characters in it and the down button code is:
on (release) {
biosText.scroll+=5;
}

the text code is:
stop();
loadVariables("biosText.txt", this);

Thanks

Scroll Menu, Scrolling Text
I have seen a couple of flash sites with a scroll bar, and a "button" you can drag, and the text scrolls.

I am trying to figure out how to do this in flash- I have my bar, and button/movieclip that you have to drag and it even works when you drag it!

But how do I "attach" this to my text is what I want to know, so when the user drags the button/MC the text will scroll as they drag.

Thanks!!

Custom Scroll/scrolling Text Please Help
I am trying to figure out how to scroll text in my movie when the user either rolls over the button or when they click on the button? How is this accomplished. I have seen it on many sites. and would like to incorporate it. any suggestions? greatly appreciated.

ryan

Text Scrolling (creating A Scroll Bar)
I am working on a site with alot of text and am trying to make my inw scroll bar. I can get the up and down buttons to work, my prolbem is the up & down dragable part of the bar.

If anyone has any ideas it would help alot.

thanks
Ben

Scrolling Text Box, W/ Scroll Bar Control
Ok, I am frustrated!

I am trying to get a text box to fit in a limited about of screen space by providing a scrolling screen for it. (Similar to browsers,) you place your mouse on the scroll bar to the left anf press to make the display screen move up or down. This is in no way a new idea and it seems pretty simple, but I am floundering and embarassing MYSELF with my lame attempts at scripting this. I can not even get the slider to properly slide let alone move the text clip. I have included a fla and a swf so you can see what I mean and laugh at my pathetic script. (I did!) Thanks so much for your help!!!
Angie

FLA:
http://www.a1flash.com/flashkit/test.fla

SWF:
http://www.a1flash.com/flashkit/test.swf

Scrolling Text: With Scroll Bar Component
Hi everyone i know how to scroll text using the scroll bar component but using that... it makes the backround white is there anyway i can change the colour of this using the scroll bar?

Scrolling Text By Using The Mouse Scroll
Hi,
I have scrolling text on my website, it scrolls if you hold your mouse on the UIScroller, but I want to be able to scroll my text just by clicking on the text field and using my mouse scroll. The problem is that I am new to Flash and to Actionscript. If somebody can help me will be great.
P.S.You can look what I am talking about on the following address:
http://oneplusone.missouristate.edu/home.htm
under "the project"

My Scrolling Text Doesn't Scroll
Well People,

Here I am with another problem. I am following the Kirupa tutorial on "Scrolling Dynamically Loaded Text". Once again I have followed the tutorial exactly, but it doesn't seem to be working.

This is what I'm seeing. When I preview the movie I see the first several lines of text in the text area, but the text is not formatted in the manner I chose in the properties dialog box. The text box scroll bar does not move and the text doesn't scroll.

What could I possibly be doing wrong? Any help is greatly appreciated.


Thanks,



Kelly

My Scrolling Text Doesn't Scroll
Ok guys,

That same problem from last night is still occuring. I did exactly what the tutorial stated, but it doesn't scroll. From all that I have done it appears that it might have something to do with the formatting of the text file - not sure though. would someone please look at my attached files and see if they can figure out what I'm doing wrong?


Thanks,



Kelly

Scroll Bar/Scrolling Text Field
Hello,
I am tryin to find how to make a scrooling text field like the one here at aisgrafiks under the services (bottom left hand corner) section please help me. I really need help with how to put the text in and make it scrool thank you in advanced

Controlling .text Prop Of A TextField As A Child Object Of A MovieClip - Not Working
Hey guys,

I know this one is going to sound ridiculously stupid, but while I am more than capable of controlling the text property of a TextField when it is on the stage by itself, my testing of a altering a TextField's text as a child of a MovieClip object is failing miserably. Can anyone tell me what kind of knuckleheaded mistake I'm making? I tried to write out the code as clean as possible below...

//IMPORTS...



//VARIABLES...
//create movieclip object
var myMovieClip:MovieClip = new MovieClip();

//create object to be made a child object of myMovieClip
var myChildObject:TextField = new TextField();
myChildObject.text = "Child Object";
myChildObject.name = "Object1";
//COMMANDS... TextField
//add myChildObject as a child of myMovieClip
myMovieClip.addChild(myChildObject);

//place myMovieClip on the stage
addChild(myMovieClip);
//ADDEVENTLISTENERS...
//this will allow user to click on the stage activating a change in the x-coordinate of myChildObject
stage.addEventListener(MouseEvent.CLICK, changeChildObjectProperties);
stage.addEventListener(MouseEvent.MOUSE_WHEEL, add2ndObject);
//FUNCTIONS...

//ADDEVENTLISTENER FUNCTIONS...

function changeChildObjectProperties(event:MouseEvent):void
{
//CHANGING THE 'x' & 'width' PROPERTIES WORK JUST FINE...
myMovieClip.getChildByName("Object1").x += 50;
myMovieClip.getChildByName("Object1").width = 250;

//!!!THIS IS THE THING THAT DOESN'T WORK NO MATTER WHAT...

myMovieClip.getChildByName("Object1").text = "Object1's text has been changed...";

}

function add2ndObject(event:MouseEvent):void
{
var my2ndChildObject:TextField = new TextField();

my2ndChildObject.name = "Object2_" + myMovieClip.numChildren;
my2ndChildObject.text = my2ndChildObject.name;

myMovieClip.addChild(my2ndChildObject);

my2ndChildObject.y += 20;
}

//END ADDEVENTLISTENER FUNCTIONS

//NORMAL FUNCTIONS...



//END NORMAL FUNCTIONS

//END FUNCTIONS

Loaded Text Anyway Of Text Scrolling Without Using Scroll Bar?
Hi All
Im only new-Was onto the tute about scrolling dynamically loaded text-
Its great got it working!I was wondering if there is any way of allowing the text to scroll automatically upwards as the info in the news box will be small so the clients want it to be constant eg"Dont forget halloween...Dont forget "etc scrolling upwards
they want to update the news box themselves
Thanks in advance!
L

Scrolling Text With A Mouse Scroll Wheel
Is it possible to scroll text in Flash with a mouse scroll wheel? If you don't know what I'm talking about, this is the wheel between the two mouse buttons found on PCs.

If you've done this, please give me some direction. How is it done? Is there an FLA somewhere? Etc.

Thanks in advance.

-scott
http://scottmanning.com

Scrolling Text By One Line Without Textbox.scroll
I'm trying to move a textbox line by line in a nice smooth way, rather than using textbox.scroll which would 'jump' from line to line.

My problem is finding the right amount of pixels to constrain by.

There seems to be an indefinite amount between lines??
I've set the linespacing to 0, and my fontsize is 15pt. During authoring, the distance between lines seems to be 15px, but this causes synch problems after publishing. I also tried finding the size of the textbox and dividing this by the number of lines. This gives me about 15.5 px, which for some reasn is also too much.
Code:
code:
t_info2.autoSize = "left";
info2 = "line1"+newline+"line2"+newline+"line3"+newline+"l ine4"+newline+"line5"+newline+"line6"+newline+"lin e7";
_root.onMouseDown = function() {
oldY = t_info2._y;
spacer = t_info2._height/7
_root.onEnterFrame = function() {
t_info2._y -= 1;
if (t_info2._y<=oldY-spacer) {
delete _root.onEnterFrame;
}
};
};

Is there a better way to do this??
Many thanks in advance.
fla attached.
Click to advance line by line, it will start to fall out of sync at about line5.

Scrolling Dynamic Text With Out Scroll Bar Or Buttons
I need to develop a .swf that slowly scrolls down dynamic text and loops it seamlessly. I have built an example in javascript but it needs to be done in flash. Is this even possible? For an example of what I am talking about go to http://www.lenderlab.com/subnetx and look on the left hand side under loan highlights. If it's possible please let me know asap.

much thanks

Scrolling Text Already Masked (how To Scroll W/o A Mask)
http://www.clayton.bellmor.com/

On the home page, I have a mask that slides up and shows the text in both tables.
As you probably can see, the text field on the right is long and I need to have it scrollable.

How is this accomplished considering I've already masked the text once, and it doesn't look like I can mask a mask...

the .fla is at http://www.clayton.bellmor.com/inlaytext.fla

Thanks!

Help With Scrolling Dynamic Text And Using Custom Scrollbars To Scroll It
Hi all,

Thank you for the interest in my post.

I have been having real serious problems with making dynamic text and making custom scrollbars to scroll the text from a .txt file. I've had a look at the Macromedia tutorial on their site and searched for an appropriate tutorial but just can't follow it as it doesn't say which frames etc. to put the code in as I'm new to MX - I either need step by step instructions for someone or need someone to make it all for me so I can see can check out the code and visually see how it's done.

Would it at all be possible if I gave someone an .fla with my custom scroll buttons and tracker etc. for them to make the dynamic text and add the code etc. and e-mail it back to me so I can fully see how it's done please.

You will get full credit for your work on the site and a link to your site - this site is for a signed band here in the UK so the hits are likley to be very high too. If you can help me, please put your e-mail address as a reply and I'll send you the fla.

Thank you very much for your assistance - if you can help me with this, it will be very much appreciated. I hope to hear from you.

Take care,

Mark

Dynamic Text Scroll Arrow Hold To Keep Scrolling
I'm desperately trying to see if someone has a way to scroll dynamic text that keeps scrolling up or down when the appropriate button is clicked and held. Here's my code for single click line up and down, but that's kinda weak.


Code:
texUp_mc.onPress = function(){
ctr_body_txt.scroll = ctr_body_txt.scroll -1;
}

texDown_mc.onPress = function(){
ctr_body_txt.scroll = ctr_body_txt.scroll +1;
}
Thanks!

Scrolling Text With A Motion Tween, But WITHOUT SCROLL BARS
Hello,

I'm desperate!!
I'm more or less a noop on Flash CS3 and I'm trying to learn it myself. Now I'm already for three or four weeks busy to get scrolling text WITHOUT SCROLL BARS!!! I see a lot scrolling text but everytime with scroll bars.

I'm a little bit further I believe. What I mean and where I'm looking for is called a news ticker or scrolling a news text

What I want is next:
On the http://www.nicovandekamp.nl/bin-debug/project.html you can see how far I'm.
The following steps.
1. I can switch the tv on with the left white square button.
2. The film movie starts. That's good.
3. After the movie, scrolling text commes up and start -to fast- scrolling. But so as you can see the mc_mask and the mc_scrollingtext are already there.
4. After the scrolling text is finished the (team) foto is comming up. That's good

Now I have the following questions:
1. When the movie is finished the textarea with the scroll text must come up (alpha 0.0 --> 1.0 OR with a mask?).
2. Minor issue: I have still problems with positioning the mc_mask/mc_scrolltext.
3. How can I control the scrollspeed?
4. Is there a event.complete to detect that the scrollingtext is finished. It's now done with a timer but I think it's better to do it with event.complete.
5. I have heard of mask but how does this work? On the upper and the bottom of the text area I like to have "soft edge", So that it seems that the text scrolling out of "mist" (i hope that you understand what I mean).
6. can this be done by an motion tween

I HOPE THAT SOMEBODY CAN HELP ME WITH A MORE CONCRETE EXAMPLE. It would give me a lot of peace of mind!!!!

THANKS IN ADVANCE.

Nico

Scrolling News Text Wont Scroll Off Screen Properly
Hello again -
I had some very useful help yesterday & got this news ticker working...
But one last thing eludes me -
How do I get the text to roll off the left of screen completely before returning from the right again?
I've tried loads of stuff but don't know what I'm doing!

Here's the code:

Code:
var loadText:LoadVars = new LoadVars();
loadText.load("news.txt");
loadText.onData = function(src:String):Void {
if (src != undefined) {
news_txt.htmlText = " "+src;
scrollText();
} else {
news_txt.htmlText = "could not load data";
}
};
function scrollText() {
onEnterFrame = function () {
if (news_txt.hscroll<news_txt.maxhscroll) {
news_txt.hscroll+=30;
} else {
news_txt.hscroll = 1;
}
};

}
Don't mind the speed of the text - it's just to get through it quicker for the sake of testing!

Anyone able to help?
I've included the files...

[as2] Why Use: Function Get Prop()
why use something like this:


Code:
class meh {

private var num: Number;

function get valNum {

return num;
}
}
and not just make num a public variable?

Accessing Mcs By _x Prop Value
I have 12 instances of a movieclip. These are arranged on the stage in three columns.
I would like to populate three different arrays, one array per column, with mcs from each column. In other words "all mcs._x == 60 go to array 1, all mcs._x == 130 go to array 2, etc.

I anybody could lend a hand would be greatly appreciated.

--::Custom Navigation Prop::--
I'm trying to get these buttons to behave in such a way that when you select one, animation plays and it stops on the selected state. They pretty much do that now, but seem to be sticking sometimes.

Where I'm running into a problem is that I'd like the selected button to return to it's original state only when another button is selected.

If someone could help I'd be extremely grateful!!

Here's the test file.
http://www.chadmount.com/testing/Menu_select.zip

Thanks in advance,
Chad

Prop With PHP Link In Flash
facing a strange prob here... !!


i have a simple php file



PHP Code:



<?

$news = "<a href="yahoo.com">Hello this is news</a>";

print ("&news=$news");

?>




now em calling it into a flash text filed... the field is set to render text as HTML... but the text is displaying like..

<a href="yahoo.com">Hello this is news</a>



for me it should ba a link... !!


any suggestions...

Frame Prop Problem
i have flash MX 6.0 how come i don't see the frame property this tutorial is talking about? http://www.flashkit.com/tutorials/Ge...a-38/more3.php

Gravity Prop(well Collision)
i looked at the gravity tutorial by Ilyas Usal
and he/you made the floor restricted in size, and my question is:
is it possible to make it collide with an object?

Thanks in advance

[edit] Noticed that the name is Gravity prop..hehe my fault

Delete Url Prop. [textformat]
hi there, does anyone know how to remove a url that has been created using TextFormat.url? I've tried setting the property to null & to "" but little bugger wont go away! cheers.

Fastest Toggle, And Flip Prop
Hi, I realized that it has been a while since I posted a tip. So now I share just a simple thing , but it saves a bit of code bytes if you need to toggle a variable from true to false very often.

Ive noticed that the most common way of turning a boolean value on and of is something like this

PHP Code:




myBoolean=true;
//later
if(myBoolean){
myBoolean=false;
}else{
myBoolean=true;
}







now, the faster way of doing the same thing would be:

PHP Code:




myBoolean=true;


//later*******

myBoolean=!myBoolean;

//***********






myBoolean gets the value that it is not having. As booleans can be either true or false, this works. Another way of turning a property on and of is to use bitwise opperantions, that are faster in execution, but messy to get used to.



My second tip is usefull when u need to "mirror" a property to its oposite, lets say u need to flip a movieclip horizontally. If you know that the movieclip has _xscale 100, then its pretty easy, you just give it _xscale=-100 . But what if the movieclip has been in a resize process, and you dont have a clue what the widths and heights will be when you want to flip it? Easy, you just add - before the value. example:


PHP Code:




//first we give an mc an unpredictable width
myMC._width=(Math.random()*400)-(Math.random()*400);


//*********now lets FLIPP IT

myMC._width = -myMC._width;

//**********done!

Trouble Using Alpha Prop On Graphics
I have a graphic I would like to set the alpha property on, which is no problem in flash. But when I test the movie, it shows the graphic at alpha 100%, regardless of its setting in the properties box. In the view pane for the scene, it displays it the way I want, just not when I test.

I've used the alpha property before without any problem. The only difference here is that my graphic is made of other graphics which are text fields. If this is the problem, how do I adjust the alpha setting on a text field?

Any help is greatly appreciated.

Order Of Returned Object.prop
I have a class which accepts an object and then outputs the names and values of it's properties


Code:
class ReaderClass
{

function ReaderClass ()
{
}
//-----------------------------------------------------------------
function getObjectProps (var_objectToExplore:Object)
{
var objectToExplore = var_ objectToExplore
for(var prop in objectToExplore)
{
trace ("prop: " + prop)
}
}
}



now I am using the following code to create a new object:


Code:
class NewClass{

var someProp0
var someProp1
var someProp2
var someProp3

function NewClass(){


someProp0 = new String();
someProp1 = new String();
someProp3 = new String();
someProp2 = new String();
}
}


an instance of NewClass is being sent to be explored by ReaderClass:


Code:
myReaderClass.getObjectProps(myNewClass);


this will return the properties in the following order:

prop: someProp2
prop: someProp3
prop: someProp1
prop: someProp0

and my question is:

Can I be certain that the once running the myReaderClass.getObjectProps() on any class instance the
Properties will always be returned in the order shown above? (n, n-1, n-2…..)

Xml Have Effect On A Loader Scaling Prop?
hey guys...does loading an image from XML have any effect on an imageloader compenent's ability to scale properly? 2 reasons for the question:
1- In internetExplorer , the loader will not scale my images when the movie loads
2- all the images that are photo stitches will only show the first half of 2 (or even 3)

[F8] - Issues With _x Prop For Movie Clip
Ok, so I have a cursor icon in a movie clip. I place it on the stage at an X position of lets say 25. I then call a function based on a keyboard press that says move the cursor. So something like

function moveCursor(){
if(cursor_mc._x==25){
cursor_mc._x=35
}
}

The problem is it won't pick up on 25. If I save >=25 it works. When I do a trace it says it is 25.

Is there a better way to get that value? Thanks.

Multiline CreateTextField Will Not Display Prop?
It only shows the first line of txt????
Then when you select the txt it shows the whole lot????
I have to being doing something stupid.

Code:

ActionScript Code:
create_txt = function () {
    this.createTextField("field_txt", 1, 2, 2, 50, 1);
    this.field_txt.autoSize = true;
    this.field_txt.multiline = true;
    this.field_txt.wordWrap = true;
    this.field_txt.htmlText = "This is some txt This is some txt This is some txt This is some txt.....";
    this.field_txt.border = true;

}
button.setClickHandler("create_txt");


THANKS IN ADVANCED

Listening To The Prop _height Of A Movie
Hi
Anyone know a way to listen (watch) the prop _height of a movie?

I've tried watch() ( witch didn't work as said in the help)
I've also tried to overwrite the setHeight method of MovieClip:
MovieClip.prototype.__proto__.setHeight = function(){
trace("setHeight")
}
with no chance!
Can I add a listener?

Is there an easy way of doing that?
thanks
THE_OPTIMIZER

Anything Wrong With Manaually Adding Prop To LoadVar Obj.
I'm battling some extremely flaky behavior in a clip that's centered around a loadVar object. First I'm loading it ... that much works fine...then I'm manually adding some properties just as if it were a normal container object so when my dataentry's finishing i can sendAndLoad that same object with the updated info.

Should I be shielding the original 'loadVar' object from direct manipulation?

by 'direct' i mean adding a new var that hadn't come in via the original asp transmission:

(very psuedo...)
myLoader.load("myFile.asp");

[after onLoad confirms the success]

myLoader.myNewvar="A value not returned by myFile.asp";

Looping Through Shared Object Data Prop
I'm trying to loop through each of the arrays stored in a Shared Object and place the individual array items inside rows of textfields. This isn't quite working - it fills all the text fields with the last data array only:


Code:
var elemSharedObject:SharedObject = SharedObject.getLocal("elementChoices", "/");
//Load data into fields
for (var prop in elemSharedObject.data) {
for (i=1; i<prop.length; i++) {
table_mc["p"+i+"_lb"].text = elemSharedObject.data[prop][0];
table_mc["i"+i+"_lb"].text = elemSharedObject.data[prop][1];
table_mc["el"+i+"_lb"].text = elemSharedObject.data[prop][2];
table_mc["en"+i+"_lb"].text = elemSharedObject.data[prop][3];
}
}
I need a way to increment "elemSharedObject.data[prop]" after it's filled each successive row of textfields. Any help would be appreciated.

Alpha Property Does Change Textfield Prop.
I'm switching the alpha property from 1 to 0 and back on an instance of a custom class that extends a sprite. The code works for the most part. The only thing that does not turn alpha 0 some textfields associated with buttons. I cant think of why the entire button can be alpha 0 and the textfield does not get affected. Any thoughts?
ActionScript Code:
function bsRollOver(event:MouseEvent):void {    if (menuCont.getChildAt(1).alpha > 0) {        menuCont.getChildAt(1).alpha = 0;    } else {        menuCont.getChildAt(1).alpha = 1;    }}
I'm sure I'm missing simple =/

Scroll Bar Show Up If Needed And Only Scroll To Dynamic Text Input Bottom... HOW
I have attached a copy of my scroll bar that i am currently using how can i make the scroll bar not show up unless needed (really not all that important but would be nice.)

The important thing is that i can setup a dynamic text box inside my item_holder movie clip but my scroller always scrolls to the bottom of the scroll box not matter if inside my scroll box i have on line of text loaded dynamicly or i have 100. So if i have 1 line of text and a large dynamic text box the scroll bar will scroll to the bottom of the scroll box even though it only has one line. See attachment and see if anyone can help. Thanks in advance. Brian

Copyright © 2005-08 www.BigResource.com, All rights reserved