Quantcast
Channel: Incoverdesign » IT (Web)
Viewing all articles
Browse latest Browse all 10

Load Content through Notepad in Textarea (Flash)

$
0
0

Follow these steps:

1. First of all create a AS2.0 file in flash.
2. Go to Window > Component > User Interface > Textarea

OR Direct use keyboard shortcut press Ctrl + F7 > User Interface > Textarea
3. Drag Textarea into your stage.

4. Click on Textarea and press F8 or covert to a movie clip named content or whatever you want.
5. Go Inside and create a new layer named Action and press F9 (Action).
6. And paste code in action given below.

_global.styles.TextArea.setStyle(“borderStyle”, “none”);
_global.styles.TextArea.setStyle(“fontFamily”, “Arial”);
_global.styles.TextArea.setStyle(“textHeight”, “100px”);
thisText = new LoadVars();
thisText.load(“text.txt”);

thisText.onLoad = function() {
textHolder.text = thisText.myText;

};

7. Now get back to Textarea, click on it and give textarea an instance name textHolder
8. And now create and text file named text.txt or whatever you want, but don’t forget to change file and in your Action script layer if you want to use another name for your text file..
9. on text file write $myText= Your Content
10. You can add colors and give a link in your text in notepad.
11. For Color: <font color=’#99000′>Your Text</font>
12. For Link: <a href=”http://www.yoururl.com”>Click here</a>
13. Even almost all HTML tag will work but not All..
For Rendering your content into html click on Textarea and press Shift + F7 and change HTML false in to True and even more setting you can try over here…
14. Save it and move back to flash file.
And Ctrl + Enter and cheers!

.

Download Source File

TwitterFacebookBlogger PostDeliciousLinkedInDiggTechnorati FavoritesRedditMySpaceOrkutGoogle GmailShare


Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images