Pages: [1]
  Print  
Author Topic: gaia path problem  (Read 480 times)
levani
Gaia Novice
*
Posts: 1


« on: September 10, 2011, 03:31:10 AM »

I have created a simple application using gaia framework but have some problem with the path. The html file generated by gaia and the swf files are located in the different directories so when I open the html in my browser I see white screen only...

Can anyone please help?
Logged
Nemo
Moderator
Gaia Addict
*****
Posts: 594


Freelancer for hire


WWW
« Reply #1 on: September 13, 2011, 12:49:11 PM »

What you need is to change that path. So what kind of help do you need?
Logged

!
znerolnoht
Gaia Novice
*
Posts: 6


« Reply #2 on: October 06, 2011, 03:12:26 PM »

I'm having a similar problem. I need the index file to be in a different directory then all of the swf. Here are my directories:

Test/index.html
Test/deploy/all the swf
Test/deploy/xml/site.xml
Test/deploy/js

I changed all the paths in the site.xml (example: <page id="index" src="deploy/index.swf"> )

and I changed the path in the main.swf.  siteXML = "deploy/xml/site.xml";

And I changed the path in the index.html
swfobject.embedSWF("deploy/main.swf", "flashcontent", "700", "300", "9.0.124", "deploy/expressInstall.swf", flashvars, params, attributes);

But this doesn't seem to work. I run the index.html and I get a totally blank page.

Here is the error I get
Gaia Framework (AS3) v3.2.6
site.xml path = deploy/xml/site.xml
[MovieClipAsset] DefaultPreloader: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2035: URL Not Found. URL: file:////Volumes/Client%20Work%201TB/Sheffield%20Company/Flash/IDR%20Intelligent%20Platform%20/Test%20/preload.swf"]

It looks like the preloaded isn't being loaded from the correct directory. But I can't fine where the heck to change this.
Can anyone help?
Thanks so much
« Last Edit: October 06, 2011, 03:16:43 PM by znerolnoht » Logged
undefinedman
Gaia User
**
Posts: 23


« Reply #3 on: October 09, 2011, 06:25:19 AM »

same problem here, does anyone have a solution for that?

it seems that content cannot find preloader.swf from root. Is there a baseURL property that I have to set up?? Or what...
Logged
undefinedman
Gaia User
**
Posts: 23


« Reply #4 on: October 09, 2011, 09:28:19 AM »

I have solved the problem with typing 'base: "http://mydomain.com"'  in flash params in swfObject, but I saw today that Gaia has problem to load HTML file when contains PHP..

Is there an option to around that?

If I put to home.html

<?php include("config.php"); ?>

then gaia cannot parse xml saying:

TypeError: Error #1095:

   at com.gaiaframework.assets::SEOAsset/parseCopy()
   at com.gaiaframework.assets::SEOAsset/onComplete()
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at flash.net::URLLoader/onComplete()
Logged
znerolnoht
Gaia Novice
*
Posts: 6


« Reply #5 on: October 09, 2011, 11:16:33 AM »

Thanks undefinedman

using the base param has worked in my situation.
I have a root directory that contains the index.html and a "deploy" directory that contains the swfs, xml, and js directories.

Below is my html

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Gaia Framework Site</title>
<script type="text/javascript" src="deploy/js/swfobject.js"></script>
<script type="text/javascript" src="deploy/js/swfaddress.js"></script>
<script type="text/javascript">
var params = {
quality: "high",
scale: "noscale",
wmode: "window",
allowscriptaccess: "always",
bgcolor: "#FFFFFF",
base: "deploy"
};
var flashvars = {
siteXML: "xml/site.xml"
};
var attributes = {
id: "flashcontent",
name: "flashcontent"
};
swfobject.embedSWF("deploy/main.swf", "flashcontent", "550", "400", "9.0.124", "deploy/expressInstall.swf", flashvars, params, attributes);
</script>
<style type="text/css">
/*hide from ie on mac\*/
#flashcontent {
width: 550px;
height: 400px;
}
/* end hide */
body {
margin: 0;
padding: 0;
background-color: #FFFFFF;
}
</style>
</head>
<body>
<div id="flashcontent">
<!--SEO-->
<div id="noflash">
<p><strong>You need to upgrade your Flash Player</strong></p>
<p>This is replaced by the Flash content.</p>
<p>Place your alternate content here and users without the Flash plugin or with
Javascript turned off will see this. Content here allows you to leave out <code>noscript</code>
tags. Include a link to <a href="index.html?detectflash=false">bypass the detection</a> if you wish.</p>
</div>
</div>
</body>
</html>

« Last Edit: October 09, 2011, 11:35:34 AM by znerolnoht » Logged
undefinedman
Gaia User
**
Posts: 23


« Reply #6 on: October 16, 2011, 02:12:14 AM »

can someone answer me on my previous post?

Problem is when I type php code for example to path <script src="<?=site_url?>/javascript/swfaddress.js" />
then Flash has problems to load html file, is it possible to around that?Huh?
Logged
Nemo
Moderator
Gaia Addict
*****
Posts: 594


Freelancer for hire


WWW
« Reply #7 on: October 16, 2011, 02:33:01 AM »

what is the result for   <?=site_url?> ?
is this php?

------------------------


I did not notice that you wrote that it was php

so it should be something like this ( you do not print your variable )

<?php print $site_url;  ?>
« Last Edit: October 16, 2011, 02:52:08 AM by Nemo » Logged

!
undefinedman
Gaia User
**
Posts: 23


« Reply #8 on: October 16, 2011, 01:12:35 PM »

Gaia Framework (AS3) v3.2.6
TypeError: Error #1095: { non english string }

   at com.gaiaframework.assets::SEOAsset/parseCopy()
   at com.gaiaframework.assets::SEOAsset/onComplete()
   at flash.events::EventDispatcher/dispatchEventFunction()
   at flash.events::EventDispatcher/dispatchEvent()
   at flash.net::URLLoader/onComplete()

unfortunately your method does not work too.. Flash cannot parse HTML file when there is a php code... and I am sad Sad
Logged
steven
Gaia Author
Administrator
Gaia Evangelist
*****
Posts: 3871


gaiaframework
WWW
« Reply #9 on: October 16, 2011, 01:17:22 PM »

I can imagine Flash's native XML parser might not like certain php (not certain as I haven't had issues in the past).

Make a non-php version of the page and set the page node seo="yournonphp.html".
Logged

Steven Sacks | Gaia Author
Please support Gaia by donating to the project!  Smiley
Ramiro
Moderator
Gaia Addict
*****
Posts: 861


interactive pragmatism


« Reply #10 on: October 16, 2011, 06:56:00 PM »

Flash cannot parse HTML file when there is a php code...

php code is server side stuff. There's no php code as such, once the server served the response back to you. There might be: bad syntax, wrong encoding, missing headers... I've never had problems with dynamically generated xml responses, with and without Gaia.
But for example, I did had a bizarre situation when flash could not read an FLV file from the server, even though it downloaded it correctly, but renaming that file to mp4 worked like charm. It ended up being a messup with the mime-type configuration of the web server...
In your case I would:
1. double check syntax
2. check the actual encoding, the encoding declarated in the xml and the encoding declarated in the response header match up.
3. check the headers for correct mime-type (or force it), size, not sure what else.


hehe, sorry I messed up with another topic from another forum! not sure if it fits your situation though, the response definitely wasn't for you Cheesy
« Last Edit: October 16, 2011, 06:57:37 PM by Ramiro » Logged
Pages: [1]
  Print  
 
Jump to:  

TinyPortal v1.0 beta 4 © Bloc