u/plushili

Is there a way to randomize/change to a different swf/flash file with each website refresh using Ruffle?

So I'm working on a Electron project and I'm using a lot of different ads, with every page refresh I want the ad swfs to change to different ones.

I hope I'm making sense.

reddit.com
u/plushili — 3 days ago
▲ 1 r/flash

Is there a way to randomize/change to a different swf/flash file with each website refresh using Ruffle?

So I'm working on a Electron project and I'm using a lot of different ads, with every page refresh I want the ad swfs to change to different ones.

I hope I'm making sense.

reddit.com
u/plushili — 3 days ago
▲ 2 r/flash

I just made a post today asking how to run flash/swf files on electron: https://www.reddit.com/r/learnprogramming/comments/1t2wskc/how_do_you_get_flashswf_files_running_on_electron/ and some people suggested to use Ruffle as the main player instead of Pepper Flash Player.

I'm trying to get Ruffle running using the self hosting package but I just can't get it to work, I followed the instructions that are given in the git hub page but to no avail. It gives me this error:

"Something went wrong :(

It appears you are running Ruffle on the "file:" protocol.

This doesn't work as browsers block many features from working for security reasons.

Instead, we invite you to setup a local server or either use the web demo or the desktop application."

I don't really have experience using JavaScript so I'm learning as a go. I appreciate any help, thank you.

UPDATE: I FINALLY GOT IT TO WORK!! Apperently I had some lines of <meta> code in my html page that was blocking the ruffle player.:

&lt;meta
      http-equiv="Content-Security-Policy"
      content="default-src 'self'; script-src 'self'"/&gt;
    &lt;meta
      http-equiv="X-Content-Security-Policy"
      content="default-src 'self'; script-src 'self'"/&gt;

I removed the code and the problem disappeared, I feel so dumb for not noticing this before lol

reddit.com
u/plushili — 18 days ago

I just made a post today asking how to run flash/swf files on electron: https://www.reddit.com/r/CodingHelp/comments/1t2wxld/how_do_you_get_flashswf_files_running_on_electron/ and some people suggested to use Ruffle as the main player instead of Pepper Flash Player.

I'm trying to get Ruffle running using the self hosting package but I just can't get it to work, I followed the instructions that are given in the git hub page but to no avail. It gives me this error:

"Something went wrong :(

It appears you are running Ruffle on the "file:" protocol.

This doesn't work as browsers block many features from working for security reasons.

Instead, we invite you to setup a local server or either use the web demo or the desktop application."

I don't really have experience using JavaScript so I'm learning as a go. I appreciate any help, thank you.

UPDATE: I FINALLY GOT IT TO WORK!! Apperently I had some lines of <meta> code in my html page that was blocking the ruffle player.:

&lt;meta
      http-equiv="Content-Security-Policy"
      content="default-src 'self'; script-src 'self'"/&gt;
    &lt;meta
      http-equiv="X-Content-Security-Policy"
      content="default-src 'self'; script-src 'self'"/&gt;

I removed the code and the problem disappeared, I feel so dumb for not noticing this before lol

reddit.com
u/plushili — 18 days ago

I just made a post today asking how to run flash/swf files on electron: https://www.reddit.com/r/electronjs/comments/1t2wq3j/how_do_you_get_flashswf_files_running_on_electron/ and some people suggested to use Ruffle as the main player instead of Pepper Flash Player.

I'm trying to get Ruffle running using the self hosting package but I just can't get it to work, I followed the instructions that are given in the git hub page but to no avail. It gives me this error:

"Something went wrong :(

It appears you are running Ruffle on the "file:" protocol.

This doesn't work as browsers block many features from working for security reasons.

Instead, we invite you to setup a local server or either use the web demo or the desktop application."

I don't really have experience using JavaScript so I'm learning as a go. I appreciate any help, thank you.

reddit.com
u/plushili — 18 days ago

I just made a post today asking how to run flash/swf files on electron: https://www.reddit.com/r/learnprogramming/comments/1t2wskc/how_do_you_get_flashswf_files_running_on_electron/ and some people suggested to use Ruffle as the main player instead of Pepper Flash Player.

I'm trying to get Ruffle running using the self hosting package but I just can't get it to work, I followed the instructions that are given in the git hub page but to no avail. It gives me this error:

"Something went wrong :(

It appears you are running Ruffle on the "file:" protocol.

This doesn't work as browsers block many features from working for security reasons.

Instead, we invite you to setup a local server or either use the web demo or the desktop application."

I don't really have experience using JavaScript so I'm learning as a go. I appreciate any help, thank you.

reddit.com
u/plushili — 18 days ago

So I'm trying to work on a project that plays swf files within an offline desktop app, but I haven't got it to work. I've heard of a project called Waddle Forever (A Club Penguin project), which is one of the reasons I wanted to do my own project. Waddle Forever was able to run the flash files of the game offline without issue, I still hadn't figured out how this was done.

I tried using the pepper flash player plugin and running an old version (4.2.6) of electron since I've heard it supports flash. But nothing works, it just displays a sign saying "Couldn't load plugin", I don't really have experience using JavaScript so I'm learning as a go.

I appreciate any help, thank you.

reddit.com
u/plushili — 18 days ago

So I'm trying to work on a project that plays swf files within an offline desktop app, but I haven't got it to work. I've heard of a project called Waddle Forever (A Club Penguin project), which is one of the reasons I wanted to do my own project. Waddle Forever was able to run the flash files of the game offline without issue, I still hadn't figured out how this was done.

I tried using the pepper flash player plugin and running an old version (4.2.6) of electron since I've heard it supports flash. But nothing works, it just displays a sign saying "Couldn't load plugin", I don't really have experience using JavaScript so I'm learning as a go.

I appreciate any help, thank you.

reddit.com
u/plushili — 18 days ago

So I'm trying to work on a project that plays swf files within an offline desktop app, but I haven't got it to work. I've heard of a project called Waddle Forever (A Club Penguin project), which is one of the reasons I wanted to do my own project. Waddle Forever was able to run the flash files of the game offline without issue, I still hadn't figured out how this was done.

I tried using the pepper flash player plugin and running an old version (4.2.6) of electron since I've heard it supports flash. But nothing works, it just displays a sign saying "Couldn't load plugin", I don't really have experience using JavaScript so I'm learning as a go.

I appreciate any help, thank you.

reddit.com
u/plushili — 18 days ago