https://linen.dev logo
Join DiscordCommunities
Powered by
# openfl
  • w

    witty-island-52596

    12/19/2022, 6:26 PM
    html5
  • w

    witty-island-52596

    12/19/2022, 6:27 PM
    Copy code
    hx
    BitmapData.loadFromFile(getIconPath(size))
        // .onProgress((e)->{trace('ProgressEvent: ${e.toString()}');})
        .onError((e)->{trace('IOError: $e');})
        .onComplete(callback);
  • r

    rhythmic-wolf-50922

    12/19/2022, 6:27 PM
    have you checked the browser console for anything suspicious?
  • w

    witty-island-52596

    12/19/2022, 6:27 PM
    odd thing, onError is getting called with e=undefined
  • w

    witty-island-52596

    12/19/2022, 6:28 PM
    usually I get very visible CORS issues in the console, but nothing, here
  • w

    witty-island-52596

    12/19/2022, 6:29 PM
    by usually I mean, when i load other files. but I know that these files are meant to be loaded remotely
  • w

    witty-island-52596

    12/19/2022, 6:31 PM
    oh no wait that is happening
  • w

    witty-island-52596

    12/19/2022, 6:31 PM
    I thought it would show in the vsc console, but it's only in the browser
  • w

    witty-island-52596

    12/19/2022, 6:31 PM
    thanks for walking me through this
  • w

    witty-island-52596

    12/19/2022, 6:33 PM
    so I would add a SecurityError to check for this?
  • r

    rhythmic-wolf-50922

    12/19/2022, 6:34 PM
    not sure, but that's the event you'd need to listen for in Flash if crossdomain.xml could be missing, so it seems likely
  • a

    able-printer-41379

    12/20/2022, 10:18 PM
    how do i tell if a window is not enlarged
  • a

    able-printer-41379

    12/20/2022, 10:18 PM
    i tried using !maximized but didnt work for some reason
  • r

    rhythmic-caravan-3597

    12/21/2022, 3:52 PM
    Enlarged? Do you mean to check if it’s full screen?
  • r

    rhythmic-caravan-3597

    12/21/2022, 3:53 PM
    A bit confused on your wording
  • e

    elegant-twilight-61392

    12/21/2022, 4:00 PM
    they use the word they likely meant in the next message
  • e

    elegant-twilight-61392

    12/21/2022, 4:00 PM
    (maximized)
  • a

    able-printer-41379

    12/21/2022, 4:03 PM
    i meant maximized
  • r

    rhythmic-caravan-3597

    12/21/2022, 4:41 PM
    If you’re trying to see if something is maximized you could use the window class in lime.ui since it contains a maximized bool which will help you out
  • r

    rhythmic-caravan-3597

    12/21/2022, 4:42 PM
    not sure about OpenFL since I don’t use it much
  • r

    rhythmic-caravan-3597

    12/21/2022, 4:43 PM
    Oh yeah it just uses the window class from what I previously mentioned
  • r

    rhythmic-caravan-3597

    12/21/2022, 4:45 PM
    Ah, sorry I completely missed that my bad
  • a

    able-printer-41379

    12/21/2022, 4:51 PM
    Yeah, i used
    openfl.Lib.application.window
    (which extends lime window) 's maximized bool but whenever i click this the bool doesnt seem to change
  • a

    able-printer-41379

    12/21/2022, 4:53 PM
    ```hx if (!openfl.Lib.application.window.maximized || openfl.Lib.application.window.fullscreen) sprite.visible = false; else sprite.visible = true; ```in case you wonder what i need it for
  • h

    hallowed-ocean-84954

    12/21/2022, 4:55 PM
    Did you mean to check !max || fullscreen ? Or did you want neither of them to be true ?
  • r

    rhythmic-caravan-3597

    12/21/2022, 4:56 PM
    ^
  • a

    able-printer-41379

    12/21/2022, 4:58 PM
    wait is this the button that minimizes the window?
  • a

    able-printer-41379

    12/21/2022, 4:59 PM
    if so then whats the bool for this one?
  • e

    elegant-twilight-61392

    12/21/2022, 4:59 PM
    minimize, (un)maximize, close
  • r

    rhythmic-caravan-3597

    12/21/2022, 5:00 PM
    Maximize is the bool for this
1...242526...57Latest