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

    orange-van-60470

    01/05/2023, 6:23 PM
    I had a look in the google one and there are a few swfs like updater that maybe tricky. The simplest option for AIR might actually be to create a loader in as3 and load your haxe in. Lot of fiddling with application domains but I have done it quite a few times it the past
  • o

    orange-van-60470

    01/05/2023, 6:24 PM
    I have no idea on creating an air app I used to have some hxml that would call mxmlc against an xml file and sign etc..
  • o

    orange-van-60470

    01/05/2023, 6:25 PM
    but with air no longer under adobe no idea on changes and if still have that approach or where to get flex compiler
  • o

    orange-van-60470

    01/05/2023, 6:25 PM
    I would avoid AIR ?
  • r

    rhythmic-wolf-50922

    01/05/2023, 6:34 PM
    The AIR SDK has come with its own compiler for many years, so if you aren't building a Flex app, you don't need the Flex compiler.
  • r

    rhythmic-wolf-50922

    01/05/2023, 6:36 PM
    A Haxe SWF can be used with AIR with no special loaders or application domain stuff required
  • r

    refined-cat-44047

    01/05/2023, 8:24 PM
    Yeah, using Haxe to produce AIR apps is actually quite nice, and gives you quite a lot of features. It is just a bit annoying that the externs are out of date.
  • w

    wooden-electrician-3929

    01/05/2023, 11:27 PM
    Anyone using IAP extension?
  • w

    wooden-electrician-3929

    01/06/2023, 12:27 AM
    https://github.com/HaxeExtension/extension-iap/issues/63
  • a

    ambitious-knife-25690

    01/06/2023, 12:35 AM
    lol, i read the title and thought this was a scam link in the discord 😆
  • w

    wooden-electrician-3929

    01/06/2023, 12:43 AM
    😄
  • w

    wooden-electrician-3929

    01/06/2023, 1:00 AM
    https://github.com/HaxeExtension/extension-iap/pull/65
  • w

    wooden-electrician-3929

    01/06/2023, 8:00 PM
    https://github.com/HaxeExtension/extension-iap/issues/66
  • e

    enough-lawyer-1858

    01/07/2023, 2:04 AM
    I recently noticed that whenever I used a Sprite with filters applied, it would give me a lot of memory when I start scaling the Sprite to a bigger size! is there a way to scale the sprite without having this issue?
  • h

    hallowed-ocean-84954

    01/09/2023, 12:32 AM
    I'm trying to do a repeating texture in openfl - I'm using Context3D.createRectangleTexture(). I am trying to figure out how to do a repeating texture. Basically something like :
    Copy code
    _gl.texParameteri(_gl.TEXTURE_2D, _gl.TEXTURE_WRAP_S, _gl.REPEAT);
                _gl.texParameteri(_gl.TEXTURE_2D, _gl.TEXTURE_WRAP_T, _gl.REPEAT);
  • h

    hallowed-ocean-84954

    01/09/2023, 12:32 AM
    any ideas ?
  • h

    hallowed-ocean-84954

    01/09/2023, 1:02 AM
    ok found it after use()ing the program set the sampler state
    Copy code
    _context.setSamplerStateAt(0, REPEAT, NEAREST, MIPNONE);
    What's odd is that these are supposed to be the default settings - but it works when you set it explicitly
  • r

    rich-horse-51130

    01/09/2023, 9:11 PM
    how do I read the bytes from a ByteArray 😭
  • r

    rich-horse-51130

    01/09/2023, 9:11 PM
    https://api.haxe.org/flash/utils/ByteArray.html theres not much here that really helps
  • r

    rhythmic-wolf-50922

    01/09/2023, 9:12 PM
    readByte(), readShort(), readInt(), readDouble(), readFloat(), etc...
  • r

    rich-horse-51130

    01/09/2023, 9:12 PM
    theres this of course but i dont get how it works because its not documented gahh
  • r

    rhythmic-wolf-50922

    01/09/2023, 9:12 PM
    https://api.openfl.org/openfl/utils/ByteArray.html
  • r

    rhythmic-wolf-50922

    01/09/2023, 9:13 PM
    change flash to openfl in the URL
  • r

    rich-horse-51130

    01/09/2023, 9:13 PM
    my browser is rebelling mmm
  • r

    rich-horse-51130

    01/09/2023, 9:14 PM
    ahh you forgot to replace api.haxe.org with api.openfl.org
  • r

    rich-horse-51130

    01/09/2023, 9:15 PM
    yeah im on the syte now great
  • r

    rhythmic-wolf-50922

    01/09/2023, 9:15 PM
    oh, I didn't realize you were looking on the wrong site.
  • r

    rich-horse-51130

    01/09/2023, 9:16 PM
    its odd you can convert haxe.io.Bytes to a ByteArray but not the other way around, which is about what I wanna do
  • r

    rich-horse-51130

    01/09/2023, 9:20 PM
    actually now that i have proper documentation and source i could probably more or less reverse this process i think? something along the lines of that should be possible
  • r

    rich-horse-51130

    01/09/2023, 9:21 PM
    ill try go on from here, thanks for your help! :)
1...282930...57Latest