A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: _root Function targeting a loaded swf .htmlText

  1. #1
    Member
    Join Date
    Aug 2007
    Posts
    33

    _root Function targeting a loaded swf .htmlText

    function showPage() {
    stopAllSounds();
    _level0.ui.content_area.content.loadMovie("content/" + contentItems[currentContentItem].attributes.FILENAME);
    loadTxt(); //the line above loads the external swf
    //I am having trouble targeting the text fields in that swf
    if (contentItems[currentContentItem].attributes.audio != "") {
    // create a new sound object
    var soundHolder = new Sound();
    // load mp3 into the sound object
    soundHolder.loadSound("content/" + contentItems[currentContentItem].attributes.audio,false);
    // play the sound
    soundHolder.start(0,99999);
    }
    }

  2. #2
    Member
    Join Date
    Aug 2007
    Posts
    33
    function showPage() {
    stopAllSounds();
    _level0.ui.content_area.content.loadMovie("content/" + contentItems[currentContentItem].attributes.FILENAME);
    _level0.ui.content_area.content.body_txt.htmlText = "whatever"; //should it look something like this???
    if (contentItems[currentContentItem].attributes.audio != "") {
    // create a new sound object
    var soundHolder = new Sound();
    // load mp3 into the sound object
    soundHolder.loadSound("content/" + contentItems[currentContentItem].attributes.audio,false);
    // play the sound
    soundHolder.start(0,99999);
    }
    }

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