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 


[Borland Delphi 6] Coding ( Question )

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

Joined: 13 Jun 2007
Posts: 32

PostPosted: Sat Mar 15, 2008 11:47 pm    Post subject: [Borland Delphi 6] Coding ( Question ) Reply with quote

I was just wondering how do i make the .SWF load from Edit*Number*.Text when i click a button,

I know how to do it the other way:
Code:
Flash1.LoadMovie(
0,
'*.SWF URL'*
);


Or

VB Example:
Code:
Private Sub Command*Number*_Click()
Flash1.Movie = Text*Number*.Text
End Sub


And i have tried the same code with Delphi exept Edit1.Text instead of Text1.Text but it doesn't make a difference because with Delphi = is disallowed

_________________
once a hacker a hacker for ever
Back to top
View user's profile Send private message AIM Address
Estx
Expert Cheater
Reputation: 0

Joined: 04 Mar 2008
Posts: 172

PostPosted: Sun Mar 16, 2008 6:48 am    Post subject: Reply with quote

You'll be wanting to Google delphi control arrays.

If you were using VB your code would end up looking something like:

Code:
Private Sub Command_Click(Index As Integer)
Flash1.Movie = Text(Index).Text
End Sub


Sorry I can't be of more help, I don't know too much about Delphi. I haven't used it ever since I started programming in C++ many years back.
Back to top
View user's profile Send private message
malfunction
Grandmaster Cheater Supreme
Reputation: 0

Joined: 30 Jan 2007
Posts: 1015
Location: http://www.behindthecorner.com/

PostPosted: Sun Mar 16, 2008 7:37 am    Post subject: Re: [Borland Delphi 6] Coding ( Question ) Reply with quote

unub wrote:
I was just wondering how do i make the .SWF load from Edit*Number*.Text when i click a button,

I know how to do it the other way:
Code:
Flash1.LoadMovie(
0,
'*.SWF URL'*
);


Or

VB Example:
Code:
Private Sub Command*Number*_Click()
Flash1.Movie = Text*Number*.Text
End Sub


And i have tried the same code with Delphi exept Edit1.Text instead of Text1.Text but it doesn't make a difference because with Delphi = is disallowed

so u wanna load a movie when some ones types a number to the edit box and clicks a button? didnt really understand ur question

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

Joined: 11 Jul 2007
Posts: 1579

PostPosted: Sun Mar 16, 2008 8:34 am    Post subject: Reply with quote

Code:
Flash.Movie := Text1.Text;

The VB and Delphi language looks alot alike.
Just remember to use ":" infront of "=" (Example: ":=") to assign it.
Back to top
View user's profile Send private message
unub
Cheater
Reputation: 0

Joined: 13 Jun 2007
Posts: 32

PostPosted: Sun Mar 16, 2008 6:24 pm    Post subject: Reply with quote

Yep thanks Moller,
but sometimes it says 'Not enough actual parameter'

Skyllakarean:
I want to insert the .SWF URL in a Textbox and then when done load it by clicking the 'Load Game' Button, already got the answer

Thanks Moller! Wink

_________________
once a hacker a hacker for ever
Back to top
View user's profile Send private message AIM Address
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