I am searching the web and I have found that all the codes are for running external SFF files, which have timeline . The file I am attempting to load does not have a timeline. I am using the Fixel framework for this project and the file I want to play is also made in Fluxel (not just the source file in the SDF file). has gone.
I have the most code on the Faxal forum, I got it from a cutaneous template. Here's what I've done so far:
package {import org.flixel.FlxState; Import org.flixel.flxg; Import Flash.Display.MovieClip; Import Flash. Media. Sound mixer; Import flash.events.Event; Public class sponsorStest FluxState {// embedded CutSin SWF related to the root of the Faxless Project [Embed (source = 'assets / dertipilaglago SIFF', mime type = 'episode / octet-stream')] Personalized Sphales: Class; // This is a Movie Clip container for your CutScen Private Wave movie: Movieclip; // It is the length of the cassine in the frame Personal var Length: Number; Override public function created (): zero {movie = new SwfClass (); // Set up your zoom factor of FlxGame here (default is 2) var zoomFactor: int = 2; Movie. scaleX = 1.0 / zoom factor; Movie. ScaleY = 1.0 / zoomfactor; // Add Movie Clip Container to Fluxstat Ad ChildAid (Movie, 0); // Set the length of the cutcein (frame) length = 100; // Adds the listener to the next () call after every frame Cutesen Movie.addEventListener (event.EXIT_FRAME, next); } Private work Next (E: Event): Zero {// after each frame, Length decreases by a length; // If the length at the end of the film is 0, then (length & lt; = 0) {// the listener removes the movie. RemovesEventListener (event.EXIT_FRAME, next); // prevents all overlapping sounds before state switches SoundMixer.stopAll (); // FlxG.state = Enter the next fluxstate to switch to new playstate (); }}} }
When I run it, I get this error: type rape unsuccessful: sponsors can not change State_SwfClass @ fb5161 To flash.display.movieclip , what I want to do is run the SWF file to calculate a set frame, then go to the next position. Any thoughts on how to do this?
Try changing the following:
[embed (source = 'Property / DertPilLago SWF' MimeType = 'Application / Octet-Stream')] Personal Work SwfClass: Class; // This is a Movie Clip container for your CutScen Private Wave movie: Movieclip; In
// Mark your symbol for export and name it = & gt; MyExportedSymbol [Enter (Source = 'Property / DertPilLago SWF', symbol = "My Exporter's Symbol")] Private Wise SwfSymbol: Class; // Make sure MyExportedSymbol is a base class MovieClip Personal Var movie: MovieClip = New SwfSymbol; Actually, you mark your symbol for export, give it a name and use it in embed code. You will only embed that symbol.
Comments
Post a Comment