| View previous topic :: View next topic |
| Author |
Message |
willo55 Expert Cheater
Reputation: 0
Joined: 07 Oct 2007 Posts: 155 Location: in my house
|
Posted: Sun Oct 07, 2007 1:36 pm Post subject: How do i get a swf onto the project (vb6) |
|
|
| can some one tell me how to get a swf onto my project
|
|
| Back to top |
|
 |
AithenX Cheater
Reputation: 0
Joined: 07 Oct 2007 Posts: 25
|
Posted: Sun Oct 07, 2007 1:38 pm Post subject: |
|
|
| Just go to add file to project and add it in.
|
|
| Back to top |
|
 |
willo55 Expert Cheater
Reputation: 0
Joined: 07 Oct 2007 Posts: 155 Location: in my house
|
Posted: Sun Oct 07, 2007 1:43 pm Post subject: |
|
|
| AithenX wrote: | | Just go to add file to project and add it in. | tht doesnt work
|
|
| Back to top |
|
 |
AithenX Cheater
Reputation: 0
Joined: 07 Oct 2007 Posts: 25
|
Posted: Sun Oct 07, 2007 1:51 pm Post subject: |
|
|
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 |
|
 |
Never Again I post too much
Reputation: 0
Joined: 13 Jan 2007 Posts: 2000 Location: New Mexico
|
Posted: Sun Oct 07, 2007 2:47 pm Post subject: |
|
|
| 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 |
|
 |
AithenX Cheater
Reputation: 0
Joined: 07 Oct 2007 Posts: 25
|
Posted: Sun Oct 07, 2007 2:52 pm Post subject: |
|
|
What is he using though?
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Oct 07, 2007 3:07 pm Post subject: |
|
|
| 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 |
|
 |
willo55 Expert Cheater
Reputation: 0
Joined: 07 Oct 2007 Posts: 155 Location: in my house
|
Posted: Mon Oct 08, 2007 12:06 am Post subject: |
|
|
| 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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Mon Oct 08, 2007 7:23 am Post subject: |
|
|
| 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 |
|
 |
gamesguru Grandmaster Cheater
Reputation: 0
Joined: 22 Mar 2006 Posts: 926 Location: detroit
|
Posted: Mon Oct 08, 2007 1:05 pm Post subject: |
|
|
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 |
|
 |
|