Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dank074/javascript-plugin
Allows 2-way communication between some javascript running in your client and your emulator using the FlashExternalInterface
https://github.com/dank074/javascript-plugin
arcturus-plugins flashexternalinterface habbo
Last synced: 2 months ago
JSON representation
Allows 2-way communication between some javascript running in your client and your emulator using the FlashExternalInterface
- Host: GitHub
- URL: https://github.com/dank074/javascript-plugin
- Owner: dank074
- Created: 2020-01-25T12:51:50.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-08T17:51:39.000Z (9 months ago)
- Last Synced: 2024-04-08T21:18:28.119Z (9 months ago)
- Topics: arcturus-plugins, flashexternalinterface, habbo
- Language: Java
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# javascript-plugin
Allows 2-way communication between some javascript running in your client and your emulator using the FlashExternalInterface## How do I use it?
You can use the following Vue application which will work out of the box with this plugin: https://github.com/dank074/youtube-overlay
Just include the scripts and add a div with id=app, and you are set to go## I don't wanna use that Vue trash, how do I use it with my own javascript?
Receiving a message:
```js
FlashExternalInterface.openHabblet = function(a,b){console.log("recieved " + a)}
```Sending a message:
```js
document.querySelector('object, embed').openroom(JSON.stringify({"header": "test", "data": {"name": "Efrain"}}))
```
## Built in features
- [x] Arrowkey walking
- [x] Youtube jukebox (use interaction `yt_jukebox` on any furniture)
- [x] Slots Machine (use interaction `slots_machine` on any furniture)
- [x] :youtube command ```ALTER TABLE permissions
ADD COLUMN cmd_youtube enum('0','1') DEFAULT '1';```