|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
path issue
Hello,
I'm trying to take this chunk of code from within the following path _root.textScroller.theText and place in on the main timeline instead but i'm having trouble fixing all the paths. ActionScript: // this is the original script this.createTextField("theTextBox", 1, 0, 0, _parent.textBwidth, _parent.textBheight); theTextBox.html = true; theTextBox.textColor = "0x000000"; theTextBox.selectable = false; theTextBox.wordWrap = true; myTextFormat = new TextFormat(); myTextFormat.font = "Univers"; myTextFormat.size = 10; myTextFormat.leading = 2; theTextBox.embedFonts = true; loadData = new LoadVars(); loadData.load("latestNews.txt"); loadData.onLoad = function(success) { if (success) { theTextBox.htmlText = loadData.theText; theTextBox.setTextFormat(myTextFormat); theTextBox.autosize ="center"; } else { trace("failed"); } }; // this is updated script that doesnt work textScroller.theText.createTextField("theTextBox", 1, 0, 0, textScroller.textBwidth, textScroller.textBheight); path = textScroller.theText.theTextBox; path.html = true; path.textColor = "0x000000"; path.selectable = false; path.wordWrap = true; myTextFormat = new TextFormat(); myTextFormat.font = "Univers"; myTextFormat.size = 10; myTextFormat.leading = 2; path.embedFonts = true; loadData = new LoadVars(); loadData.load("latestNews.txt"); loadData.onLoad = function(success) { if (success) { path.htmlText = loadData.textScroller.theText; path.setTextFormat(myTextFormat); path.autosize ="center"; } else { trace("failed"); } }; |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > path issue |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|