Some Flash Questions

  • TsX
  • Graduate
  • Graduate
  • User avatar
  • Joined: Oct 09, 2004
  • Posts: 167
  • Status: Offline

Post June 11th, 2005, 8:08 am

New to actionscript (mx), and what tutorials I went over so far aren't answering some of my questions. My google results turned up crap, though I may be shy of some good keywords.

A variable made from an input text, I want to be part of a string.
(example for php: echo 'Hello '.$name.'!; )

I have more questions, but I'm gunna keep at work and see if I can understand more before I ask 'em.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 11th, 2005, 8:08 am

  • TsX
  • Graduate
  • Graduate
  • User avatar
  • Joined: Oct 09, 2004
  • Posts: 167
  • Status: Offline

Post June 11th, 2005, 3:53 pm

lol, seems like not to many people are into flash. took me awhile but I believe this works:
Code: [ Select ]
var = "hello";
string = var+" bob, my name is sally:)";
  1. var = "hello";
  2. string = var+" bob, my name is sally:)";
  • Tdotwire
  • Proficient
  • Proficient
  • User avatar
  • Joined: Jul 18, 2004
  • Posts: 486
  • Loc: Toronto
  • Status: Offline

Post June 11th, 2005, 8:58 pm

if you already dont know programming shortcuts

var = "hello";
var += ",my name is...";

having the += will simply add onto the var the new piece of string...

try using the actionscript and flash forum for any flash related queries

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 32 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.