| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
;)
Join Date: Aug 2006
Location: In transit--- Still bored
Posts: 1,705
|
Hello world.
This question I don’t know if must be in actionscript2 or server side-scripting. But I feel that this is the correct section. The problem is: I have a main.swf that loads askphp.swf and this askphp sendandload answer.php. Folder structure:
but I can’t find the way to get answer… in a textfield I’m getting "Error connecting to server." askphp.fla ActionScript Code:
PHP Code:
ActionScript Code:
__________________
http://www.pepemagana.com Last edited by 3pepe3; 08-03-2007 at 03:40 AM.. |
|
|
|
|
|
#2 |
|
;)
Join Date: Aug 2006
Location: In transit--- Still bored
Posts: 1,705
|
Well now I’m confused… I don’t know what was happening but now al is working
And what I have learned is that the SWFs loaded into another SWF will need to use the proper path for all the external information that they will need to load. The proper path will be relative to the original (main.swf) SWF and not the relative path of the loaded SWF. in this case 'phps/answer.php' was correct Hope this is helpful.
__________________
http://www.pepemagana.com |
|
|
|
|
|
|
|
|
#3 |
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,878
|
I think it is more correct to say that the path is relative to the main.html which embeds your main.swf file...
![]()
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer http://CyanBlue.FlashVacuum.com http://www.FlashVacuum.com http://tutorials.FlashVacuum.com Do NOT PM, Email or Call me... Your question belongs right in this forum...
|
|
|
|
|
|
#4 |
|
;)
Join Date: Aug 2006
Location: In transit--- Still bored
Posts: 1,705
|
you are right... Thanks for the correction (also it's more clear).
![]()
__________________
http://www.pepemagana.com |
|
|
|
|
|
#5 |
|
Super Moderator
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,878
|
My pleasure...
![]()
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer http://CyanBlue.FlashVacuum.com http://www.FlashVacuum.com http://tutorials.FlashVacuum.com Do NOT PM, Email or Call me... Your question belongs right in this forum...
|
|
|
|
|
|
#6 |
|
;)
Join Date: Aug 2006
Location: In transit--- Still bored
Posts: 1,705
|
path from php:
http://www.actionscript.org/forums/s...d=1#post639756
__________________
http://www.pepemagana.com |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why everyone hates (or should hate!) mircosoft | stealthelephant | General Chat | 102 | 11-28-2008 10:02 PM |
| relative path to SWF in loadMovie() is relative to HTML page not the parent SWF | danielito540@hotmail.com | ActionScript 2.0 | 11 | 08-21-2008 01:49 PM |
| .sol files in a specified path | manikk | ActionScript 2.0 | 0 | 06-18-2007 08:09 AM |
| Dynamically change base (relative) path | antiflash | ActionScript 2.0 | 2 | 09-27-2005 12:21 AM |
| relative path names, classes, screens | atomicjoe | ActionScript 2.0 | 0 | 07-20-2004 05:00 PM |