Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Flash Vids...?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
AndrewJ




PostPosted: Tue Dec 12, 2006 8:01 pm   Post subject: Flash Vids...?

i am creating a game currently and i was wondering if somehow i can upload and play a flash "cut scene" so to speak after a certain boolean condition has been met in my game.....any help would be appreciated
Sponsor
Sponsor
Sponsor
sponsor
[Gandalf]




PostPosted: Tue Dec 12, 2006 8:14 pm   Post subject: (No subject)

code:
var done := Sys.Exec("file_name.swf")

Note, this will not run the flash file in the Turing, but instead execute it with the default flash player.
AndrewJ




PostPosted: Tue Dec 12, 2006 8:19 pm   Post subject: (No subject)

so there is no way to run the video in the turing run window????
because i have been told it can be done but it is difficult...thanks though
Dan




PostPosted: Tue Dec 12, 2006 9:13 pm   Post subject: (No subject)

The simple awnser is that it is imposable.

The long anwser is that it is posible but you have to right a program to read in the flash file, decode it, read it line by line, exctarct the pxiel values and colors, draw the objects, then move to the next frame and repeat. You whould have to do all of this with the read comand in truing and since there is litte to no infromation out there about how the flash fromat works this whould take a very very long time to figgure out and you whould need alot of knowalge about some complex subjects.

The cheat or work around whould be to export the flash file in to a video or other format in flash mx, and then use another program to export an image for each frame. Then you could take each image and load it in to Turing, display it one at a time with a given delay and then display the next image. This will make it look like a vidoe or animation is playing.

If you have one of the newest versons of turing that suports gif files and animation you could export the flash file in to a gif and use the comands to display it. However this verson of turing is not yet publicly realsed.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
DIIST




PostPosted: Tue Dec 12, 2006 10:28 pm   Post subject: (No subject)

Quote:
The long anwser is that it is posible but you have to right a program to read in the flash file, decode it, read it line by line, exctarct the pxiel values and colors, draw the objects, then move to the next frame and repeat.


There is that, or you can just do the classically way by loading your flash file into something like ffdshow(i dunno if it can run, i ve seen it load shockwave), capture each frame into a jpeg file, and load it as a sprite. Rolling Eyes
Dont Take my advice! I still think the best way is to create your own animation is hand drawn in turing. Look at forces as an example.
Dan




PostPosted: Tue Dec 12, 2006 11:21 pm   Post subject: (No subject)

thuvs wrote:
Quote:
The long anwser is that it is posible but you have to right a program to read in the flash file, decode it, read it line by line, exctarct the pxiel values and colors, draw the objects, then move to the next frame and repeat.


There is that, or you can just do the classically way by loading your flash file into something like ffdshow(i dunno if it can run, i ve seen it load shockwave), capture each frame into a jpeg file, and load it as a sprite. Rolling Eyes
Dont Take my advice! I still think the best way is to create your own animation is hand drawn in turing. Look at forces as an example.


Ummm, i side that.....read my hole post.....and forces is not realy hand draw, the best way is probly to take images and animate them by chaning the pic at a set interval.
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: