ActionScript 2.0 :: SendAndLoad Relative Vs Absolute Path

Feb 19, 2009

I'm attempting to use a relative path with SendAndLoad to my php query page named variables.php. Things seem to work just fine when I reference variables.php using an absolute path [URL], but variables are being returned as undefined when I attempt to call the page using just "variables.php." To add complexity, the swf is being referenced in an included page which is wrapped inside another page.

I know the path needs to be relative to the html/php page, not the swf itself. But what if the html page where the swf is encoded is actually being called from within another wrapper? I'm assuming the path needs to be relative to the final page, regardless. My guess is that the php isn't being parsed correctly when called via the relative path, which is the cause of my problem. Can anyone provide any insight? /dir/media/myflash.swf is called by /includes/myincludedswf.php which is then called by /home/final page.php if variables.php resides in the home directory, shouldn't I be able to use the path "variables.php" in the SendAndLoad directive?

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Passing Relative Url In Flash (or) Absolute Path Vs Relative Path

Jul 6, 2009

I am new to Flash and ActionScript 3.0 environment. I don't have any knowledge in depth with Flash and ActionScript 3.0. I am using the flash(.swf file) in my Java application. Now, this .swf file is to be placed in the server system. While I am working with these, I faced an error. Here, my issue/problem(s) starts....

1.)With the help of URLRequest & URLLoader classes, I am loading a jpg file dynamically onto the stage using the following code:

[Code]...

View 1 Replies

ActionScript 3.0 :: Root Relative Path Vs Absolute Path?

Nov 9, 2011

This is a head scratcher. Why would a root relative path cause a Security Sandbox error.. but an absolute path to the exact same path work fine..

[Code]...

View 0 Replies

Difference Between Absolute Path And Relative Path?

Apr 30, 2011

What does _level0,_parent and _root mean in flash?What's the difference between absolute path and relative path?

View 1 Replies

ActionScript 3.0 :: Relative And Absolute Path?

Jun 21, 2010

I have doubt about relative and absolute path. I mostly use relative path to load xml, sound and image Is there any problem with cross domain policy?Which one is better in web projects?

View 1 Replies

Relative/Absolute Link In Posting F4V File To The Web?

Jun 12, 2009

I am working in Flash CS4.  I have successfully run a .wmv file through the Media Encoder, converted it to a f4v file, imported it into Flash, and published it with a skin to a folder on my hard drive.I am learning this on my own (no one else in my state agency knows Flash - we are just getting started with posting videos on the Internet, and this is the test case).I get the following four files in one folder on my hard drive (I have put in parentheses what I think the files do, please correct if I am wrong):
 
oil.f4v (the movie file)

Test.html (the html page in which the swf file is embedded to play back the movie)

Test.swf (the swf file that is embedded in the html page)

SkinUnderPlayStopSeekMuteVol.swf (the skin file that is linked to from the Test.swf file??)
 
My question is:  As long as these four files stay in the original folder, the html page plays the movie perfectly.  As soon as I rename the folder, nothing works.  It appears to be a question of re-establishing a relative/absolute link among the files? I want to post these to my live site in order to test, but of course that won't work yet either.

View 9 Replies

Automatic Absolute To Relative Paths Conversion?

Jul 15, 2009

I have a bunch of Flash (.fla) files where I need to convert all absolute (root) target paths in timeline scripts to relevant relative ones. Doing it manually in Flash CS4 is very tedious work and using "replace" action is tedious too as there are multiple nested timelines. Is there any way to automate this task?

View 4 Replies

Actionscript :: Convert A Relative URL To An Absolute URL In Flex

Jan 5, 2010

I am working with Flex, and I need to take a relative URL source property and convert it to an absolute URL before loading it.

The specific case I am working with involves tweaking SoundEffect's load method. I need to determine if a file will be loaded from the local file system or over the network from looking at the source property, and the easiest way I've found to do this is to generate the absolute URL.

I'm having trouble generating the absolute URL for sound effect in particular. Here were my initial thoughts, which haven't worked.

Look for the DisplayObject that the Sound Effect targets, and use its loaderInfo property. The target is null when the SoundEffect loads, so this doesn't work.
Look at FlexGlobals.topLevelApplication, at the url or loaderInfo properties. Neither of these are set, however. Look at the FlexGlobals.topLevelApplication.systemManager.loaderInfo. This was also not set.

The SoundEffect.as code basically boils down to

var url:String = "mySound.mp3";
/*>> I'd like to convert the URL to absolute form here and tweak it as necessary <<*/
var req:URLRequest = new URLRequest(url);
var loader:Loader = new Loader();
loader.load(req);

I would also be perfectly satisfied with some way to tell whether the url will be loaded from the local file system or over the network. Looking at an absolute URL it would just be easy to look at the prefix, like file:// or http://.

View 1 Replies

ActionScript 2.0 :: Relative Or Absolute Adressing [fmx 2004]?

Apr 26, 2004

Im a bit confused about the adressing of .swf-files loaded into levels of another .swf-file.The adressing seem to be absolute, ie. if a sub.swf (which is loaded into a super.swf from another location) uses some sort of adressing (for instance, loading an image), that adress must include the path from the super.swf.

Cant you change that somehow, so that sub.swf's can adress other stuff relatively to its own adress?

Can you do that globally (so that relative adressing is used by every .swf)?Can you set it individually, so that adressing is relative only from the specified swf's?

View 9 Replies

ActionScript 2.0 :: FileReference.download Must Take Absolute URL (not Relative)?

Feb 9, 2007

Im using this code

[Code]...

However, it doesn't work. It works when I put the full absolute address, instead of simply "images/img1.jpg" . Is there any way to use a relative address?!?!? Probably attach the relative address to the URL property?

View 3 Replies

Xml :: Difference Between Fixed Path And Relative Path?

Apr 8, 2011

I am displaying some flash content on a fairly standard page. This works really well when the flash, xml file and html page are sitting together in the same directory.url...However, I want to display that same content in another page which is deeper inside the site but outside of the directory that houses the .swf and .xml files as well as the assets.[code]The js files are loading properly but the flash content is not, so I could use a little help getting that sorted out.

View 1 Replies

ActionScript 2.0 :: Way To Have An Absolute Path

Oct 3, 2005

Is there a way to have an absolute path? such as, "C:/myMusic/song.mp3". The movie is going to be on a webpage.

View 4 Replies

Actionscript :: Get Absolute Path Of My Swf File In It?

Aug 17, 2009

I would like to get the absolute path of my swf file from within Actionscript.[code]...

View 1 Replies

Flex :: Getting An Absolute Local Path?

Oct 9, 2010

I looked around, and the latest reference I saw was from 2008 stating that the standard FileReference browser does not support retrieving the user's file's absolute local path unless it's an AIR app, and indeed there's nothing in the docs suggesting otherwise. The reasoning behind this is apparently some misguided security concern... I get it's not a great idea to let any Flash app know your directory structure, but if the user actually grants your app a file, I think it doesn't invalidate the security model to know just that file's absolute path.

I'm wondering if the state of things has changed at all with Flex 4 and there's a method of getting the local filename of anything. I need it because I'm making an application that when distributed runs locally in 99% of cases, so doing a full file upload just to save it somewhere else on the local machine seems silly. (Plus the standard file uploading method doesn't support SOAP, which is what I'm using for all my other services...)

View 2 Replies

ActionScript 3.0 :: Absolute Path To Filesystem In XML?

Mar 10, 2009

I think I know the answer to this one already, but am looking for any workaround or solution (php??)

I have a AS3 .swf that will be hosted on a client machine running from a web server and viewed in a browser.

It loads a list of images, etc from xml and then displays them. Fine. The problem is, the client wants to be able to put absolute file/network paths in the xml eg: file://filepath or \Serverpathetc....

View 1 Replies

Actionscript :: IDE - Pull In Absolute Path

Dec 22, 2009

I have a flash file that is pulling in images from a folder and a .txt for text content. The code for the .txt file:

[Code]...

It cannot find it? What am I missing I can't figure out how to get this to work, and I want absolute paths. I'm sure it's really simple, I just can't figure this out.

View 1 Replies

Changing The Link Path To Absolute Between The Index.swf And 1.swf, 2.swf?

Mar 24, 2010

im trying to embed an swf file in facebook. To cut the story short, the swf im trying to embed is loaded fine but stops at preloader stage (0% of 1) and is not progessing as if it has missing link and couldnt locate something (the files struscture is one main swf file; index.swf loads other 5 swf),But, when i tried to load it up directly from browser, it works fine. I have been advised that changing the link path to absolute between the index.swf and 1.swf, 2.swf etc would solve the problem.

My questions will be:

-how do i change this path, because i couldnt seem to find any link that reflects the connection between those files?

-Is there any feature in flash that would be able to show this link rather than diggin up every symbol?

-If changing the path wouldnt solve the problem, what could be the reason this error is happening?.

View 1 Replies

ActionScript 3.0 :: Loading External SWF Using Absolute Path?

Feb 27, 2011

I am having trouble loading an external swf on a server using the absolute path. This external swf uses webcam streams and is loaded in the original swf file using the URL request code. I can load other swfs but just not that one. I have set the permission of the external swf to allow write/read/execute

//Loads the augmented SWF into the main timeline.
var request:URLRequest = new URLRequest("http://www.reminisce.me/files/jz_AR.swf");
var loader:Loader = new Loader()

[code]......

View 1 Replies

ActionScript 3.0 :: Absolute Path To File Via FileReference?

