Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 9th, 2003, 03:17 PM
wyclef wyclef is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 7 wyclef User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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");
}
};
Attached Files
File Type: zip easing_textscroller_v4a.zip (4.9 KB, 280 views)

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > path issue


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway