Ivo Pereira Posted November 8, 2007 at 09:56 PM Report Share #146236 Posted November 8, 2007 at 09:56 PM Pessoal, penso que seja possível e gostava que me dissessem como pôr um SWF como resource... thanks 😞 e já agora gostava também de saber depois como posso pô-lo a correr no programa 😛 Link to comment Share on other sites More sharing options...
Cybernavigator Posted November 9, 2007 at 07:25 PM Report Share #146373 Posted November 9, 2007 at 07:25 PM Como assim? Meter um swf como resource? Acho k meter no programa eh facil... Melhores cumprimentos,João Lopes***Esta mensagem foi escrita ao abrigo do novo Acordo Ortográfico*** Link to comment Share on other sites More sharing options...
Ivo Pereira Posted November 9, 2007 at 07:36 PM Author Report Share #146377 Posted November 9, 2007 at 07:36 PM esquece ja sei... agora queria é reproduzir... o q nao to a conseguir... Link to comment Share on other sites More sharing options...
Cybernavigator Posted November 9, 2007 at 07:40 PM Report Share #146378 Posted November 9, 2007 at 07:40 PM :| reproduzir? tas a ir buscar o swf aonde? À net? Melhores cumprimentos,João Lopes***Esta mensagem foi escrita ao abrigo do novo Acordo Ortográfico*** Link to comment Share on other sites More sharing options...
Ivo Pereira Posted November 10, 2007 at 12:05 AM Author Report Share #146447 Posted November 10, 2007 at 12:05 AM nao, ao resource... Link to comment Share on other sites More sharing options...
davide_shot Posted November 10, 2007 at 12:28 AM Report Share #146457 Posted November 10, 2007 at 12:28 AM será isto que queres? via código no VB6 ... ShockwaveFlash1.Movie = (App.Path & "\planeta.swf") ... se não vais hás propriedades da cena flash e vai ao custom, tá lá pra pores o URL por exepmlo(c:\os meus documentos\planeta.swf)... cumps Link to comment Share on other sites More sharing options...
Ivo Pereira Posted November 10, 2007 at 12:32 AM Author Report Share #146461 Posted November 10, 2007 at 12:32 AM mas tipo, o ficheiro swf tá nos resources do projecto... em vb.net 😛 Link to comment Share on other sites More sharing options...
Cybernavigator Posted November 10, 2007 at 12:43 AM Report Share #146464 Posted November 10, 2007 at 12:43 AM Ah bom, já percebi o k keres, para acederes ao k está nos resources faz isto: nome do projecto(root namespace) ok recomeçando, o meu root namespace é atestar: atestar.My.Resources.durem_game4_7 pronto, ah medida que vais pondo os . ele vai buscando as cenas automáticamente. Usa isso. Melhores cumprimentos,João Lopes***Esta mensagem foi escrita ao abrigo do novo Acordo Ortográfico*** Link to comment Share on other sites More sharing options...
Ivo Pereira Posted November 10, 2007 at 03:01 PM Author Report Share #146561 Posted November 10, 2007 at 03:01 PM ja percebi que ja percebes.te, mas continua a nao ser bem isso. tipo eu pensei em usar AxFlash.Movie = My.Resources.game mas simplesmente não abre :/ Link to comment Share on other sites More sharing options...
Cybernavigator Posted November 10, 2007 at 04:05 PM Report Share #146575 Posted November 10, 2007 at 04:05 PM E assim? Não dá? AxFlash.Movie = NomeProjecto.My.Resources.game Melhores cumprimentos,João Lopes***Esta mensagem foi escrita ao abrigo do novo Acordo Ortográfico*** Link to comment Share on other sites More sharing options...
Ivo Pereira Posted November 10, 2007 at 04:10 PM Author Report Share #146576 Posted November 10, 2007 at 04:10 PM nao :/ tipo o que eu pensei depois foi fazer um ficheiro html com o codigo flash e fazer um webbrowser, e então ja experimentei de várias maneiras, e a ultima foi esta: <html> <body> <OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0"> <PARAM NAME="MOVIE" VALUE="youare.swf"> <PARAM NAME="PLAY" VALUE="true"> <PARAM NAME="QUALITY" VALUE="best"> <PARAM NAME="LOOP" VALUE="true"> <EMBED SRC="youare.swf" WIDTH="400" HEIGHT="300" PLAY="true" LOOP="true" QUALITY="best" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED> </OBJECT></body> </html> o que tá acima tá no ficheiro 'code.txt' Imports System.IO Public Class VirusEle Dim codigohtml As String Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim SR As New StreamReader("C:\code.txt") codigohtml = SR.ReadToEnd() SR.Close() End wb.DocumentText = codigohtml wb.Refresh() End Sub isto é o codigo que tenho actualmente, mas agora nem o programa abre para testar, nao sei porque :/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now