Loading Flash.Swf Files at Runtime

Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
7 posts Page 1 of 1
Contributors
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

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
Image
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

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
Image
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

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
Image
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

Okay i dont realy know :D
Image
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

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
Image
User avatar
TechSoftware
New Member
New Member
Posts: 12
Joined: Sat Jan 09, 2010 3:27 pm

whats the code then
User avatar
hungryhounduk
VIP - Site Partner
VIP - Site Partner
Posts: 2870
Joined: Mon Jul 27, 2009 11:58 am

hI tECH
I will post the code up in the Snips Section :)

Chris
Image
7 posts Page 1 of 1
Return to “Tutorial Requests”