A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: I'm sure everyone knows this...

  1. #1
    Member
    Join Date
    Jul 2001
    Location
    Zagreb, Croatia
    Posts
    39

    I'm sure everyone knows this...

    ...but me, so here's the problem: what do I do if single statement won't fit in a single row? What character do I use to continue in another row?

  2. #2
    Lord of the Singhs
    Join Date
    Mar 2002
    Location
    India
    Posts
    342
    are u talking about text boxes or the script panel???
    CooL "N" CalM

    my body is sore
    my eyes are red
    i still itch for more
    before i hit the bed

  3. #3
    Member
    Join Date
    Jul 2001
    Location
    Zagreb, Croatia
    Posts
    39
    yeah, sorry... in the script panel.

  4. #4
    Lord of the Singhs
    Join Date
    Mar 2002
    Location
    India
    Posts
    342
    u cant wrap the text in the syntax panel. dont ask me why!! u just cant!!!
    CooL "N" CalM

    my body is sore
    my eyes are red
    i still itch for more
    before i hit the bed

  5. #5
    Member
    Join Date
    Jul 2001
    Location
    Zagreb, Croatia
    Posts
    39
    I know I can't. But there must be some way, I have an array that is too long to fit in a single line. Since you can't wrap the text, maybe there is a symbol (like "+" or "/" or "whatever") so you can continue in a new line (i know Lingo has one, but I have forgotten which one)

  6. #6
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789
    When I have big arrays, i usually write them like this:
    Code:
    _array = [
    	"item1",
    	"item2",
    	"item3",
    	"item4",
    	"item5",
    	"item6",
    	"item7",
    	"item8"
    ];
    /* //OR:
    _array = ["item1", "item2", "item3", "item4"];
    _array.push("item5","item6","item7","item8"); */

  7. #7
    Lord of the Singhs
    Join Date
    Mar 2002
    Location
    India
    Posts
    342
    well i think gSOLO_01 hasnt left much for me to say...
    CooL "N" CalM

    my body is sore
    my eyes are red
    i still itch for more
    before i hit the bed

  8. #8
    I have an icon and U dont! johnwun's Avatar
    Join Date
    Nov 2000
    Location
    Santa Cruz, CA
    Posts
    258

    DOH!!!

    Last week I did a PMS conversion to RGB...
    over 1000 items in an array, and I broke it into multiple arrays, and then created a master array of arrays to glue them together.
    Talk about over doing it. What a nightmare!
    I should have known there was an easier way!!!
    [a.fun>b.fun ? trace("do(a)") : trace("do(b)");

    wundes.com

  9. #9
    Member
    Join Date
    Jul 2001
    Location
    Zagreb, Croatia
    Posts
    39
    I guess I would have never thought of that, gSolo... pretty clever!

    THX everyone

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center