ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.71k stars 817 forks source link

How to operate the player? #1699

Open tidus2020 opened 3 years ago

tidus2020 commented 3 years ago

I want to show the progress of swf animate, need pause, play and gotoandplay.

Poopooracoocoo commented 3 years ago

here's something a search brought up. may be worth reading: https://github.com/ruffle-rs/ruffle/issues/503#issuecomment-615003225

tidus2020 commented 3 years ago

here's something a search brought up. may be worth reading: #503 (comment)

so...only play/pause is available, the currentframe/totalframe/gotoAndPlay still can't do now?

but the swf will auto loop , I don't know when to stop it, and the sound will disappear on the second time.

ztefn commented 3 years ago

I have a similar need. I have two separate Flash animations (basket ball players) that call each other through Javascript using the ExternalInterface when they pass the ball along the second Flash object starts playing the catch animation, dribbles and passes along to the first player, and on, and on.

The Flash player functions and proprties used in this case are: FlashPlayer.Play( ) FlashPlayer.GotoFrame( ) FlashPlayer.PercentLoaded( )

Would be nice if there would be similar calls on the RufflePlayer object.

wycret commented 3 years ago

I have the same question

secretFree commented 3 years ago

i have the same question..

kepstin commented 3 years ago

In the Adobe Flash plugin, the right-click context menu had (at the very least) Play/Pause options available when playing flash animations, it would be nice for Ruffle to provide those as well.

n0samu commented 2 years ago

Related: #7868