A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Attach movie

  1. #1
    Member
    Join Date
    May 2004
    Posts
    47

    Attach movie

    Hi,
    Can anyone here explain why my attached movie won't show

    I am loading an XML file with city data, and this data I want to present in dynamic text fields using a loop

    after each city I need a line (from my library with linkage name "cityDivider").
    But I can't see my line anywhere, do I do something wrong?
    please see attached code

    hope anyone have som answers,
    Thanks in advance.

    best regards T

    Code:

    code:

    // Create textfield, and insert data

    cityMC = resultHolder.createEmptyMovieClip("cityMC", 1);

    // Store some variables
    cityMC.x = cityX;
    cityMC.y = cityY;
    cityMC.city = city;
    cityMC.cityMap = cityMap;

    cityMC.createTextField("_city",1,0,0,scWidth,textF ieldHeight);
    cityMC._city.text = city.toUpperCase();
    cityMC._city.setTextFormat(boldFieldFormat);
    cityMC.onRelease = function() {
    // Some action
    }

    //
    var div = cityMC.attachMovie("cityDivider", "cityDivider2", 5);
    div._width = 100;
    div._height = 100;



    EDIT: Added [ as ] tags for readability - see posting guidelines at top of forum - jbum
    Last edited by jbum; 10-17-2004 at 04:58 PM.

  2. #2
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    Try posting your .fla.

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