Including library to my project
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Including library to my project
Hi All
I purchase library to share on facebook.
facebooklib
How can I include this library to my project to use functions of it?
I purchase library to share on facebook.
facebooklib
How can I include this library to my project to use functions of it?
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Including library to my project
Hi ali yehia,
Is facebooklib a phonegap plugin?
Simon
Is facebooklib a phonegap plugin?
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Including library to my project
Hi Simon
see it andregarzia.com/pages/en/facebooklib/
see it andregarzia.com/pages/en/facebooklib/
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Including library to my project
Hi ali yehia,
I see, just make facebooklib a substack of your main stack. When you want to use it you code "start using stack facebooklib".
Simon
I see, just make facebooklib a substack of your main stack. When you want to use it you code "start using stack facebooklib".
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Including library to my project
Hi Simon
I make it sub stack by copy codes in sub stack.
Is there away to import stack to your project?
I make it sub stack by copy codes in sub stack.
Is there away to import stack to your project?
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Including library to my project
Hi ali yehia,
You should check out these;
http://www.hyperactivesw.com/revscriptc ... ences.html
Simon
You should check out these;
http://www.hyperactivesw.com/revscriptc ... ences.html
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Including library to my project
Thanks Simon
It is like any project.
It is like any project.
Re: Including library to my project
Hi ali,
1. Open your project. Example "my_main_stack"
2. Open the library you want to include in your project.
3. Open the STACK inspector for that library stack
4. In the pop-up "mainstack" (Basic Properties) for the library stack, select the name of your mainstack -> "my_main_stack".
5. Save your project and that's it!
This way, a COPY of the library is now a substack of your mainstack.
Best
Klaus
this is one way, but not the most effective oneali yehia wrote:I make it sub stack by copy codes in sub stack.
Do like this:ali yehia wrote:Is there away to import stack to your project?
1. Open your project. Example "my_main_stack"
2. Open the library you want to include in your project.
3. Open the STACK inspector for that library stack
4. In the pop-up "mainstack" (Basic Properties) for the library stack, select the name of your mainstack -> "my_main_stack".
5. Save your project and that's it!
This way, a COPY of the library is now a substack of your mainstack.
Best
Klaus
Re: Including library to my project
Thanks Klaus
I did that.
I did that.
Re: Including library to my project
Hi All
Could you give me a link about "start using command"
The library does not work.
Could you give me a link about "start using command"
The library does not work.
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: Including library to my project
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: Including library to my project
I setup application on facebook developer and get ID
When I use ID, I get error "domain must be a sub domain of one of the app's domains".
I am running application on mobile.
Any one see this error before.
When I use ID, I get error "domain must be a sub domain of one of the app's domains".
I am running application on mobile.
Any one see this error before.
Re: Including library to my project
Klaus,Do like this:
1. Open your project. Example "my_main_stack"
2. Open the library you want to include in your project.
3. Open the STACK inspector for that library stack
4. In the pop-up "mainstack" (Basic Properties) for the library stack, select the name of your mainstack -> "my_main_stack".
5. Save your project and that's it!
This way, a COPY of the library is now a substack of your mainstack.
It's a couple of years ago so just wondering if you still consider this the best way to reuse code?
I assume you keep a master copy of the library somewhere independent of any project. What do you do if at some point in the future you want / need to change the library (maybe you've found a better way of doing something or have found a fault) and you have a copy of that library in many different projects? How do you keep track of which projects are using the library? Do you just reopen each project in turn and repeat your steps above?
Thanks,
Jim
Re: Including library to my project
Hi Jim,
I am unemployed since a couple of years, so no projects since then, but I would do it probably this way:
Klaus
I am unemployed since a couple of years, so no projects since then, but I would do it probably this way:
BestDo you just reopen each project in turn and repeat your steps above?
Klaus
Re: Including library to my project
Thanks Klaus. Very grateful for your help & advice as always. Hope things turn out well for you on the employment front.
Best wishes,
Jim
Best wishes,
Jim