Sep 8, 2011

I am wanting to allow a user to select an image from their computer to use as a BG. FileReference does this job well, however it does not provide the absolute path to the selected file.
 
I want the selected BG to stay in their "save" (local SharedObject cookie) so that it can be loaded the next time they come back. But since FileReference only provides me with the filename, I'm not sure how to go about storing this information for later. I could, I suppose, store the image data into the cookie directly, but that would be terribly inefficient since many BG images are rather large for a cookie.
 
how I can go about finding the image file path that the user selected, or efficiently saving the image they chose?

View 1 Replies

Web Development :: Easiest Way To Get The Absolute Path Of Directory From Browser?

Dec 8, 2009

I allow my users to upload files from a directory. I use SWFUpload so that they can upload multiple files easily. However, I need to get the absolute path of the directory from which they are uploading.A little research tells me that it can't be done in plain HTML/Javascript or in Flash.Java applets seem to support this, so that's what I'm planning on using. I guess ActiveX can also do it, but I don't know much about ActiveX stuff, so I would rather avoid it.Also, I can assume that the users are using Windows (XP or greater) and IE.It there an easier way (other than writing a Java applet) that I'm missing? Having the user type in the directory into a textfield is an option, but not a very good one.

View 1 Replies

ActionScript 2.0 :: Load Image From Disk With An Absolute Path?

Jan 19, 2012

I first hope this is not a duplicated thread. I saw several related ones but none that match exactly my case.

I try to dynamically load an image from the disk into a clip. It works well when I use relative paths but doesn't whith absolute paths. [code]...

View 1 Replies

JavaScript :: Define Absolute Path Of XML / Images Folder And Main SWF?

Apr 26, 2010

<script type="text/javascript">
var flashvars = {};
var params = {};
var attributes = {};
swfobject.embedSWF("loader.swf", "flash-banner", "920", "320", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
</script>

After loading loader.swf I'm getting this error Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

This is folder structure.
loader.swf
main.swf
main.xml
images
1.jpg
2.jpg
3.jpg

View 1 Replies

Professional :: Position Elements Relative To Other Elements Or In Absolute Values?

Jan 26, 2010

Is it generally to position elements relative to other elements or in absolute values?

View 2 Replies

Professional :: SWF, HTML Files Only Work When Absolute Path Is Entered Not On Index Page?

Jan 24, 2011

I have a strange problem: When I type the absolute URL to my SWF file it works fine; however, only the background image appears when the SWF is embedded in the home page.

View 3 Replies

ActionScript 3.0 :: Can't Use A Relative Path

Jul 14, 2009

In my flash project, I make a call to an xml file using url... and it works fine as long as the userhas entered url... in the url. If the user enters url...without the www my xml file wont load.I can't use a relative path here because I share the widget on other sites. Any ideas, how I can let both users that enter the www and no www see the widget load properly ?

View 3 Replies

ActionScript 3.0 :: Relative Path To SWC?

Nov 6, 2009

I can't seem to get an FLA to properly import a SWC folder using a relative path to the project.

View 1 Replies

Relative Path To Video Not Working?

Jun 2, 2009

I am having trouble getting a relative path to my video to work.It plays when I link to the video on the server or when I use the absolute path from my hard drive but I need this to play on someone els's computer so looking to enter a realtive path but then the video fails. I am using AS3 CS4. I used to do this using AS2 CS3 so something must have changed.

View 3 Replies

Way To Change Relative Path Flash Uses?

May 27, 2010

So I just found out the hard way that the path that Flash uses to load external content is based on the HTML it is embedded in, not the SWF itself. This is a problem for me because I have the HTML generated from a PHP file that is in a folder below the SWF. The PHP has other dependencies that would break if I moved it into the same folder as the SWF.So basically now my dev testing and web versions are separated by a folder.Is there a way to change the relative path Flash uses? Or am I going to have to hack things up?

View 1 Replies

Html :: Why Is The Relative Path Not Finding The Swf

Jul 26, 2011

I have this url and in the middle I have this embed link

[Code]...

But for some reason the flash doesnt pull up. I have the banner.swf in the /images folder as you can see with this link what am i missing

View 2 Replies

Actionscript 3.0 :: Relative Path SWF Loading?

Jan 14, 2009

create a flash viewer, which will load various other flash movies. The viewer will be in the root directory, but the flash movies it will load are a few directories deep. Those movies access various sound clips that are in an audio directory relative to each swf I want to load.

/flashViewer.swf
/myContent/someProgram/program.swf
/myContent/someProgram/audio/sound1.wav

It seems that when I load one of these movies into my viewer, the loaded movie is looking for the sounds in an audio folder in the root directory, and not relative to the swf I loaded. Is there a way to set this? I would rather not have to make the changes in each of my other movies to use the absolute path

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved