Matus
June 10, 2016, 3:28pm
1
I want to know if it’s possible to insert to existing project another project
or how to connect 2 projects into one ?
Regards,
Matus
MarkHunte
(Mark Hunte)
June 10, 2016, 4:53pm
2
Can you tell us more about what you are doing that you need to do this.
There are ways to call other project scenes
I’m defintely missing something when doing this. I can’t seem to get a button in my Document1.html to link to Document2.html. Not sure what I’m doing wrong. Seems like such a simple thing and it’s doing my head in.
thanks for the classification Daniel.
Now I assume that I can’t link two projects with control over the related timelines through URL. I can’t do it with the standar code of Hype.
I must erase the cache after some heavy shenes and some 3d panoramas in widget ( mades with Panotour pro) and the splitting of the project seems a good solution.
Note: I don’t use Phonegap, I’ve installed the Cordova library in Xcode for the IOS version. The project works fine.
For the Android/win version I use X…
You probably can find more with a search.
Matus
June 10, 2016, 5:16pm
3
@MarkHunte I have in one Hype project created menu (navigation)
and I want to link that to project where I’ve created homepage.
function mainSceneLoad_externa (hypeDocument, element, event) {
if (window.donescene == true)
return;
window.donescene = true;
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++)
{
var pair = vars[i].split("=");
if (pair[0] == "scene") {
hypeDocument.showSceneNamed(pair[1], hypeDocument.kSceneTransitionInstant);
return;
}
}
With this code you can load a specific scene of another project
Update
After another research I’ve found this old post with a (seems not work) solution made by Charles M .
index.html?scene=SceneName?
I’ve modified the javascript and now the script seems to works fine.
function mainSceneLoad_externa (hypeDocument, element, event) {
if (window.donescene == true)
return;
window.donescene = true;
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++)
{
var pair = vars[i].split("=");…