Open external link in cocos2dx 3.0 - cocos2d-x

I am using
Application::getInstance()->openURL("www.google.com");
But it gives error that there is no method"opnURL".
Can anybody please help?

I am using the latest cocos2d version. This method works fine for me:
CCApplication::getInstance()->openURL("http://www.google.com");
Edit:
CCApplication is deprecated, so use:
Application::getInstance()->openURL("http://www.google.com");

I can't find that method on the Application class:
http://www.cocos2d-x.org/reference/native-cpp/V3.2/db/de2/classcocos2d_1_1_application.html
But you could read this reference:
http://discuss.cocos2d-x.org/t/opening-urls-in-external-browser/2642
And implement in a native code.

I don't know how old of a version you were working with but in the latest stable version, 3.5, that method is implemented and should work as expected.

Related

How to use flash() with session in cakephp 3.3

I'm beginner in programming, i use cakephp 3.3 version and i want to understand how to activate session and use in controller and how to send flash message like this:$this->session->flash('items was updated'). What line have to add to activate session and where, how to use correctly? Thanks!
https://www.google.co.nz/url?q=http://book.cakephp.org/2.0/en/core-libraries/components/sessions.html&sa=U&ved=0ahUKEwj8soeQ6N7QAhWGzbwKHTXsCuQQFggLMAA&sig2=Yi_7YH9XKwQ3sZvzd0kpeA&usg=AFQjCNGz10_vrov2Lw7bCkB5sgc2b8asOA
have a look on here
have you used setFlash in the controller and are you using the default layout??
have you also followed the blog tutorial i think that went over using flash messages ands its a great tutorial

parse4cn1 has some issue when working with Node JS and parse-server open source

The parse4cn1 library works well with parse.com but it has some issues when working with Node 4.3.2 and parse-server open source. For example, when calling the ParseUser.signup() function, the "Invalid key name" exception is always happened. I tried to debug and figure out that the ParseCommand object should add the ParseConstants.CONTENT_TYPE_JSON to its header in order to make it can work. I don't why because it still works without doing this with parse.com.
Another issue is the ParseQuery.find() is always failed when using the ParseQuery.whereContainedIn(). The server exception is "ParseException [code=102, msg=Improper encode of parameter, cause=null]". I guess this issue probably regarding the parameter has the json format in this case as well but I don't know to to resolve it. Any advice is appreciate. Sidiabale, do you have any advice? Thanks!
These problems are solved in version 3.0 of parse4cn1. Apparently, Parse Server is stricter with the need to specify the content-type header so code that previously worked with Parse.com does not work with Parse Server. I've addressed these issues in the aforementioned release. Try again with version 3.0 and let me know if you encounter any issues.

RFD ImageMagick Library installation with composer

I installed the RFD ImageMagick Library using
composer require rfd/imagemagick
I went through the readme and this is how they have done it
use Rfd\ImageMagick;
use Rfd\ImageMagick\CLI\OperationFactory();
use Rfd\ImageMagick\Image\File;
use Rfd\ImageMagick\Options\CommonOptions;
$im = new ImageMagick(new OperationFactory());
It throws Class 'Rfd\ImageMagick' not found error. But that error goes away when I do
use Rfd\ImageMagick\ImageMagick;
The statement below throws an error but works with the () at the end
use Rfd\ImageMagick\CLI\OperationFactory();
Now its giving OperationFactory not found error. I can't find that class anywhere in the install so I'm really confused! Any help would be really appreciated. I'm trying to generate PDF thumnail image previews using this library.
Thanks to emcconville, I contacted the author. This works
use Rfd\ImageMagick\ImageMagick;
use Rfd\ImageMagick\CLI\Operation\Factory as OperationFactory;

Issue in tagfield component in EXT 5.1

The Tagfield (Multi-select combobox) component throws error when I use grow, growMin and growMax configs in Extjs 5.1.
Please check the following links.
Working in Ext 5.1: https://fiddle.sencha.com/#fiddle/hcg
Not-Working in Ext 5.1: https://fiddle.sencha.com/#fiddle/hch
The same works fine in Extjs 5.0
Sencha apparently knew about this bug and it is already fixed in a nightly build according to this post: http://www.sencha.com/forum/showthread.php?296899

CCParticleSystemQuad not working in version 3.0 of cocos2d-x

I'm trying to port a game made using Cocos2d-X version 2, to the new version 3.0.
I found that CCParticleSystemQuad seems to be deprecated.
What can I use instead?
This is how I've been using it:
class ParticleCollision : public CCParticleSystemQuad
Thanks
The 'CC' prefix is deprecated for most classes. So CCParticleSystemQuad is now just ParticleSystemQuad, for example.
ParticleSystemQuad is not deprecated AFAIK. It's not in the deprecated list for the 3.1 rc0.
CCParticleSystemQuad was deprecated but v3.0, 3.1 implements a new Physics Engine
http://www.cocos2d-x.org/reference/native-cpp/V3.1rc0/db/dd9/classcocos2d_1_1_particle_system.html
It seems valid to me: http://www.cocos2d-x.org/reference/native-cpp/V3.1rc0/d5/d59/classcocos2d_1_1_particle_system_quad.html
The Release Notes mention it: https://github.com/cocos2d/cocos2d-x/blob/v3/docs/RELEASE_NOTES.md
It is not the 'CC' Prefix. Please note that, CCParticleSystemQuad is now changed to CCParticleSystem.
Please refer this for details: Cocos2D Forum CCParticleSystemQuad Missing?