2021-04-11 20:03:03 +00:00
|
|
|
import RuffleService from '../../services/ruffle_service/ruffle_service.js'
|
|
|
|
|
2021-04-09 16:09:22 +00:00
|
|
|
const Flash = {
|
2021-04-11 20:03:03 +00:00
|
|
|
props: [ 'src' ],
|
|
|
|
created () {
|
2021-04-09 16:09:22 +00:00
|
|
|
this.$nextTick(function () {
|
2021-04-11 20:03:03 +00:00
|
|
|
RuffleService.getRuffle().then((ruffle) => {
|
|
|
|
const player = ruffle.newest().createPlayer()
|
|
|
|
const container = this.$refs.cunt
|
|
|
|
container.appendChild(player)
|
|
|
|
player.load(this.src)
|
|
|
|
})
|
2021-04-09 16:09:22 +00:00
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Flash
|