Simple Tool Tip using action script 2

1. Create a new flash file and save it as tooltip.fla 2. Create a movie clip named as 'tooltip_mc' and move it on stage. 3. Set the instance name as same 'tooltip_mc' for the movie clip 4. Copy the below actionscript coding in first frame of layer 1 MovieClip.prototype.toolTip = function(msg:String) { this.onRollOver = function() { timer = setInterval(showTip, 500); theObject = this._name.toString(); function showTip() { clearInterval(timer); more [...]

Marquee Text in ActionScript 2

1. Create a new flash file and save as marquee.fla. 2. Add two new text control on stage and set the name as txtContent and txtCnt respectively 3. Copy and Paste the below coding in first frame Code: var SampleText = " Our prospects will find compelling reasons to become our customers. We did research and found that why most of the prospective customers want to purchase our products / services. "; txtContent.text = SampleText; function scroll() { txtCnt.text = txtContent.hscroll; txtContent.hscroll more [...]

Read XML Content using actionscript 2

1. Create a new flash file with actionscript 2 2. Create a XML object and load the xml file using load the method. Code: _xml = new XML(); // Create a xml object _xml.load("filename.xml"); // load the file to XML object _xml.ignoreWhite = true; // remove the empty space between xml tag 3. Create a event for xml load method. Code: _xml.onLoad = function(success){ if (success){ // If the XML file content loaded successfully getPlayerInfo(); // function load the xml values. } else trace("Error more [...]

Read XML content using action script 3

1. Create a flash file with actionscript 3 2. Sample XML file format Code: <?xml version="1.0" ?> <playlist> <song title="Title01" artist="ArtistName01" src="Song01.mp3" /> <song title="Title02" artist="ArtistName02" src="Song02.mp3" /> </playlist> 3. In the first frame for the layer 1, write a action script code. a. Create a XML variable b. create a URLloader object for load the xml file Code: var _xml:XML; var myLoader:URLLoader = new URLLoader(); 4. more [...]