korbaach's Recent Forum Activity

  • My system used a lot of invisible text objects ....

    Merlandese

    I'm sorry I did not mentioned ..TextHeight&Text.Width don't work with invisible Text object...

    but.. as you see in capx ..I use "set opacity to 0" and it works just fine...

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If it was that easy for an application to bypass such an important server security then surely that would make the whole concept of CORS pointless, surely.

    It seams to me that you want to set CORS from C2...

    Yes

    ... that it was my intention...somehow "inject" CORS from C2...

  • .. in your example the intial array width is 0 and you use push back to create a "slot" and the expression"Set value at (ArrayPicked.Width-1, 1) to 1" to put the value, whic is great but, in my case, i already know how many slot i have in my invetory...

    I use " o width" and "push" because I dont know how meny slots you have in inventory...

  • I'm reading...I'm learning....

    I convinced myself that C2 has some kind of super power...

    i have Browser object and i have AJAX...

    so ..what is easier... than:

    On start of layout....Browser disable Same-origin policy

    Or

    On start of layout...Browser...-disable-web-security -–allow-file-access-from-files

    Thanks!

  • one Block.Sprite with 50 frames...?

    If mouse clicked on Palette-> spawn Block.Sprite

    ...................................................set frame to int(right(Palette.blockType,1)

    or something like that...

  • see.... if this helps you

    Example.capx

  • If you are fetching a server side scripted page, you could also just modify the request there by appending the header.

    NOT!!!!

    Sorry, I not following you..

    to try one more time.....is it possible in C2 (via Ajax,Browser executeJs,jQuery...)

    set Access-Control-Allow-Origin: *

    ...................is it possible to Browsers(Chrome,IE,FF,Opera..) to access data from some site in previw..

    (like NW.js):

    ..If Not..................Thank you very much!

    if Yes.....................and you want to help me..

    .................................................................................Please, Exacly How?(Screenshot & Capx)

    Thank You!

  • Thanks!

  • Ok..bqd@Magistross ...you you're talking about

    [quote:1xhz1v05]When Site A tries to fetch content from Site B, Site B can send an Access-Control-Allow-Origin response header to tell the browser that the content of this page is accessible to certain origins. (An origin is a domain, plus a scheme and port number.) By default, Site B's pages are not accessible to any other origin; using the Access-Control-Allow-Origin header opens a door for cross-origin access by specific requesting origins.

    this part..let's say...I understand

    But ..This part in Manual confuses me...

    If you want AJAX requests to your server to work from any domain, or in preview, you can configure it to send the following HTTP header:

    Access-Control-Allow-Origin: *

    This will enable AJAX requests from any domain....

    so..if i want Cors to work in preview(on localhost:50000)

    like this:

    What i need to configure?

  • Example:

    I manualy enable CORS in Browser

    result:

    If you want AJAX requests to your server to work from any domain, or in preview, you can configure it to send the following HTTP header:

    Access-Control-Allow-Origin: *

    This will enable AJAX requests from any domain....

    Please...can someone explain to me ...slowly... how to do this from C2?

  • I'm trying to detect line breaks in my text objects so I can dynamically alter dialogue box images.

    ... when the dialogue loads and wordwraps into the text object, the wrapping doesn't seem to create any sort of Newline indicator...

    Is there a way to count these automatic line breaks from the word wrap..?

    I think not

    ..but there may be an easier way to dynamically alter dialogue box images..

    with

    Example.capx

  • try :

korbaach's avatar

korbaach

Member since 9 Sep, 2014

Twitter
korbaach has 3 followers

Trophy Case

  • 10-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

12/44
How to earn trophies