A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [CS3] Space Characters in Instance Names? How?!

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    2

    [CS3] Space Characters in Instance Names? How?!

    I am updating my architecture firm's web site and the original site designer's scripts are really slick. He somehow has spaces in Instance Names for some of the links, which also correspond to our company's project names. When I try to edit these names or add new projects with spaces I receive the same message:

    "'ARTIST STUDIO' is not a valid instance name. Please enter an identifier that contains alphanumeric characters, supported symbols, and no whitespace."

    Any ideas? Please help!

    I can repost with any code, if necessary, to help solve this problem. I thought someone might know the solution to this issue without seeing the code I'm working with.

  2. #2
    Bmcc*81 bmcc81's Avatar
    Join Date
    Jul 2007
    Location
    Montreal
    Posts
    299
    Are you sure you have the appropriate instance names made? It sounds like your calling them and they aren't there.

    Make sure you name you Mc's (MovieClips) and give them instance names.

    Hope that helps
    Bmcc81
    Flash Designer / Web Developer
    -----------------------------------
    http://www.webinkgraphics.com

  3. #3
    Junior Member
    Join Date
    May 2008
    Posts
    2
    I'm not sure about anything anymore...

    For reference, the web site I'm updating can be found here:
    http://ashbahiandesign.com/

    The page I'm trying to change is the PROJECTS page.

    In the FLA it has six instances of 'mc_btn_projects'. The instance names for each appear in all caps with spaces in the SWF but in the FLA they all read "PROJECTS".

    The first mc_btn_project instance with the instance name "ARTIST STUDIO" has the following script:
    onClipEvent(load){
    pID = 1;
    }

    The second one has the same script but the pID = 2, the third's pID = 3, fourth = 4, etc.

    The mc_btn_project instance has three layers and one frame inside of it.

    Layer 3 has actionscript in it:
    stop();
    project.text = this._name;

    Layer 2 has btn_text_button which is basically a transparent rectangle specifying the hit area. It has the actionscript:
    on (release) {
    _root.project = this._name;
    _root.pID = pID;
    _root.currentImage = 1;
    }

    Layer 1 has a Dynamic Text box that reads PROJECTS (as mentioned above). Its instance name is projects and its Var: is projects. It doesn't have any actionscript.

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