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

    square-angle-35096

    02/01/2023, 2:55 PM
    Got this error while compiling
  • s

    square-angle-35096

    02/01/2023, 2:56 PM
    I had dce on but i'm still kind of confused by this because i had already compiled other flixel/openfl projects with full dce on and i hadn't got this error
  • a

    ambitious-knife-25690

    02/01/2023, 3:28 PM
    delete the export dir and recompile
  • s

    square-angle-35096

    02/01/2023, 3:29 PM
    i tried, didnt work
  • r

    rhythmic-wolf-50922

    02/01/2023, 4:25 PM
    some part of the code probably accessing the
    error
    property of the
    AsyncerrorEvent
    using
    Dynamic
    or
    Reflect.field()
    . DCE doesn't recognize this, so it thinks that this property can be removed.
  • s

    square-angle-35096

    02/01/2023, 4:36 PM
    ohhh i saw it now, thank you
  • b

    bored-train-92318

    02/05/2023, 6:55 AM
    does anyone know how to access DOM elements on netStream?
  • b

    bored-train-92318

    02/05/2023, 6:57 AM
    netStream has the private field __video but that's the video element the documentation of media elements says you can change some settings but the js.html.videoElement doesn't have support for it is there a way around this?
  • b

    bored-train-92318

    02/05/2023, 6:57 AM
    specifically
  • b

    bitter-city-44714

    02/06/2023, 4:17 PM
    helped me a lot, thank you!
  • l

    lively-easter-28723

    02/09/2023, 1:47 AM
    where can i find a variable that controls volume of the sound in openfl.media.Video?
  • m

    magnificent-fireman-89458

    02/09/2023, 1:45 PM
    hello
  • m

    magnificent-fireman-89458

    02/09/2023, 1:45 PM
    i need some help
  • h

    hallowed-ocean-84954

    02/09/2023, 2:31 PM
    No need to ask to ask - just ask the question
  • r

    rhythmic-wolf-50922

    02/09/2023, 3:43 PM
    The
    NetStream
    used by the
    Video
    has a
    soundTransform
    property: https://api.openfl.org/openfl/net/NetStream.html#soundTransform
  • m

    magnificent-fireman-89458

    02/09/2023, 3:48 PM
    Does this work? var _bg = getBitmapData("bg.png");
  • h

    hallowed-ocean-84954

    02/09/2023, 3:56 PM
    Should do. Are you getting errors ?
  • m

    magnificent-fireman-89458

    02/09/2023, 4:04 PM
    yes
  • m

    magnificent-fireman-89458

    02/09/2023, 4:05 PM
    source/Main.hx:39: characters 13-26 : Unknown identifier : getBitmapData
  • h

    hallowed-ocean-84954

    02/09/2023, 4:09 PM
    How are you importing ? To use the bare function name like this you will need to`import openfl.utils.Assets.getBitmapData;`.
  • m

    magnificent-fireman-89458

    02/09/2023, 4:29 PM
    ok
  • m

    magnificent-fireman-89458

    02/09/2023, 4:32 PM
    now i got this
  • m

    magnificent-fireman-89458

    02/09/2023, 4:32 PM
    Uncaught exception - [lime.utils.Assets] ERROR: There is no IMAGE asset with an ID of "bg.png"
  • r

    rhythmic-wolf-50922

    02/09/2023, 4:33 PM
    you should have something like this in your project.xml:
    <assets path="images/bg.png"/>
    I believe that you need to use the full path, like "images/bg.png"
  • m

    magnificent-fireman-89458

    02/09/2023, 5:04 PM
    ok
  • m

    magnificent-fireman-89458

    02/09/2023, 5:17 PM
    Error: Could not find asset path "images/bg.png"
  • m

    magnificent-fireman-89458

    02/09/2023, 5:17 PM
    ohhh i get it
  • r

    rhythmic-wolf-50922

    02/09/2023, 5:18 PM
    you need to replace images with whatever is in your project.xml file
  • m

    magnificent-fireman-89458

    02/09/2023, 6:31 PM
    what do you mean by that
  • r

    rhythmic-wolf-50922

    02/09/2023, 6:33 PM
    I assume that your bg.png file is not actually at images/bg.png. I just used that as an example. It might be assets/bg.png or something else instead.
1...394041...57Latest