Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

code in dynamic text box ??

Status
Not open for further replies.

Manic

Programmer
Joined
Feb 28, 2001
Messages
343
Location
GB
I have a set of dynamic text boxes in a flash page.

The data for the boxes is loaded from the asp page that loads the flash.

My dilema is that I want to have the vaules pulled in and then add some standard text after it.

ie X0_123 + 'cash left'

which would come out

$13.15 cash left

any ideas.

Thanks.
Manic
-----------------------------
I've broken it again !!
-----------------------------
lee.gale@virgin.net
 
First thought I would have is to let your ASP handle the whole thing and pass it all in to the Flash movie instead of just the number. (sample.swf?sample=x0_123%20Cash%20Left)

The other thing would be two seperate text boxes, one dynamic for your number, the other for "Cash Left". This would probably work pretty well if you are just talking about fixed numbers. Right align the dynamic text box.

Or you could use Generator if that is available to you. This would require Online processing.

In a regular text box:
{sample}Cash Left

I hope that is helpful to you.
 
Why not just append the text to your variable?

If your variable is coming in from the ASP script as...

XO_123=13.15

...then...

XO_123+="cash left";

...will add the text you want and the var can then appear in your text box - it's the same as saying...

XO_123=XO_123+"cash left"

One of the advantages of actionScript being so loosely typed :-)
 
cheers guys

We ended up adding it to the asp. I was trying to fond a way without having to do that as it means hard codeing in dynamic asp, something we were trying to avoid.

Thanks wangbar, I was in the middle of trying your solution when the programmer told me to give up, as he had done the hard codeing thing.

well on to the next set of obsticles I have to work with.
Manic
-----------------------------
I've broken it again !!
-----------------------------
lee.gale@virgin.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top