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 


AS3 help pls

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
Maes
Advanced Cheater
Reputation: 10

Joined: 09 Apr 2009
Posts: 50

PostPosted: Fri Jul 12, 2013 2:41 pm    Post subject: AS3 help pls Reply with quote

Code:
function listen(evt_obj:Event){
vision.visible = false;
if(ip.length < 15)
{
      vision.visible = true;
        trace(System.setClipboard("steam://connect/" + ip.text));
      
} 
else {
        trace("You didn't enter an IP.");
}
}
ip.addEventListener("enter", listen);


Why would vision still be showing? It's a dynamic text file.



231.png
 Description:
 Filesize:  572 Bytes
 Viewed:  1540 Time(s)

231.png


Back to top
View user's profile Send private message
Innovation
Grandmaster Cheater
Reputation: 12

Joined: 14 Aug 2008
Posts: 617

PostPosted: Fri Jul 12, 2013 2:51 pm    Post subject: Reply with quote

Put "vision.visible = false;" outside of the callback function?
Code:
vision.visible = false;
function listen(evt_obj:Event)
{
   if (ip.length < 15)
   {
      vision.visible = true;
      trace(System.setClipboard("steam://connect/" + ip.text));
   }
   else
   {
      trace("You didn't enter an IP.");
   }
}
ip.addEventListener("enter", listen);

I don't know much about ActionScript.
Back to top
View user's profile Send private message
Maes
Advanced Cheater
Reputation: 10

Joined: 09 Apr 2009
Posts: 50

PostPosted: Fri Jul 12, 2013 3:01 pm    Post subject: Reply with quote

Innovation wrote:
Put "vision.visible = false;" outside of the callback function?
Code:
vision.visible = false;
function listen(evt_obj:Event)
{
   if (ip.length < 15)
   {
      vision.visible = true;
      trace(System.setClipboard("steam://connect/" + ip.text));
   }
   else
   {
      trace("You didn't enter an IP.");
   }
}
ip.addEventListener("enter", listen);

I don't know much about ActionScript.

Worked perfectly, thanks.
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Fri Jul 12, 2013 3:02 pm    Post subject: Reply with quote

edit:
what he said
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam 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