https://linen.dev logo
Join Discord
Powered by
# openfl
  • c

    curved-lifeguard-6743

    05/15/2023, 4:10 PM
    It kinda needs to update every frame
  • c

    curved-lifeguard-6743

    05/15/2023, 4:10 PM
    As libvlc is using async loading
  • c

    curved-lifeguard-6743

    05/15/2023, 4:10 PM
    For everything
  • r

    rhythmic-wolf-50922

    05/15/2023, 4:28 PM
    makes sense. I'd probably subclass Bitmap and override
    __enterFrame()
    so that it doesn't affect other bitmaps on the stage. I'd probably add a property to the subclass that indicates whether the video is playing or not. if the video isn't playing, no need to call
    __setRenderDirty()
    .
  • c

    curved-lifeguard-6743

    05/15/2023, 4:38 PM
    Thanks
  • c

    curved-lifeguard-6743

    05/15/2023, 5:10 PM
    Rn the render looks like this

    https://cdn.discordapp.com/attachments/769686284318146561/1107716621172219944/Screenshot_2023-05-15-20-06-15-418-edit_com.android.chrome.jpg▾

  • c

    curved-lifeguard-6743

    05/15/2023, 5:11 PM
    Probably I could place
    __setRenderDirty
    somewhere else
  • c

    clever-airline-85054

    05/15/2023, 6:42 PM
    Any uhhh example?
  • c

    clever-airline-85054

    05/15/2023, 6:42 PM
    I'm sorry, im a total amateur at this
  • p

    plain-portugal-5564

    05/15/2023, 6:55 PM
    Copy code
    hx
    stage.addEventListener(KeyboardEvent.KEY_DOWN, (e:KeyboardEvent) -> {
      if (e.keyCode == Keyboard.ENTER && e.altKey)
        e.preventDefault();
    });
    prolly something like this (untested)
  • c

    clever-airline-85054

    05/15/2023, 6:56 PM
    Oh that's sick
  • c

    clever-airline-85054

    05/15/2023, 6:56 PM
    Where do i add it tho?
  • p

    plain-portugal-5564

    05/15/2023, 6:56 PM
    probably somewhere near the start
  • c

    clever-airline-85054

    05/15/2023, 7:45 PM
    of?
  • c

    clever-airline-85054

    05/15/2023, 7:45 PM
    also what's stage?
  • p

    plain-portugal-5564

    05/15/2023, 7:46 PM
    the openfl stage
  • p

    plain-portugal-5564

    05/15/2023, 7:46 PM
    somewhere where you init stuff
  • c

    clever-airline-85054

    05/15/2023, 7:47 PM
    okk
  • c

    clever-airline-85054

    05/15/2023, 7:47 PM
    sooo import openfl.stage?
  • p

    plain-portugal-5564

    05/15/2023, 7:49 PM
    i don't think you need to import it
  • p

    plain-portugal-5564

    05/15/2023, 7:49 PM
    any displayobject should have a reference to the stage
  • c

    clever-airline-85054

    05/15/2023, 8:05 PM
    oh ok
  • c

    clever-airline-85054

    05/15/2023, 8:08 PM
    @plain-portugal-5564

    https://cdn.discordapp.com/attachments/769686284318146561/1107761385179451392/image.png▾

  • c

    clever-airline-85054

    05/15/2023, 8:08 PM
    🤷
  • p

    plain-portugal-5564

    05/15/2023, 8:09 PM
    where are you referencing stage
  • c

    clever-airline-85054

    05/15/2023, 8:09 PM
    In the create fucntion
  • c

    clever-airline-85054

    05/15/2023, 8:09 PM
    in playstate
  • p

    plain-portugal-5564

    05/15/2023, 8:09 PM
    flixel playstate?
  • c

    clever-airline-85054

    05/15/2023, 8:09 PM
    PlayState.hx
  • c

    clever-airline-85054

    05/15/2023, 8:09 PM
    Yea
1...5354555657Latest