We were having some weird issues with FLV files not loading either locally
or over the network or via a URL. We were able to discover that putting in
an abolute file path would work. Problem is when we test local verse over
network verse via URL the paths would be different. Thus I wrote a little JS
script that would return the absolute path to the current SWF no matter what
context. Then just append on any relative pathing. See below for script.
example:
= .fla =============================
//pull in full path name of FLV
var thisPath:String;
thisPath = String(flash.external.ExternalInterface.call("getThisPath"));
thisPath += "myFLV.flv";
==================================
I hope this is helpful.
= .js ==============================
function getThisPath(){
var thisPathName = location.pathname;
var tempArray = thisPathName.split("/");
var del = "/";
if(tempArray[0] == "http:"){
thisPathName = "";
} else {
del = "\\";
tempArray = thisPathName.split(del);
thisPathName = "";
if(tempArray[0] != "file:"){
thisPathName = "file://"
}
}
for(var n = 0; n < tempArray.length-1; n++){
thisPathName += tempArray[n] + del;
}
return thisPathName;
}
====================================
Charles P.
On 4/17/06, Thomas Wester <[EMAIL PROTECTED]> wrote:
>
> UNC: Universal Naming Convention: \\mysever\myshare\myfile.flv
>
> I've had problems with this and never found a solution/fix/workaround. I
> would love to hear if somebody has found a security setting that works.
> It used to work in Flash 7.
>
> -Thomas
>
> Thomas Wester
> Programmer
> www.secondstory.com
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of John
> Dowdell
> Sent: Monday, April 17, 2006 1:02 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] problems with unc paths in flash 8
>
> Scott Brantley wrote:
> > Does anyone have any idea how to get around Flash's new securities
> > when playing an flv over a UNC? It works just fine in Flash 7. So the
> > problem has to be with the new securities.
>
> "UNC" is undefined, and initial web searches decode it as "University of
> North Carolina" which I assume is not at issue here, so it's hard for me
> to answer directly.
>
> But I do know that for the answerable question "What changed with
> security in Flash Player 8?" that resources are available with search
> term "flash player 8 security". Full-domain-name matching is one of the
> frequent catches, if that context is of help in this case.
>
> jd
>
>
>
>
> --
> John Dowdell . Adobe Developer Support . San Francisco CA USA
> Weblog: http://weblogs.macromedia.com/jd
> Aggregator: http://weblogs.macromedia.com/mxna
> Technotes: http://www.macromedia.com/support/
> Spam killed my private email -- public record is best, thanks.
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com