cranberrygame's Forum Posts

  • all phonegap related plugins were move to one thread, go to

  • renamed from Square Board to Grid

  • all phonegap related plugins were move to one thread, go to

  • all phonegap related plugins were move to one thread, go to

  • all phonegap related plugins were move to one thread, go to

  • all phonegap related plugins were move to one thread, go to

  • 1.

    it already works.

    in phonepag build zip file, include config.xml which have the following plugin use description tag

    <widget,,,

    ,,,

    <gap:plugin name="org.apache.cordova.camera" version="0.2.9" />

    ...

    </widget>

    2.

    and as for the plugin use description tag

    <widget,,,

    ,,,

    <gap:plugin name="com.cranberrygame.phonegap.plugin.storepage" version="1.0.0" />

    ...

    </widget>

    this plugin (com.cranberrygame.phonegap.plugin.storepage) is only for wp8 Open store page phonepag build service i.e. for android app this doesn't be needed

    thanks

  • jdbastardy

    c2 free edition is not allowed to be export to mobile.

    but c2 free version is allowed to be exported to windows8 and wp8.

    so you can use this to windows8 and wp8 export with c2 free version.

    (https://www.scirra.com/store/construct-2)

    thanks

  • updated 2014.5.20 - now support phonegap3.x and phonegap build service.

    thanks

  • it wasn't c2 bug

    it was caused by the 'alert' action

    thanks

  • Ajax plugin with Group!! doesn't work properly on Windows Phone 8 simulator (or IE)

    Link to .capx file (required!):

    https://dl.dropboxusercontent.com/u/186 ... r164-2.zip (bug_report_20140315_r164-2_2_ajax+group_bug.capx)

    Steps to reproduce:

    1. Create a new project.

    2. Add Ajax plugin

    3. Add event: On "" completed

    4. Add action: Browser.Alert "completed"

    5. Add action: Browser.Alert "message1: repeated forever when Group exists"

    6. Add action: Browser.Alert "message2"

    7. Add Group

    7. Add Button plugin

    8. Add event: On clicked

    9. Add action: AJAX.Request level001.json

    10. Export project-Windows Phone 8 (or Run layout with Preview browser=Internet Explorer)

    11. Test the project on Windows Phone 8 simulator (or Run layout with Preview browser=Internet Explorer)

    12. Click Button

    Observed result:

    If click the button, show "message1: repeated forever when Group exists" alert forever.

    Expected result:

    Alert "completed"

    Alert "message1: repeated forever when Group exists"

    Alert "message2"

    Browsers affected:

    Chrome: no

    Firefox: no

    Internet Explorer: yes

    Operating system & service pack:

    Windows8.1

    Microsoft Visual Studio Express 2012 for Windows Phone

    IE 11

    Construct 2 version:

    R164-2

    ===============================================

    bug fix in event sheet

    => put "System.Wait 0.1 seconds" at AJAX.On "" completed's first line when IE (windowsphone8)

    see bug_report_20140315_r164-2_3_ajax+group_bug fix in event sheet.capx

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • modification at C:\Program Files\Construct 2\exporters\html5\plugins\ajax\runtime.js

    makes local!!! file ajax in wp8 works well. (commented 6 //cranberrygame comments)

    this code snippet is for previous issue

    thanks

    ...

    try

    {

    //request = new XMLHttpRequest();//cranberrygame (1/6)

    request = new ActiveXObject("Microsoft.XMLHTTP");//cranberrygame (2/6)

    request.onreadystatechange = function()

    {

    if (request.readyState === 4)

    {

    self.curTag = tag_;

    if (request.responseText)

    self.lastData = request.responseText.replace(/\r\n/g, "\n"); // fix windows style line endings

    else

    self.lastData = "";

    if (request.status >= 400)

    self.runtime.trigger(cr.plugins_.AJAX.prototype.cnds.OnError, self);

    else

    {

    // In node-webkit, don't trigger 'on success' with empty string if file not found

    if (!isNodeWebkit || self.lastData.length)

    self.runtime.trigger(cr.plugins_.AJAX.prototype.cnds.OnComplete, self);

    }

    }

    };

    //request.onerror = errorFunc;//cranberrygame (3/6)

    //request.ontimeout = errorFunc;//cranberrygame (4/6)

    //request.onabort = errorFunc;//cranberrygame (5/6)

    //request["onprogress"] = progressFunc;//cranberrygame (6/6)

    request.open(method_, url_);

    // Workaround for CocoonJS bug: property exists but is not settable

    try {

    request.responseType = "text";

    } catch (e) {}

    if (method_ === "POST" && data_)

    {

    if (request["setRequestHeader"])

    {

    request["setRequestHeader"]("Content-Type", "application/x-www-form-urlencoded");

    }

    request.send(data_);

    }

    else

    request.send();

    }

    catch (e)

    {

    errorFunc();

    }

    ...

  • thanks for your kind guide.

  • Ajax plugin (XMLHttpRequest) can't load local file, because XMLHttpRequest only works for retrieving network resources. i.e. You cannot use it to access content from your applications local storage, i.e. XAP or IsolatedStorage.

    http://social.msdn.microsoft.com/Forums ... =wpdevelop

    1.please reconsider local!!! file ajax issue in wp8

    ajax-plugin-doesn-t-work-properly-on-windows-phone-8-simulat_t97280

    2.helpful link for resolving this issue

    XMLHttpRequest only works for retrieving network resources. i.e. You cannot use it to access content from your applications local storage, i.e. XAP or IsolatedStorage.

    http://stackoverflow.com/questions/1980 ... -html5-app

    Accessing local file with Ajax on Windows phone 8

    Resolved by adding isLocal:true in the ajax request

    $.ajax({

    url: "page.html",

    dataType: "html",

    async: false, // Otherwise Android 2.2 doesn't show menu

    isLocal: true, // Or Windows Phone will say "Access is denied" to ajax request

    success: function(html) {

    //success code!

    }

    });

    http://stackoverflow.com/questions/1567 ... ws-phone-8

    I'm trying to load templates in WP8 PhoneGap app using jQuery.ajax with options isLocal=true and url="x-wmapp0:www/path/to/file.html". When I use jQuery 1.* all works fine. But using jQuery 2.* ajax returns an error "Error: Access is denied." It is because ajax in 1.* in IE works using window.ActiveXObject("Microsoft.XMLHTTP"). But in 2.* it is use XMLHttpRequest.

    https://issues.apache.org/jira/browse/CB-5003

    Add WP8 support for xhr requests to local files

    https://github.com/enyojs/enyo/pull/234

  • Ajax plugin doesn't work properly on Windows Phone 8 simulator

    Link to .capx file (required!):

    https://dl.dropboxusercontent.com/u/186 ... 6_r163.zip

    Steps to reproduce:

    1. Create a new project.

    2. Add Ajax plugin

    3. Add event: On "" completed

    4. Add action: Browser.Alert "completed"

    5. Add event: On "" error

    6. Add action: Browser.Alert "error"

    7. Add Button plugin

    8. Add event: On clicked

    9. Add action: AJAX.Request level001.json

    10. Export project-Windows Phone 8

    11. Test the project on Windows Phone 8 simulator

    12. Click Button

    Observed result:

    If click the button, show error message (Alert "error")

    Expected result:

    Alert "completed"

    Browsers affected:

    Chrome: no

    Firefox: no

    Internet Explorer: no

    It's working on browser.

    Operating system & service pack:

    Windows8.1

    Microsoft Visual Studio Express 2012 for Windows Phone

    Construct 2 version:

    R163