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 


How to Open .SWF File from a Folder onto Project? (Delphi)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Never Again
I post too much
Reputation: 0

Joined: 13 Jan 2007
Posts: 2000
Location: New Mexico

PostPosted: Wed Oct 03, 2007 10:17 pm    Post subject: How to Open .SWF File from a Folder onto Project? (Delphi) Reply with quote

I want to know how to load a .SWF File or anyfile from a different directory from my CP onto a Delphi Project (Specifically a trainer) like most DF Trainers so can anybody show me an example how I would do it in code?
Thanks.
Back to top
View user's profile Send private message MSN Messenger
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Thu Oct 04, 2007 6:36 am    Post subject: Reply with quote

here:
Code:
procedure TForm1.FormCreate(Sender: TObject);
begin
ShockwaveFlash1.LoadMovie(0,'C:\Documents and Settings\Yuval\Desktop\mammyblue2.swf');
end;
Back to top
View user's profile Send private message
Never Again
I post too much
Reputation: 0

Joined: 13 Jan 2007
Posts: 2000
Location: New Mexico

PostPosted: Thu Oct 04, 2007 6:40 am    Post subject: Reply with quote

What if another person has the swf in another location other than the desktop?
Back to top
View user's profile Send private message MSN Messenger
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Thu Oct 04, 2007 6:43 am    Post subject: Reply with quote

Never Again wrote:
What if another person has the swf in another location other than the desktop?


Code:
procedure TForm1.Button1Click(Sender: TObject);
begin
ShockwaveFlash1.LoadMovie(0,'Edit1.text');
end;

the user need to put the full path of the fill in edit1
Back to top
View user's profile Send private message
Never Again
I post too much
Reputation: 0

Joined: 13 Jan 2007
Posts: 2000
Location: New Mexico

PostPosted: Thu Oct 04, 2007 6:45 am    Post subject: Reply with quote

Oh alright thx.
Back to top
View user's profile Send private message MSN Messenger
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Thu Oct 04, 2007 6:45 am    Post subject: Reply with quote

anytime Wink
Back to top
View user's profile Send private message
Never Again
I post too much
Reputation: 0

Joined: 13 Jan 2007
Posts: 2000
Location: New Mexico

PostPosted: Thu Oct 04, 2007 6:47 am    Post subject: Reply with quote

Wait, 1 more thing do they have to do that for EVERY Swf they use or can they just do the 1 specific location that goes to the same folder with the swf's?
Back to top
View user's profile Send private message MSN Messenger
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Thu Oct 04, 2007 7:04 am    Post subject: Reply with quote

for every .swf.
for more information look here:
http://forum.cheatengine.org/viewtopic.php?t=104057
Back to top
View user's profile Send private message
Never Again
I post too much
Reputation: 0

Joined: 13 Jan 2007
Posts: 2000
Location: New Mexico

PostPosted: Thu Oct 04, 2007 7:08 am    Post subject: Reply with quote

Ok but I want the swf to load ON the movie and the code your gave me loads the whole swf. Watch see how this trainer loads the swf from 1 file ONTO the movie and you can move the whole folder anywhere and not have to change the swf location.

http://forum.cheatengine.org/viewtopic.php?t=137614
Back to top
View user's profile Send private message MSN Messenger
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Thu Oct 04, 2007 8:59 am    Post subject: Reply with quote

Never Again wrote:
Ok but I want the swf to load ON the movie and the code your gave me loads the whole swf. Watch see how this trainer loads the swf from 1 file ONTO the movie and you can move the whole folder anywhere and not have to change the swf location.

http://forum.cheatengine.org/viewtopic.php?t=137614

ok. i understand wat u want.
this trainer load the movie from his source(.res file).
for create .res file and using it read this:
http://delphi.about.com/od/objectpascalide/a/embed_resources.htm
Back to top
View user's profile Send private message
Never Again
I post too much
Reputation: 0

Joined: 13 Jan 2007
Posts: 2000
Location: New Mexico

PostPosted: Thu Oct 04, 2007 12:53 pm    Post subject: Reply with quote

Oh alright thx, how would I be able to move the folder anywhere and the trainer will still load from where it's at without changing directory?
Back to top
View user's profile Send private message MSN Messenger
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Thu Oct 04, 2007 1:39 pm    Post subject: Reply with quote

the trainer serch for all the .swf files in its directory, if you will put the files on desktop it wont find them.

btw the trainer get the .swf from this address:
http://mechquest.battleon.com/game/gamefiles/game.swf
Back to top
View user's profile Send private message
Never Again
I post too much
Reputation: 0

Joined: 13 Jan 2007
Posts: 2000
Location: New Mexico

PostPosted: Sat Oct 06, 2007 9:55 am    Post subject: Reply with quote

Since I can't do it in Delphi then what about VB6?
Back to top
View user's profile Send private message MSN Messenger
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Sat Oct 06, 2007 10:16 am    Post subject: Reply with quote

You can do it with delphi.
Back to top
View user's profile Send private message
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