Calling Path in ActionScript
var kLastSlash:Number = _root._url.lastIndexOf(‘/’);
var baseUrl:String = _root._url.substr(0, kLastSlash+1);
Posted on August 28th, 2009 by Sumit Gupta
Filed under: Action Script, Flash | No Comments »
var kLastSlash:Number = _root._url.lastIndexOf(‘/’);
var baseUrl:String = _root._url.substr(0, kLastSlash+1);
Posted on August 28th, 2009 by Sumit Gupta
Filed under: Action Script, Flash | No Comments »
http://yourpalmark.com/2005/07/01/trace-from-the-browser-using-standard-trace/
I try this article and it actually works.
Thanks to Fernando and Ernie, the Flash programmers, who told me about this article and some other great technique to program in ActionScripting.
Posted on July 26th, 2009 by Sumit Gupta
Filed under: Action Script, Flash | No Comments »
function searchAndReplace(holder, searchfor, replacement) {
temparray = holder.split(searchfor);
holder = temparray.join(replacement);
return (holder);
}
Do I need to say anything else ?
Posted on July 19th, 2009 by Sumit Gupta
Filed under: Action Script, Flash | 2 Comments »
How to enter the Filter effects on MovieClip using ActionScript, A developer way.
Posted on July 9th, 2009 by Sumit Gupta
Filed under: Action Script, Flash | No Comments »
Recently I worked on few website, that were solely made up in flash. These sites looks good, a background music playing, pages change with some animation. Obviously HTML page cannot look better then flash. I was very excited to work on this website. But soon my excitement goes away, when I have to fix the [...]
Posted on April 23rd, 2009 by Sumit Gupta
Filed under: Article, Flash | No Comments »
Lately I go inactive to my blog, but it doesn’t mean I leave blogging. Just that with my new venture i got so busy that I didn’t get time to do fun stuffs. Yesterday, I finish this flash
It was fun working on above flash as this flash doesn’t use any graphics to draw the screen. [...]
Posted on March 26th, 2009 by Sumit Gupta
Filed under: Flash | No Comments »
You can create menu in your flash application using the following code, however, you need to note one thing that you need to import
mx.controls.*;
mx.data.binding.*; (if you need to create Menu using databinding)
here is the code
var mm:Menu = Menu.createMenu(Me);
mm.addMenuItem({label:”All”});
if (aIndustry.length > 0 ) {
aIndustry.sort();
for (var i=0;i
if (aIndustry[i] != “”) {
mm.addMenuItem({label:aIndustry[i]});
}
}
}
mm.swapDepths(mergerbg_sp);
if (_global.styles.Menu == undefined) {
_global.styles.Menu = new [...]
Posted on September 18th, 2007 by Sumit Gupta
Filed under: Flash, Programming | No Comments »