-
_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);
}
}
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|