Jump to content
Search Community

i have question

guardesign test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi every body

 

i am new in java script but i worked with greensock for flash

but now i read article about greensock classes for js but

really i don't know how could i use class in html .

please tell me with example (html) inside that used from greensock class

i need 1 example in html used with class

thank you

  • Like 1
Link to comment
Share on other sites

Like un4given, I'm a bit confused about what you're asking. If you are wanting to see an example of how the animation classes (like TweenLite and TweenMax) are used in an HTML page, there are several examples in the download zip (in the folder named "examples") and there's a "getting started" article at http://www.greensock.com/get-started-js/.

 

If, however, you're asking about how to create pseudo-classes in JavaScript (like the classes that you're used to creating in ActionScript), that's trickier. There are quite a few articles out there about various approaches (there isn't one "right" way that everyone agrees on). Google is your friend :) Definitely do some reading on what "prototype" is in JS. Here are some potentially helpful resources:

 

http://gotoandlearn.com/play.php?id=159

http://ejohn.org/blog/simple-javascript-inheritance/

http://javascript.about.com/library/bltut35.htm

http://www.webmonkey.com/2010/02/make_oop_classes_in_javascript/

Link to comment
Share on other sites

Thank you for you .

i would like to practice java script with greensock new classes released and really i don't know how can i set up that . i mean for example : in getting started inside the site exist something for learning but it has not show detail and show the html file for example . i hope you understand what i mean

thank you

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...