Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


{Flash} ClickEvent in movieclip.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Thu Apr 23, 2009 5:26 am    Post subject: {Flash} ClickEvent in movieclip. Reply with quote

Ok So I have this button in this movieclip but when I press it ofc the code applies to the movieclip. I want it to apply on the scen which it is placed in.
_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Geek4Ever
Master Cheater
Reputation: 1

Joined: 31 Oct 2008
Posts: 353
Location: Milano,Texas

PostPosted: Thu Apr 23, 2009 6:57 am    Post subject: Reply with quote

like add the code in the frame its like

Code:
Name.onRelease = function() {
     
}
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
LolSalad
Grandmaster Cheater
Reputation: 1

Joined: 26 Aug 2007
Posts: 988
Location: Australia

PostPosted: Thu Apr 23, 2009 7:25 am    Post subject: Reply with quote

ActionScript 2 or 3?
_________________
Back to top
View user's profile Send private message MSN Messenger
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Thu Apr 23, 2009 1:04 pm    Post subject: Reply with quote

Wahoa wrote:
ActionScript 2 or 3?

flash 8 pro so as2.

Geek4Ever wrote:
like add the code in the frame its like

Code:
Name.onRelease = function() {
     
}

That wouldn't change anything.

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
LolSalad
Grandmaster Cheater
Reputation: 1

Joined: 26 Aug 2007
Posts: 988
Location: Australia

PostPosted: Thu Apr 23, 2009 6:23 pm    Post subject: Reply with quote

In the MovieClip that contains the button:
Code:
buttonInstanceName.onRelease = function() {
    with (_parent) {
        // do whatever
    }
}

Long time since I've done AS2, but this should work.

_________________
Back to top
View user's profile Send private message MSN Messenger
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Fri Apr 24, 2009 2:51 am    Post subject: Reply with quote

Wahoa wrote:
In the MovieClip that contains the button:
Code:
buttonInstanceName.onRelease = function() {
    with (_parent) {
        // do whatever
    }
}

Long time since I've done AS2, but this should work.


If I just copy paste your code :
Code:
Statement must appear within on/onClipEvent handler
btn1.onRelease = function() {

If I add a on/onClipEvent nothing happens.

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
LolSalad
Grandmaster Cheater
Reputation: 1

Joined: 26 Aug 2007
Posts: 988
Location: Australia

PostPosted: Fri Apr 24, 2009 3:56 am    Post subject: Reply with quote

Code:
onClipEvent(load) {
   btn1.onRelease = function() {
      with (_parent) {
         // do whatever
      }
   }
}


Try copy pasting that instead.

_________________
Back to top
View user's profile Send private message MSN Messenger
NINTENDO
Grandmaster Cheater Supreme
Reputation: 0

Joined: 02 Nov 2007
Posts: 1371

PostPosted: Fri Apr 24, 2009 4:21 am    Post subject: Reply with quote

Wahoa wrote:
Code:
onClipEvent(load) {
   btn1.onRelease = function() {
      with (_parent) {
         // do whatever
      }
   }
}


Try copy pasting that instead.

I said I tried with the eventhandlers. I then get no error but on the other hand nothing happens.

I made four moveclips instead. Now I can handle them seperatly and control them all Smile ty

_________________
Intel over amd yes.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites