A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: How to make this work in flash mx

  1. #1
    Senior Member hanszorg2's Avatar
    Join Date
    Sep 2004
    Posts
    308

    How to make this work in flash mx

    How to make this work in flash mx, I know it has syntax errors so whats the correct code

    "pillars"+n.label=menulist[n];

    pillars is the name of the movie clip
    label is the dynamic text inside it
    menulist is the array of different names

    Thanx in advance

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    just by itself it does nothing. needs to be in a for loop. and you need a timeline prefix with square bracket, like: this["object"+var]

    gparis

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Planet Earth
    Posts
    298

    Please clarify your question

    do you have a movie clip named pillars with multiple text fields in it, or do you have multiple movie clips that start with "pillars" and then a number?
    ---
    Thinking outside of the box will get you fired if the "box" is strict budget.

  4. #4
    Senior Member hanszorg2's Avatar
    Join Date
    Sep 2004
    Posts
    308
    Quote Originally Posted by gparis
    just by itself it does nothing. needs to be in a for loop. and you need a timeline prefix with square bracket, like: this["object"+var]

    gparis
    I am attaching my fla which is of same sort can you make it work please.

    I just want a trail of balls moving horizontally in this fla

    Thanx in advance
    Attached Files Attached Files

  5. #5
    Senior Member braxius's Avatar
    Join Date
    Jul 2005
    Location
    Lithuania
    Posts
    126
    Code:
    duplicateMovieClip("ball", "ball"+n, n);
    ball._x+=10;
    n++;
    use this code on your 2nd frame

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