This is a discussion on "How to create method with functions ?" within the Flash & Multimedia Forum section. This forum, and the thread "How to create method with functions ? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
How to create method with functions ?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
How to create method with functions ?
I want to know how can I create a method in actionscript with function and add it to a button ?
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
|
|
#2
|
||||
|
||||
|
Re: How to create method with functions ?
I think you need to be more specific.
Plus a method and a function are literally the same thing unless were are talking about object orientated programming. What do you want the button to do?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#3
|
|||
|
|||
|
Re: How to create method with functions ?
for example create a function that rotate a box 15 degree, and assign it to the button
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
#4
|
||||
|
||||
|
Re: How to create method with functions ?
AS2?
The following may work, I'm typing it straight from my keyboard though.
Apply it to the movie clip itself rather than the frame.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#5
|
|||
|
|||
|
Re: How to create method with functions ?
I know that, i need to create a function and assign it to the button,
like : function rotate() { name._rotation += 15; }
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
#6
|
||||
|
||||
|
Re: How to create method with functions ?
put this in a frame:
I think that should work
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
#7
|
|||
|
|||
|
Re: How to create method with functions ?
first it should be :
on(press) { rotate(); }but the whole scene will rotate with that, i want to rotate a specific object
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
#8
|
|||
|
|||
|
Re: How to create method with functions ?
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Functions? | Jack Franklin | PHP Forum | 10 | Feb 3rd, 2008 16:49 |
| The basic method | timmytots | Web Page Design | 1 | Nov 26th, 2005 11:47 |
| Method Not Allowed | joshcxa | PHP Forum | 2 | Jul 19th, 2005 01:49 |
| Help with Functions | stallion150172 | JavaScript Forum | 13 | Jun 11th, 2004 10:09 |