My Google + Page

Click Here To See The Page Flash Script Help

By  
Vicky Kumar

See my Works

http://www.facebook.com/WestfieldUnited
http://www.facebook.com/webolusion
http://www.facebook.com/craftingimage
http://www.facebook.com/LakshyamNGO

By  
Vicky Kumar

Facebook

My Fan Page on www.facebook.com

URL - http://www.facebook.com/flashscripthelp



By  
Vicky Kumar

Icon Collection

Search through more than 150.000 free icons in an easy and efficient way.
just a click away..

http://www.iconfinder.com


http://www.iconarchive.com


http://www.findicons.com


http://icons.mysitemyway.com/



By  
Vicky Kumar

Whats Flash Player Version Install in Your System ?

Click Here to know


By  
Vicky Kumar

About Flash

Adobe Flash Player is the standard for delivering high-impact, rich Web content. Designs, animation, and application user interfaces are deployed immediately across all browsers and platforms, attracting and engaging users with a rich Web experience






By  
Vicky Kumar

Dynamic Time in Flash

Use only two Frame and Two Layer.

on 1st layer Make a Dynamic Text, Var name is "time".

on the 1st frame write this script

today = new Date();
time = today.getHours()
add ":" add today.getMinutes()
add ":" add today.getSeconds();

and Write this on 2nd frame

gotoAndPlay(1);





By  
Vicky Kumar

Drag only Y Axis in Flash

Create a Movie Clip And write this Script on it.

on(press){
startDrag(this,true,0,this._y,550,this._y);
}



By  
Vicky Kumar

Start Drag in Flash, Drag in Flash

Create a Movie Clip And write this Script on it.

on(press){
startDrag(this);
}

on(release){
stopDrag();
}





By  
Vicky Kumar

Introduction to XML in Flash

Welcome


The following pages will help you get started with using XML in Flash. You will learn the basics of what XML is and how it can be loaded into, used within and sent out of a Flash movie hopefully with a moderately high chance of success.


By  
Vicky Kumar

fscommand List

Command Arguments Examples
fas.control.Backward void fscommand("fas.control.Backward","");
Only supported with WMV/ASF streaming from Windows Media Server
fas.control.Forward void fscommand("fas.control.Forward","");
Only supported with WMV/ASF streaming from Windows Media Server
fas.control.GetCurMarker int variable fscommand("fas.control.GetCurMarker","CurMarkerNum");
fas.control.GetMarkerCount int variable fscommand("fas.control.GetMarkerCount","MarkerCount");
fas.control.GetMarkerTime int #marker,variable(1/100 second) fscommand("fas.control.GetMarkerTime","2,MarkerTime");
fas.control.GetPosition int variable(1/100 second) fscommand ("fas.control.GetPosition","CurPos");
fas.control.GetPosition2 string variable(hh:mm:ss) fscommand ("fas.control.GetPosition2","CurPos");
fas.control.Pause

void

fscommand ("fas.control.Pause", "");
fas.control.play void fscommand ("fas.control.play", "");
fas.control.SetMarker marker id fscommand("fas.control.SetMarker",2);
fas.control.SetPosition new position(1/100 second) fscommand("fas.control.SetPosition",100);
fas.control.Stop void fscommand ("fas.control.Stop", "")



