Jump to content

[VB.Net] SWF Resource?


Ivo Pereira

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.