A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Can I Batch-rename many Instance names on different keyframes?

  1. #1
    Junior Member
    Join Date
    Feb 2009
    Posts
    1

    Can I Batch-rename many Instance names on different keyframes?

    Hello, as a quick overview, I have a member bio clip with 256 keyframes. Each keyframe has a set of 3 text fields on the stage for info. Because of the editing CMS I am implementing, each text field must have it's own unique Instance name.
    Clicking a button goes to Frame 2, which has the same text fields again.. but with different instance names.

    There are 256 member pages I need to to.. and clicking each keyframe and changing 3 Instance names would be rediculous. Is there a way to speed things up? Somehow batch rename InstanceName_0,1,2,3,4 etc etc.

    Thanks for any help

  2. #2
    Senior Member olias32's Avatar
    Join Date
    Jan 2003
    Location
    Romania
    Posts
    126
    What version of Flash are you using?
    I can tell you that up to CS3 there's no batch rename thing.

    But i can tell you that i would just store the info in one ore more arrays, and just use the _currentframe property to know at which frame i'm at.

    Calling the instance name of the text field will work in every frame in theory.
    So at any moment i'd know at which frame i'm at, and retrieve (or save) the info in the text field.

    Another way around would be to erase all the text fields from the stage and just create them dynamically (that way you can assign the name very easy).

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