Login
...or Sign up
Home
Search
Search Code Snippets
Search People
Search
Code Snippets
People
19 Code Snippets found matching ActionScript
this.attachMovie("tooltip","tooltip_mc",21); tooltip_mc._visible = false; var tipInt; //----start or clear an interval--- button.onRollOver = function() { tipInt = setInterval (showTip,100,"button"); //-----showTip function, 10 times a second, to the "Homepage" string(which is the text for the tooltip------ if(success) { trace(success) } }; button.onRollOut = function() { hideTip(); }; var count = 0; //-----this variable will count how long it takes to load the tip--- //--------tiptext is the instance name of the text in the tip-------- function showTip(tiptext) { if(count == 1) { clearInterval(tipInt); count = 0; tooltip_mc.tiptext.text = tiptext; tooltip_mc._x = _root._xmouse; tooltip_mc._y = _root._ymouse; tooltip_mc._visible = true; _root.onMouseMove = function() { tooltip_mc._x = _root._xmouse; tooltip_mc._y = _root._ymouse; updateAfterEvent(); //-----updates position even in same frame } } else { count++; } }; function hideTip() { clearInterval(tipInt); tooltip_mc._visible = false; delete _root.onMouseMove; };
Actionscript 2 Tooltip
Uploaded on
9/5/2008 2:54:38 PM
Programming Language:
actionscript
By:
Micah
See more code snippets of
Micah
actionscript
as2
tooltip
ActionScript 3 variables var MyName:String = "Jack"; var userName:String; userName = "Jack"; var MyNum:Number = 3.14; // integer var MyNum:int = -3.14 // positive integer var MyNum:uint = 3
AS3 variables
Uploaded on
11/21/2009 2:36:37 AM
Programming Language:
ActionScript
By:
tpr
See more code snippets of
tpr
variables
function getColors() { trace("yellow"); trace("blue"); trace("red"); } getColors(); -------------------------- function getColors(item1:String, item2:String, item3:String, item4:String) { trace(item1); trace(item2); trace(item3); trace(item4); } getColors("yellow", "blue", "red", "green"); -------------------------- function getTotal():Number { var PriceOne:Number = 4; var PriceTwo:Number = 3; return PriceOne + PriceTwo; } trace(getTotal());
AS3 - functions
Uploaded on
11/21/2009 2:49:24 AM
Programming Language:
ActionScript
By:
tpr
See more code snippets of
tpr
functions
// (first you have to export the item from the Library - classname: TV) var tv_mc:TV = new TV(); // add to stage addChild(tv_mc);
AS3 - Creating Object Dynamically
Uploaded on
11/21/2009 2:59:11 AM
Programming Language:
ActionScript
By:
tpr
See more code snippets of
tpr
create_object
container_mc.sportcar_mc.alpha = 0.5; // or container_mc.getChildByName("sportcar_mc").alpha = 0.5;
AS3 - Nested Movie Clips
Uploaded on
11/21/2009 3:16:00 AM
Programming Language:
ActionScript
By:
tpr
See more code snippets of
tpr
nested
1
2
3
4
Help
Help by email
What is Naslu?
|
About Naslu
|
Contact
|
Terms of Use
|
Downloads
|
Webprogramacion.com
|
Blog
|
Top
Links
Select language:
Español
|
English
© 2009 naslu.com