Welcome, Guest. Please login or register.
Did you miss your activation email?
05/22/12, 18:17
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  Flash and AS 3 (Moderators: papachan, kofi addaquay)
| | |-+  Path/String
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Path/String  (Read 612 times)
Craig
Server what's that
*
Posts: 5


View Profile Email
« on: 02/28/11, 14:47 »

I have a question about paths in AS3. I'm loading a movie into the main page that connects to an xml in a different directory.  i.e. below;

var flashhappyXMLPath:String= "http://flashmoe.com/xml/blabla.php";
var xmlLoader:URLLoader;
var xmlPicgallery:XML;

Now it reads the contents of that directory but doesn't display the images in that directory. When I move the contents of the " xml dir" and the php,  to the main directory (aka) "public_html", make the necessary directory changes in the php as to the path  everything works fine. Since it was reading the contents of the xml directory but for some not displaying images I don't if this is a " path " problem or an AS problem some where else. Perhaps someone can shed some light on this for me I hope.


Thanks,
Craig
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #1 on: 02/28/11, 16:06 »

Hi Craig,

as with all other internet technologies, you can address files absolute, or relative.

If you use relative paths, they are relative to the position of the first swf, you are loading, or, if it is loaded via php file, relative to the php file position.

But you can allways address absolute.

In this case use http://servername/... addressing.

Most important is, if you start off with www for loading the initial page containing yout swf file, you should load the files with www prefix too.
Logged

happy flashing
Cool
Ronald
Craig
Server what's that
*
Posts: 5


View Profile Email
« Reply #2 on: 02/28/11, 19:55 »

Hi Ron,

Thanks for responding. As you can tell I'm an AS2 to AS3 convert in which I find having stroke would be probably easier to overcome. I've tried your advise to no avail. What I don't get is why the php would read the contents of the directory and not the images if it were a path issue. It would seem to me if it were a path issue it would be unable to read the contents but then again when I place everything in the same directory it works fine which leads me to believe it is a path issue. My design has turned into a 2 cigarette pack, bottle of Jack Daniels and prozac nightmare. If I uploaded the .fla and php could you take a peek?.
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #3 on: 03/01/11, 04:24 »

If you have a life link, I can have a look.

Are you using Charles?
Logged

happy flashing
Cool
Ronald
Craig
Server what's that
*
Posts: 5


View Profile Email
« Reply #4 on: 03/02/11, 05:52 »

Hi Ronald,

Sorry I didn't respond earlier. I played around with a bit further following your advice and got working. Thanks a million. I apologize for not updating you earlier. I had a dog go in for cancer surgery yesterday so I was in and out. Thanks again
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #5 on: 03/02/11, 08:11 »

dont worry.
Quite often we do not get any response for years Wink
But its good to hear, you got it solved.
Logged

happy flashing
Cool
Ronald
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything