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 do i get a swf onto the project (vb6)

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

Joined: 07 Oct 2007
Posts: 155
Location: in my house

PostPosted: Sun Oct 07, 2007 1:36 pm    Post subject: How do i get a swf onto the project (vb6) Reply with quote

can some one tell me how to get a swf onto my project
Back to top
View user's profile Send private message Send e-mail MSN Messenger
AithenX
Cheater
Reputation: 0

Joined: 07 Oct 2007
Posts: 25

PostPosted: Sun Oct 07, 2007 1:38 pm    Post subject: Reply with quote

Just go to add file to project and add it in.
Back to top
View user's profile Send private message
willo55
Expert Cheater
Reputation: 0

Joined: 07 Oct 2007
Posts: 155
Location: in my house

PostPosted: Sun Oct 07, 2007 1:43 pm    Post subject: Reply with quote

AithenX wrote:
Just go to add file to project and add it in.
tht doesnt work
Back to top
View user's profile Send private message Send e-mail MSN Messenger
AithenX
Cheater
Reputation: 0

Joined: 07 Oct 2007
Posts: 25

PostPosted: Sun Oct 07, 2007 1:51 pm    Post subject: Reply with quote

It depends on what program you use, for Microsoft Visual C++ 2005 do this:

In your solution explorer right click 'WindowsApplication1'(just an example) that is the solution name then choose add>existing item and when in that for 'Files of type' choose *.* then select the .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: Sun Oct 07, 2007 2:47 pm    Post subject: Reply with quote

Right click the tool bar and click "Components" then scroll down until you find "ShochWaveFlash1" and then cick "Ok" and there should be a new tool on the toolbar just click it and put it on the form and that's the SWF.
Back to top
View user's profile Send private message MSN Messenger
AithenX
Cheater
Reputation: 0

Joined: 07 Oct 2007
Posts: 25

PostPosted: Sun Oct 07, 2007 2:52 pm    Post subject: Reply with quote

What is he using though?
_________________
When hobos attack :O

http://www.legendaryhax.co.nr/

Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Oct 07, 2007 3:07 pm    Post subject: Reply with quote

AithenX wrote:
What is he using though?


VB6 as it says in the topic title...

@ the original poster:
You could also add a web browser component and point it to a .html file which contains the flash file link. Such as creating an .html file in the same folder as your application and having the webbrowser point to it. Have the html file load the .swf file thats also in the same directory.

So your could would be something like:

Code:
Private Sub Form_Load()

    With WebBrowser1
        .AddressBar = False
        .MenuBar = False
        .StatusBar = False
        .Resizable = False
    End With
       
    WebBrowser1.Navigate App.Path & "/index.html"
   
End Sub


And the HTML file could be something like...

Code:
<HTML>
 <HEAD>
  <TITLE></TITLE>
 </HEAD>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="160" height="236">
   <param name="movie" value="FLASH_FILE_NAME_HERE.swf">
   <param name="quality" value="high">
   <embed src="FLASH_FILE_NAME_HERE.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="160" height="236">
   </embed>
  </object>


 </BODY>
</HTML>


Edit the HTML properties as needed (width, height, quality) and so on.
Back to top
View user's profile Send private message Visit poster's website
willo55
Expert Cheater
Reputation: 0

Joined: 07 Oct 2007
Posts: 155
Location: in my house

PostPosted: Mon Oct 08, 2007 12:06 am    Post subject: Reply with quote

Wiccaan wrote:
AithenX wrote:
What is he using though?


VB6 as it says in the topic title...

@ the original poster:
You could also add a web browser component and point it to a .html file which contains the flash file link. Such as creating an .html file in the same folder as your application and having the webbrowser point to it. Have the html file load the .swf file thats also in the same directory.

So your could would be something like:

Code:
Private Sub Form_Load()

    With WebBrowser1
        .AddressBar = False
        .MenuBar = False
        .StatusBar = False
        .Resizable = False
    End With
       
    WebBrowser1.Navigate App.Path & "/index.html"
   
End Sub


And the HTML file could be something like...

Code:
<HTML>
 <HEAD>
  <TITLE></TITLE>
 </HEAD>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="160" height="236">
   <param name="movie" value="FLASH_FILE_NAME_HERE.swf">
   <param name="quality" value="high">
   <embed src="FLASH_FILE_NAME_HERE.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="160" height="236">
   </embed>
  </object>


 </BODY>
</HTML>


Edit the HTML properties as needed (width, height, quality) and so on.



no i meen ive already got my df game in as flash but i want to link a buton to activate a swf i have in a folder
Back to top
View user's profile Send private message Send e-mail MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Oct 08, 2007 7:23 am    Post subject: Reply with quote

willo55 wrote:
no i meen ive already got my df game in as flash but i want to link a buton to activate a swf i have in a folder


As in change the location of the website inside your form? Just make a button and use a code such as:

Code:
Private Sub Command1_Click()
   WebBrowser1.Navigate App.Path & "/NEW_HTML_FILE.html"
End Sub


Just have the new HTML file contain the code to load the other SWF file.
Back to top
View user's profile Send private message Visit poster's website
gamesguru
Grandmaster Cheater
Reputation: 0

Joined: 22 Mar 2006
Posts: 926
Location: detroit

PostPosted: Mon Oct 08, 2007 1:05 pm    Post subject: Reply with quote

To simply add it to the resources just go Project>Add Existing File. However if you wish for it to be accessed programmatically from your program add a DirectX component.
_________________
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