Xml :: Load XML From Outside Web Directory On The Local Server?
Jan 26, 2010
Is it possible for flash to access data from outside of the root directory of the server it resides.i.e.
Root directory = /var/www/httpdocs
SWF = /var/www/httpdocs/flash/file.swf
XML = /var/www/xml/file.xml
View 1 Replies
Similar Posts:
Aug 23, 2011
I would like to select a specific xml file to load from a local directory. The file name is composed of "Title" + "number sequence". I know the Title (in this case its XLink07), but I need to select the latest number sequence or the latest by date stamp.
For example, the local directory has the following files:
XLink01[36735298100].xml
XLink02[36735298100].xml
XLink02[36735298101].xml
XLink07[36735298100].xml
XLink07[36735298101].xml
In this example I need to select file XLink07[XXXXXXXXXXX].xml where XXXXXXXXXXX is the highest number within the XLink07[XXXXXXXXXXX].xml files. Title is Xlink07 and function should return Number sequence [36735298101]. Files with higher number sequence have later date stamps than files with lower number sequences. I need to select the highest number or the latest date stamp for the file that begins with XLink07.
My action script to load the local .xml file without any function to select the correct file is:
Security.allowDomain("*", "*")
var xmlLoader:URLLoader = new URLLoader();
xmlLoader.load(new URLRequest("XLink07[36735298101].xml"));
xmlLoader.addEventListener(Event.COMPLETE, showXML);
function showXML(e:Event):void {
[Code] .....
View 1 Replies
Oct 24, 2011
I try to upload file from local system to web server.My application is desktop application and I work with php server.Find below my code
In flex
var dropfiles:Array = evt.clipboard.getData(ClipboardFormats.FILE_LIST_FORMAT) as Array;
for each (var file:File in dropfiles){
var fileFormat:String = file.extension;
var fileUrl:String = file.url;
[code]....
With those code message "Error #2044: Unhandled IOErrorEvent:" appear on flex.
View 1 Replies
Mar 22, 2011
I'm writing a Flash-based video player which simply plays FLV videos. A filename is passed in via a flashvar. Presently, this is achieved with the following function:
[Code]...
A video is grabbed and then added to the stage, with a player skin overlaid. However, what I want to do is load a video from the file system (the same server the SWF is deployed to) rather than fetching a video from a URL. Reading the documentation for the source property tells me it will only accept URLs. The reason I want to read from the file system is because these videos will be stored outside the root of the server. For example, a standard Apache set-up:
[Code]....
View 2 Replies
Jun 28, 2011
I am currently using filereference in as3 to load a file from the users local disk and display instantly within a loader on the stage. This works fine but i am now needing to load files that are already stored on a server not the local disk, is this possible?
I have tried loading the url into a loader object but this takes far too long if the image is quite big where is filereference is almost instant.
My current code is:
Code:
var mFileReference:FileReference;
browseButton.addEventListener(MouseEvent.CLICK, onBrowseButtonClicked);
function onBrowseButtonClicked(event:MouseEvent):void {
[Code]....
Is there anyway i can take out the browse and selected stages and just load the server based image?
View 3 Replies
May 26, 2010
Is there still really no way to use the Flash Player, whether embedded in a web page or as a projector, to record video files to a local directory on a user's computer?I understand that this is potentially a security nightmare, but I thought Adobe had worked around those issues.
View 2 Replies
Oct 12, 2009
I've been asked to write an app where I have to get the user to select a local directory, scan that directory for all images inside and then upload these images to the web. After a few hours of searching the only way that seems like it could be possible is with the use of an AIR application rather than just a flash application.
View 3 Replies
Jun 13, 2010
Trying to make a button that links to a image in a local directory, but am having no luck. What i want to happen is: User Clicks a Thumbnail (as a button)> Button then opens a new window in the browser where the full-sized image is displayed ( i have the full-sized image on file, its not on the web)
View 4 Replies
Jan 7, 2012
I'm developing a game add-on/plugin which replaces a built in feature of an online game. The game loads an .swf therefore, my solution also has to be an swf for it to work 'in-game'.
I would like to be able to have the user press a button in the custom .swf I am making - and this would open an external application (amongst other things). I.e. if there was a button that said Notepad, it would open Notepad.exe on the machine.
My initial thinking was that i could have a XML Socket server 'daemon' runnning (c#) , which i could connect to with flash - however, as both the swf and the daemon are local, flash complained and gave this error: "Error #2010: Local-with-filesystem SWF files are not permitted to use sockets."
The only way i know to fix this - is to change the security settings of flash - not very user friendly!
So! Any thoughts on how I could otherwise go about this? I was thinking a custom http server could do the trick (connected with URLRequest) although i'm not too sure.
View 1 Replies
Sep 1, 2011
in the standard embed code:
[Code].....
the player "FlashMediaPlayback" is loaded from remote ftp adobe server.
How can I load the player from my local machine?
View 1 Replies
Jul 21, 2011
I managed to make a local streaming (connection) to the server,by seting the FME at rtmp://localhost(or my IP)/live.But now i want to make a non local streaming.
View 2 Replies
Jun 1, 2011
while im installing FMS,it goes wrong,i pasted the sceen below.My Os:FC14_X86.
Proceed with the installation? (y/n/q): y
/opt/adobe/fms ~/FMS_4_0_0_r1121
Server:fms command:stop
sed: -e expression #1, char 6: unknown option to `s'
[code]....
View 8 Replies
Jun 1, 2011
My company has recently asked me to install the Adobe Streaming Server 4.0.I was wondering if it is possible to have the server software reside on the C: drive, while having my VOD files on seperate D: drive.The staff here wants to separate the software (server in this instance) from the individual flash video files, so they have set up two drives.
View 2 Replies
Dec 14, 2011
I am testing fms this days, I have put all my files(such as 1.mp3,2.mp3...n.mp3) in my directory.I can play single file fine with url like this: rtmp://localhost/mp3/mp3:x/2
but i want to know is there any way to play all files in my direcotry? for example, user click the play button, the player(smp) automatic plays all files in the directory, link windows media server.Should I use playlist? Or there is another better way?
View 1 Replies
May 14, 2008
I am developing our company website and I have come across a small stumbling block!I have searched out a few other threads that mention this issue, but none have yet resolved iAnyway, I have an XML gallery that I want to host in a sub directory on my server(/gallery/...) - now when I publish the SWF using the below code, it seems as though it loads the XML, but the XML cannot find the correct path to the images themselves.My XML file, the images and the gallery SWF are all in the same directory (/gallery) and are called upon externally from a SWF at the root.> portfolio.swf > /gallery/gallery.swf > /gallery/images.xml > /gallery/image-1.jpgHere is an image of the error message...Here is my XML file...
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
[code].....
View 8 Replies
Mar 30, 2010
I can stream files in the root of a NAS drive (/nas_dir), but not in any of the sub folders (/nas_dir/sub/). FMS has read/write permission to all the files on the NAS but all i get is "stream not found" when I access anything in the sub folders (streams play fine from the root of the NAS) FMS is running on rh5.4
View 1 Replies
Sep 28, 2010
I want to change the logs files directory from: C:Program Files (x86)AdobeFlash Media Server 3.5/logs to: D:fmsLogs in adobe in: Home / Flash Media Server 3.5 Configuration and Administration Guide / XML configuration files reference it says:
[Code]...
View 1 Replies
Dec 7, 2011
getting started with the FMS Interactive 4.5 In the documentation it says to turn off proxying to apache on port 8134 and use port 80 in order for http dynamic and http live streaming to work properly. Since I changed Apache conf to use port 80 I assume my video root will be under webroot/vod, webroot/dvrcast_origin, etc, right?I don't see the dvrcast_origin or livepkgr folders under the webroot though. Do I just need to copy them under webroot for it work properly?
View 1 Replies
Mar 24, 2008
I'm pretty new to Flash VOD, exploring using a FMIS as a substitute for an existing vbrick systems' server. One thing that I'll need to do is authenticate users against an LDAP directory. Basically, the implementation will need to embed a Flash media player in a web page, the page also sets the server URI and stream name for the player. The player would need to ask the user for a username/password, and the server would need to make some determination about whether the user is authorized to receive the specified stream.
The advertising on Adobe's site for FMIS talks about LDAP, but on closer inspection it seems as though there's no real LDAP implementation. Instead, it seems as though there's a framework that allows for the development of an LDAP service. Is this the correct understanding? and if so, are there are any third-party plugins available commercially to handle LDAP? And if there aren't any commercial products, are there are any good resources for getting started developing one?
[Code]...
View 1 Replies
Jun 15, 2010
I am running Flash Media Streaming Server 3.5.1 r516 on a CentOS system. I also have WHM/cPanel installed on this system. My scenario is this. We have a large number of MP4 media files that are currently located in a web root directory created by cPanel: /home/mediafa/public_html/fullservices. These all work without a problem when doing progressive downloads. However, we also want to make them streamable with FMS as well. From the documentation, I should be able to create an entry in the /<fms install dir>/applications/vod/Application.xml file to look up files in that folder.
Here is my VirtualDirectory block:
<StreamManager><VirtualDirectory>
<!-- Specifies application specific virtual directory mapping for recorded streams.-->
<Streams>/;/home/mediafa/public_html/fullservices</Streams>
<Streams>/;${VOD_COMMON_DIR}</Streams>
<Streams>/;${VOD_DIR}</Streams>
</VirtualDirectory></StreamManager>
However, when I try to connect to a file that is in that directory, I get a 404 error in the access.00.log file. I've tried to change the owner/group on the fullservices folder as well as the owner/group of the target file to the fms user/group, but I still cannot connect to it. The connection address is rtmp://<ipAddress>/vod/mp4:1005-03m_256k.mp4.
View 1 Replies
Nov 16, 2010
Using RecursiveDirectoryIterator of PHP i am able to create directory tree and can even flatten it using RecursiveIteratorIterator class , but I want to create directory tree structure which TREE component of flex understands . The following is an array structure in php which flex understands.
array('label'=>'rootDirectory','children'=>array(array('label'=>'subFolder1','children'=>array(array('label'=>'file.jpg'))),array('label'=>'EmtptyFolder','children'=>array())));
create the whole directory structure at server side into the above array format.
View 1 Replies
Nov 16, 2009
When I upload file using a simple uploader the file does not appear on the servers directory..Everything is working, the preloader the status text etc, as if it is uploading the file but nothing appears on the server I am not very sound in php The code goes like this:-
Code:
Select allSystem.security.allowDomain("http://localhost/");
//import the FileReference Object
import flash.net.FileReference;
//initial settings - since no upload file type selet yet user cannot upload a file
uploadButn.enabled = false;
//create a new FileReference object
var fileRef:FileReference = new FileReference();
[Code] .....
I have given a folder called uploads on the server and that is where files are supposed to come. Also I have given the correct name of php file which is upload.php in the fileRef.upload But its not working.
View 1 Replies
Jun 24, 2011
Anyway what im trying to achieve is - AS reads a directory on a server lets say, it contains 10 images, this would create movie clips for each one and assign them to array "pockets"(im not sure if you can do this in AS, you can in PHP and JS so I'd expect so) then I'd use a repetitive function to manipulate each one of those images.
View 2 Replies
Feb 9, 2010
When I have a class linked to a MovieClip in my library and that class takes an argument in its constructor method. That class will compile properly ONLY when it's located in my top-level directory (same dir as the .fla and Document.as files). If I move that class to a deeper directory, say com.place, and update the package statement and symbol link appropriately, the compiler will generate error "1136: Incorrect number of arguments. Expected 0."Create flash project and put a rectangle on the stage. Covert it to symbol and assign it to class TestPanel - or whatever you choose. Also configure the fla so that is uses a Document (Main) class.Create Main.as and TestPanel.as in the same folder. In the Main class, instantiate a instance of TestPanel and add it to the stage. Flash will, predictably, add the rectangle symbol and everything is fine.Now modify TestPanel so that its constructor method takes a Number and have Main.as pass some number to TestPanel.[code]You now get the error: 1136: Incorrect number of arguments.Expected 0.When I move the TestPanel.as into a deeper directory, Flash somehow is looking elsewhere for the base class for Symbol, even though I'm mapping that Symbol to com.place.TestPanel.
View 4 Replies
Nov 8, 2010
I have this function that loads an specific .log file:
function loadTracks():void {
tracksLoader.load(new URLRequest("/Users/Me/127.0.0.1,"+_logNum+".log"));
}
The logNum variable gets its value, writing it by hand in a separate text file, avoiding to open and editing the .fla each time the new .log has a different name:
logNumLoader.load(new URLRequest("/Users/Me/trackLogNum.txt"));
Some application creates in each session a new .log file with this file name pattern: 127.0.0.1,NUMBER.log // Being NUMBER the 5 digit changing part of the name, each time a new .log file is created. The newer the file, the higher this value is. how to make this script to autoload the last .log file, as it has the highest value in its name.
View 1 Replies
Oct 1, 2009
I've looked at FileReferenceList and see how to get a list of files from the user's computer. This should work OK for my needs, but what I'd really like to do is have the user drag a directory from their desktop onto the app and iterate through the files. Is this possible or is FileReferenceList the best/only option?
View 3 Replies
May 10, 2011
ok so on my stage (blank) when i load up the swf i want it to load up a directory of images from the hard drive/server and place them randomly on the stage within a border.then to go one further and have them clickable and open up bigger to be able to see it.im having trouble getting it to load a full directory of images in let alone have them selectable.
View 2 Replies
Sep 16, 2009
I have successfully been able to write some client-side ActionScript that allows me to record my webcam and mic data to my FMS server. The .flv files get saved to a directory under the applications directory. However, I need to process those flv files for a web application and would like those .flv files to be saved to the web app's directory (outside of the FMS application directory). I have tried changing the <Streams> tag in the Application.xml file that I placed in the FMS application directory, but that simply did not work.My goal is simple: to save the recorded stream data outside of the FMS application's directory. I have been going crazy trying to do this, but would like to know any pointers that any of you experts have. Can this be done? If not, how can I execute a server side PHP script after the stream is done recording. I know about using the exec() function in PHP, but am unsure as to how to execute that script via client-side actionscript.Here is the path to my FMS server (Linux OS) installation and the application directory. The application name is "ngale"./opt/adobe/fms/applications/ngaleHere is the path that my client-side ActionScript is placing the .flv files of the recorded streams/opt/adobe/fms/applications/ngale/streams/recordings/Here is the path to my web application/home/user/public_html/dev.ngale.net/public/Here is the path that I would like for the .flv recording files to be saved to/home/user/public_html/dev.ngale.net/public/audio/.flv
View 5 Replies
May 6, 2011
I have a Flex application that just load an external SWF, but the application load and unload infinitely my swf.
[Code]...
View 2 Replies
Aug 12, 2009
I need the main.asc file to return the current directory listing to a flash application.
[Code]...
View 1 Replies