Page 1 of 1

Loading Flash.Swf Files at Runtime

Posted: Sun Jan 10, 2010 12:38 pm
by hungryhounduk
Hi All
Does anyone know the correct Load Code for Loading a Flash.Swf File from The Resources at Runtime?

*What I want to do is Get the Form to Load and Display a working .SWF as it Loads up without adding any Buttons to the Form.

Any Help wolud be most Welcome cooll;

Cheers in Advance

Chris

Re: Loading Flash.Swf Files at Runtime

Posted: Sun Jan 10, 2010 2:42 pm
by Lewis
Form Load:
AxFlashMovieThing.Movie = "D:\\Documents and Settings\Chris\Flash\Flash.swf"
OR
Upload a flash thing to Resources and code would be:
FlashMovieThing.Movie = My.Resources.Flash
If thats not what you mean please be more spesific :D

Re: Loading Flash.Swf Files at Runtime

Posted: Sun Jan 10, 2010 3:46 pm
by hungryhounduk
Hi Lewis
I have tried coding it so that it access the Flash file from my Resources, Like with the code below

Code: Select all
AxShockwaveFlash1.LoadMovie = My.Resources.MTWEEN
but it comes up with an error in the code ( before i run it )..As i want to load the SWFs in to the Resources and create a Program the has all the Flash files within it and does not get them from the Harddrive..

Chris

Re: Loading Flash.Swf Files at Runtime

Posted: Sun Jan 10, 2010 4:02 pm
by Lewis
Okay i dont realy know :D

Re: Loading Flash.Swf Files at Runtime

Posted: Sun Jan 10, 2010 4:03 pm
by hungryhounduk
hI
Codenstuff Came to the RESCUE cooll; wahooo; wahooo; wahooo;

I dont know What we would do without "Codenstuff" and his Amazing Programming Brain 8-) 8-)

A "BIGUP" to Codenstuff, Thank You, you have really made my Day as i have spent about 3 hours trying lots of stupid commands and the like....................................................

I REALLY LOVE THIS SITE loove; loove;

Much Respect

Chris

Re: Loading Flash.Swf Files at Runtime

Posted: Sun Jan 10, 2010 4:09 pm
by TechSoftware
whats the code then

Re: Loading Flash.Swf Files at Runtime

Posted: Sun Jan 10, 2010 4:16 pm
by hungryhounduk
hI tECH
I will post the code up in the Snips Section :)

Chris