Re: Contribute With Flash?
Tested it for you on an old flash website of myself and it works fine. I can
edit the html-file in Contribute, publish the file and the changes show up in
the swf.
You can load files with extesions like xml/html using the attached code in
Flash-actionscript (player 7, as 2.0), usign the textarea component
The html file loaded.html looked like this:
<html>
<head>
</head>
<body>
<h1>Wondering</h1>
<p>I was wondering if Contribute can be used/set up to make edits to dynamic
text within a flash site? For example, if I have dynamic text linked to a
external .txt file, can I send a Contribute key to a client for them to be able
to edit that file? Also, do they need to have a copy of Contribute to do so or
can they use a standard text editor? I appreciate any thoughts.<br>
</p>
<p>I was wondering if Contribute can be used/set up to make edits to dynamic
text within a flash site? For example, if I have dynamic text linked to a
external .txt file, can I send a Contribute key to a client for them to be able
to edit that file? Also, do they need to have a copy of Contribute to do so or
can they use a standard text editor? I appreciate any thoughts.<br>
</p>
</body>
</html>
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
// load css
documentStyle = new TextField.StyleSheet();
documentStyle.load("style.css");
myText.styleSheet = documentStyle;
//load in HTML/XML
documentContent = new XML();
documentContent.ignoreWhite = true;
documentContent.load("loaded.html");
documentContent.onLoad = function(success)
{
if(success)
{
myText.text = documentContent;
}
}
stop();
|