Hi this is programming for a game for uni work
I just want to know what is possible in C# cause i'm use to C++
For Splash screen i want to make a .swf from flash to use cause it'll add some cradit to my work. but i want to know if swf file are compatible and simple to use.
The test i made didn't work, probaly cause i using 2005 on the course but the tutorials are in the new 2008 Visual Studio.
is there any tutorials you know (or methods) that work in 2005, i'm also using AnX 2.0 in this game if that imporant
Flash in C#
Started by kavery, Nov 18 2009 12:56 PM
8 replies to this topic
#1
Posted 18 November 2009 - 12:56 PM
|
|
|
#2
Posted 18 November 2009 - 01:04 PM
Any reason you're not upgrading to C# 2008?
Edit:
I did see this link with some sample 2005 code.
Mike Swanson's Blog : Example C# Code for Reading Flash (SWF) Files
Edit:
I did see this link with some sample 2005 code.
Mike Swanson's Blog : Example C# Code for Reading Flash (SWF) Files
Edited by PGP_Protector, 18 November 2009 - 01:10 PM.
Found Link for 2005 Code
#3
Posted 18 November 2009 - 01:17 PM
i have 2008 on my system, but this is marked worked, and must run on 2005 for university marking. And as far as i know 2008 don't support save as 2005 .sln, so i've had to down the old one again to work.
i know it a pain but being uni work i have to do it in 2005
i know it a pain but being uni work i have to do it in 2005
#4
Posted 18 November 2009 - 02:12 PM
Ok, just tested this, it's simple :)
1) in your Toolbox Add a Com Object Shockwave Flash Object
2) Add this to your Splash Screen Form
3) In this Code Snip I'm calling it FlashObj
1) in your Toolbox Add a Com Object Shockwave Flash Object
2) Add this to your Splash Screen Form
3) In this Code Snip I'm calling it FlashObj
public Form1()
{
InitializeComponent();
FlashObj.Stop();
FlashObj.Movie = Application.StartupPath + "\\MyFlashFile.swf";
FlashObj.Play();
}
#5
Posted 18 November 2009 - 03:15 PM
that seems to work, cheers thanks for the help
#6
Posted 22 November 2009 - 08:55 AM
I didn't it was possible to do flash in c#
#7
Posted 24 November 2009 - 07:12 AM
it's alittle more complicated than PGP's code, but i already had the file to initate but the implementation works, it's not the best way to do it but it is possible. i have three sections of control on it but i'm sure there are better ways than what i did.
#8
Posted 25 November 2009 - 12:06 AM
doomsaber said:
I didn't it was possible to do flash in c#
great news, i love my seed upgrade.
_________________
#9
Posted 29 November 2009 - 05:09 PM
I accept with information:this is marked worked, and must run on 2005 for university marking.


Sign In
Create Account


Back to top









