code_junkie

What is the best way to reuse functions in Flex MVC environment?

Nov 13th, 2011
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. class MyStatic
  2. {
  3. public static function myFunction(value:String):String
  4. {
  5. return "Returning " + value;
  6. }
  7. }
  8.  
  9. import MyStatic;
  10.  
  11. var str:String = MyStatic.myFunction("test");
  12.  
  13. var mySharedFunction:Function = function():void
  14. {
  15. trace("foo");
  16. }
Add Comment
Please, Sign In to add comment