fas.avclip.AutoPlay TRUE/ FALSE fscommand ("fas.avclip.AutoPlay", "TRUE");
fas.avclip.AutoSize TRUE/FALSE true:video size is original video clip size
false: video size is depend on fas.avclip.displaysize.
(If displaysize is set to FitToSize, then video size is set by fas.avclip.rect)
fas.avclip.BufferingProgress int variable(0~100) fscommand ("fas.avclip.bufferingprogress", _target add ".BufferProgress");
fas.avclip.ClickToPlay TRUE/FALSE TRUE: enable click to pause/play
fas.avclip.DisplaySize DefaultSize/
FitToSize/
DoubleSize/
OneHalfScreen/
HalfScreen
fscommand("fas.avclip.DisplaySize","FitToSize");
This command only work when fas.avclip.AutoSize is false, and if this command is set to FitToSize, then the video size is set by fas.avclip.rect
fas.avclip.FullScreen TRUE/FALSE Enable/Disable full screen video mode
( This command only work when fas.avclip.VideoOnTop is True and fas.avclip.AutoSize is False)
fas.avclip.GetBufferingTime int variable(second) fscommand ("fas.avclip.GetBufferingTime", "BufTime");
fas.avclip.GetDuration int variable(second) fscommand ("fas.avclip.GetDuration", "Duration");
fas.avclip.Load URL fscommand ("fas.avclip.Load", "..\test.mpeg");
fas.avclip.PlayCount positive integer fscommand ("fas.avclip.PlayCount",3)
fas.avclip.Rect left,top,right,bottom fscommand ("fas.avclip.Rect", "0,0,320,240");
fas.avclip.SetBufferingTime buffering time(second) fscommand ("fas.avclip.SetBufferingTime",5);
fas.avclip.Unload void fscommand ("fas.avclip.Load", "");
fas.avclip.VideoOnTop BOOL fscommand("fas.avclip.VideoOnTop,"TRUE");
fas.avclip.XY x,y

fscommand ("fas.avclip.Rect", "10,20");

fas.avclip.USEWMP6 BOOL

fscommand ("fas.avclip.USEWMP6", "TRUE");
Force to utilize Windows Media Player 6 to play video.




fas.event.Disconnect ActionLabel fscommand ("fas.event.Disconnect", "_root.FrameLabelDisconnect");
fas.event.EndOfBuffering ActionLabel fscommand ("fas.event.EndOfBuffering", "FrameLabelBufferComplete");
fas.event.EndOfStream ActionLabel fscommand ("fas.event.EndOfStream", "/:EndOfStreamAction");
fas.event.Error ActionLabel, description fscommand ("fas.event.Error", "_root.FrameLabelError,_root.ErrStr");
fas.event.MarkerHit ActionLabel,makeId fscommand("fas.event.MarkerHit","LabelMarkerHit,_root.MarkerID");
fas.event.NewBuffering ActionLabel fscommand ("fas.event.NewBuffering", "_root.EventBuffering");
fas.event.NewStream ActionLabel fscommand ("fas.event.NEWSTREAM", "NewStreamAction");
fas.event.OpenStateChange ActionLabel, stateVariable fscommand ("fas.event.OpenStateChange", ",OpenState");
fscommand ("fas.event.OpenStateChange", "_root.OpenStateAction,OpenState");
fas.event.PlayStateChange ActionLabel, stateVariable fscommand ("fas.event.PlayStateChange", ",PlayState");
fscommand ("fas.event.PlayStateChange", "/:PlayStateAction,PlayState");
fas.event.ScriptCommand ActionLabel,type,params fscommand ("fas.event.ScriptCommand", "_root.LabelScriptCommand,_root.scriptType,_root.scriptParm");
fas.event.VideoRectChange ActionLabel,width,height fscommand ("fas.event.VideoRectChange", "/:VideoRectangleChange,/:ClipWidth,/:ClipHeight");
fas.event.Warning ActionLabel, description fscommand ("fas.event.Warning", "_root.FrameLabelWarning,_root.WarnStr");



fas.clipinfo.GetAuthor variable string fscommand ("fas.clipinfo.GETAUTHOR", "ClipAuthor");
fas.clipinfo.GetCopyRight variable string fscommand ("fas.clipinfo.GETCopyright", "ClipCopyright");
fas.clipinfo.GetTitle variable string fscommand ("fas.clipinfo.GETTITLE", "ClipTitle");
fas.sound.GetBalance int variable(-100~100) fscommand ("fas.sound.GetBalance", "balance");
fas.sound.GetMute bool variable(TRUE/FALSE) fscommand ("fas.sound.GetMute", "Mute");
fas.sound.GetVolume variable(0 ~100) fscommand ("fas.sound.GetVolume", "vol");
fas.sound.GetVolume2 variable(-10000~0) fscommand("fas.sound.GetVolume2","vol");
fas.sound.SetBalance balance(-100~100) fscommand ("fas.sound.SetBalance", balance);
fas.sound.SetMute TRUE/FALSE fscommand ("fas.sound.SetMute", "FALSE")
fas.sound.SetVolume volume(0 ~ 100) fscommand ("fas.sound.SetVolume", vol);
fas.sound.SetVolume2 volume(-10000~0) fscommand("fas.sound.SetVolume2",vol);



fas.axobj.Close void fscommand("fas.axobj.close","");
fas.axobj.Open left,top,right,bottom,objTag fscommand("fas.axobj.open", "0,0,320,240, ");
fas.axobj.OpenCult3D left,top,right,bottom,fileName fscommand("fas.axobj.OpenCult3D", "1,1,300,200,%INIT_DIR%match.co");
fas.axobj.OpenPdf left,top,right,bottom,fileName fscommand ("fas.axobj.OpenPdf", "0,0,320,240,fileName");
fas.axobj.Rect left,top,right,bottom fscommand ("fas.axobj.Rect", "0,0,320,240");
fas.axobj.XY x,y fscommand ("fas.axobj.XY", "10,20") ;



fas.win.bkrgb 0xrrggbb set window background color
fscommand("fas.win.bkrgb","0xff0000");
fas.win.clickToMove TRUE/FALSE fscommand("fas.win.ClickToMove","TRUE");
fas.win.hide void fscommand("fas.win.hide","");
fas.win.maxmize void fscommand("fas.win.maxmize","");
fas.win.minimize void fscommand("fas.win.minimize","")
fas.win.move void enable user to move projector window
fas.win.OnTop TRUE/FALSE fscommand("fas.win.OnTop","TRUE")
fas.win.pos (LEFT/MIDDLE/RIGHT, TOP/MIDDLE/BOTTOM) fscommand("fas.win.pos","middle,middle")
fas.win.show void fscommand("fas.win.show","");
fas.win.style NoBorder/
BORDERONLY/
NORESIZE/
NORMAL
fscommand("fas.win.style","NORESIZE");
fas.win.title string for window title default is same as projector filename
fscommand("fas.win.title","FlashAnts");



fas.reg.get registery key, value name, variable fscommand("fas.reg.get", "HKEY_CLASSES_ROOT\\CLSID\\{B801CA65-A1FC-11D0-85AD-444553540000}\\LocalServer32,,_root.Acrobat");
fas.reg.set registery key, value name, value

fscommand("fas.reg.set", "HKEY_CURRENT_USER\\Software\\MyProgram,Secret," add _root.secretValue);




fas.shell.GetInitDir string variable fscommand("fas.shell.GetInitDir", "_root.InitDir");
fas.shell.open filename

fscommand("fas.shell.open","myfile.doc");
fscommand("fas.shell.open","mailto:support@flashants.com");

fas.shell.getswf filename, width , height

Get swf fil's document width and height.
fscommand("fas.shell.getswf", "http://localhost/flash/test.swf,
_root.swfWidth , _root.swfHeight");




ALLOWSCALE TRUE/FLASE fscommand("AllowScale","FALSE");
EXEC program fscommand("exec","notepad.exe");
FULLSCREEN TRUE/FALSE fscommand("FULLSCREEN","TRUE");
QUIT void fscommand("Quit","");
SHOWMENU TRUE/FALSE fscommand("ShowMenu","FALSE");
TRAPALLKEYS TRUE/FALSE fscommand("TrapAllkeys","FALSE");

By  
Vicky Kumar

How to create a mail link in flash

Select the Text Tool, Write Any word Like "Mail". Select the Text and goto to bottom of Flash and Wirte

mailto://name@domain.com








By  
Vicky Kumar

fullScreen on flash

Create Movie Clip And Write this Script.

on(release){
if(Stage["displayState"] == "normal"){
Stage["displayState"] = "fullScreen";
}else{
Stage["displayState"] = "normal";
}
}





By  
Vicky Kumar

Loading on Flash

Create a Movie Clip. Make the dynamic text inside the movie clip & give Instant name is "tx1" and Var Name is "text".

Write this script on Movie Clip.

onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
this.tx1.text = percent+"%";
this.gotoAndStop(percent);
if (loaded == total && total>380 && a != 1) {
a = 1;
_root.gotoAndPlay(2);
}

}


By  
Vicky Kumar

if, else Operator & Function

Operator Function


== If var1 is equal to var2
>= If var1 is greater than or equal to var2
> If var1 is greater than var2
<= If var1 is smaller than or equal to var2
< If var1 is smaller than var2
!= If var1 is NOT equal to var2
&& If var1 and var2 exist or both var1 and var2 are both set to true.
|| If either var1 and var2 exist and/or are set to true.

By  
Vicky Kumar

How to use RollOver and RollOut ?

on(rollOver){
this.gotoAndStop(2);
}
on(rollOut){
this.gotoAndStop(1);
}



By  
Vicky Kumar

How to input link on button in flash ?

on (release) {
getURL("http://www.flashscripthelp.blogspot.com/", "_blank");
}



By  
Vicky Kumar

Flash Scripting

Any Problem in flash as2 say me...

I solve for you....


By  
Vicky Kumar