solved - how to implement the in app purchase demo with Director Class

Hi I have done the test with the Itune Connect setup with the in app purchase demo.

But I can’t implement the code with my app. All the button of demo app is missing only those text is visible in screen.

I normally insert the button object into one of the Group under localGroup will be fine. But this time I don’t know where the put the insert. Because the demo code is too complicated for me.

Anyone can help on this.

Thanks in advance.

KC


Solved and here is why

The problem missing button was solved. Due to I’m using the different Ui.lua in my app. I was using the William Flagello’s Dynamic Scaling UI.lua. It is very useful.

Once you change the UI button parameter inside the “in app purchase code” like this, then it work fine in my app.

defaultSrc = buttonDefault,
defaultX = 200,
defaultY = 100,
overSrc = buttonOver,
overX = 200,
overY = 100,

I should check it more carefully before I ask. Hope share this also help others.

KC [import]uid: 94613 topic_id: 27362 reply_id: 327362[/import]

list your products in iTunes, buttons will appear with name of your products.

or read …/SampleCodes/Networking/InApp [import]uid: 153141 topic_id: 27362 reply_id: 111131[/import]

Hi Waqar Ahmed,
As I mention, I already done the test with in app purchase demo. Now my problem is how to implement with Director class.

Do you have any idea, why after implement director class all btn is gone?

KC [import]uid: 94613 topic_id: 27362 reply_id: 111194[/import]

Hi mycorona

just change the screen for IAP i’ve done the same thing and not facing such error it’s working fine with Director class

Waqar Ahmed Khan [import]uid: 153141 topic_id: 27362 reply_id: 111608[/import]