ActionScript 3.0 :: Give An Application Folder FullControl Access By Code (Flash)?
Jul 17, 2010
i finished air application and it is need a local permission for the installed folder ( C:Program FilesAppName ) as i am generate xml ( desktopFileStream.writeUTFBytes(newXMLStr); ) from the application and its need local permission.first time i run the application i got ( error 3001 indicates a file or directory permissions issue ); when adjusted the permission for the current user ( manually ) to fullcontrol, its work great and perfect. how to give my application folder FullControl access by code ( AS3Flash )? as i can't ask each user to give my app folder manual permission.
I dont know if its the right forum for my post or not. But I need to ask if there is anyway to show the folder structure of a clients PC in flash when the user clicks on a browse button in a web site just like the one below? I googled for a "Multiple File Uploader using flash" but what I found there is that an open file window opens and we are able to select multiple files from it. I could not found anything like below. So my question is that whether we will be able toshow all the folder structure or not?
As stupid as my question might sound, i have spent the last 2 weeks reading oop books; but could use some guidance. I have a flash project that is basically a supped up slide show. On the stage i have the following: main_mc (instance name = images_mc) = movieclip which holds "pictures" ui1 (instance name = ui1_mc) = user interface that allows user to draw on picture (when drawing is enabled) ui2 (instance name = ui2_mc) = activates invisible hit areas (buttons) on select pics, when hit area is clicked, we jump to another pic in the main_mc.
I accomplished all of this on the timeline, but am updating the code to OOP. I am having A HELL OF A TIME trying to figure out how to store references to the instances (images_mc etc..), so i can control them from varying class files. I have found it is easy to control the instances from the documentclass, but not from unrelated class files. Example: images_mc.stop(); works in document class; but ovieclip(Parent).images_mc.stop() doesn't seem to work from any class file.(ui2 class file for example);
I've got various flash files stored on my server. For this example - here is the directory structure:
Files > Example > -> example.swf -> example.xml
So then on a separate webpage stored in the root of my server.. I'm embedding the flash. <param name="movie" value="[URL]"> Now the issue comes. Because the .swf is trying to access example.xml ... which is NOT stored in the root directory.
I have a flash player which play mp3 files from xml. at now mp3 files are downloadable with software like internet download manager. if i move mp3 files to out of www and change xml location attribute to '../mp3filename.mp3' player can not play mp3. my question are
1) flash file can access files out of root folder
2) what is best way to protect files from download?
I am using a local computer and will only be running the flash app on locals. I want users to have access to a gallery which I built with xml and to be able to add to the gallery. I thought I could do it with an append child to the xml but flash cant write to file. I was going to use filereference and then save the file in the flash folder and add the new object to the xml file, but this is the wrong route.
When i put a movieclip on the stage, every time i do that, i have to click on it, press f9 (to show the movieclip actions pannel) and past a code on it... and i will use this movielcip a lot of times in my project, so, everytime i put it on the stage i have to put the code on it again... is there a way to attribute the same code to my movieclip (automatically) everytime i put my mc on the stage?
I am creating an offline Flash Application which takes the user's photograph and stores it into a designated folder.My problem is how can i Store the photographs WITHOUT using any server side languages. (As its a standalone offline application).I know about the JPEGencoder classes and all.I can't use FileRefrence because it asks the user where he wants to store the image while i want to save the image in a pre-defined folder automatically.
how the editors work. Which will be the best way to read the code and then give the user one simple UI? I am thinking of using charCodeAt(num) == "{"? But would it be possible for me to read the code? give me example of how editors 'read' the data or point me some issues that i can look through.
I am not able to use fillColor and corner radius in spark. I want to use the mx components(halo) properties both in halo and spark application. Can any one of you help me in using fillColor and Corner radius in both flex 3.0 and Flash 4.0
I'm using the following addlistener to listen for a custom event the event works if i put e.Event in the functions parameter but i don't get the passed variables however if i go into the .as folder where the dispatch originates and put EventType in the parmeters field of the function then i get all the variables.........but if i put EventType instead of e.Event in the first example then I get undefined for EventType.....how do give access to EventType?
We have an application that works no problems on our server with FMS in test mode. As soon as we enter our FMS license key we get this error: "application is not a valid signed application loading access denied".We removed the license key and it works again, but with user limits obviously, so this is not an acceptable fix.
I did an application here to record the user's webcam and store an .FLV at my applications folder. That's ok. But I want to retrive this .FLV using HTTP mode, to load the .FLV progressively, not by streaming. Got it? For example, if I record a user webcam called "myWebcam": myVideoClass.load("[URL]"); Using http (progressively), not rtmpt (streaming). There is some way to do that? Or to move the file from applications folder to webroot?
I'll ONLY recieve an "Error #3000: Illegal path name" if I try to open a file which is placed inside the app-folder of the air. If the file is somewhere else outside of the app-folder it works.
private var file:File = File.documentsDirectory; public function download():void{ var pdfFilter:FileFilter = new FileFilter("PDF Files", "*.pdf");
[Code]....
When i try to get the same file and copy it to another place it's doing fine.
Why that? Something special to do if i wanna open files which are inside the appfolder? It also don't work in debug mode - bin-debug.
I'm building an AIR application which will be used to edit slideshows for another app (also built by me, but not in AIR). The slideshows and other data are defined in several xml files which are in the other application's program folder. When trying to load these into my AIR app I get the following error:
fault(mx.messaging.messages::ErrorMessage)#0 body = "" clientId = "DirectHTTPChannel0"
i am trying to create a flash movie for my browser page. i am able to import and export the movie just fine, the problem comes after i export the movie. As long as i leave the flash file in the folder it was created in things work great. If i try to move the folder or rename the folder it stops working. It acts like it cant find the flv file i created the flash with. if i rename or move the folder back where it was created things work fine.
Just a single button that will call an action script. That action script will call
private var m_MicCnx:NetConnection; //connection over the server private var m_MicStream:NetStream; //Audio Output private var m_Microphone:Microphone; //micro, attach with m_MicStream's audio content
[code]....
I think this is the most simple setup I can get that will publish a microphone to a RTMP stream. This is an attempt to shave down a larger product. This demo will help a third party create a RTMP Stream Reader for mp3.How do I move from this snippet of code to a flash application? Most tutorials I've found so far were either about using menus or creating very complex animations. I just need a single button that will call this, or maybe an auto-load.
i have situation in which i have some library projects, say
"DataProcessors","Lib2"
, included in my lets say "MainProject" (a web project) placed on directory
"E:in-debugMainProject.swf"
, when i build the project it automatically place all the libs .swf in its "E:in-debug" folder, but when i debug or run the project it it gives loading error that
I am creating an autorun exe file. Basically the CD is filled with markering materials. What I need to know is how to get Flash to open a folder on the CD so the viewer can pick from what is in side the folder.
I'm trying to play with live web cam using asp.net with C#. I want to access/stream web cam content using flash then send the captured streams using Real-time Transport Protocol.
Actually I am the application is for recoeding live stream. The recorded videos are placing in the folder named live_test as specififed above.But I want to change this path. There is a folder named public in the root directory. In the "public" folder we have a folder named Recorded_Videos, I need to place the recorded videos on this folder. How can I do this.Another issue that occurs while recording is NetStream.Record.noAccess. This is occuring while the recorded video is placing on client's flash media server with the path that i specified above. But when i running it in the local flash media server(developer version), its working well. The recorded files are placed on live_test folder. In the client's server the stream is not recording, instead its showing an error like "NetStream.Record.noAccess". The code that I am using for recording live stream is follows:
stop(); var nc = new NetConnection();var CommPage = 'http://68.233.8.57/videos/destination';System.security.allowDomain(CommPage);
Due to reasons beyond my control, I need to be able to open an xml file located in a different folder on the same branch of the tree on a Windows client. The paths for the files are known; see example below.
Source Folder/File - D:mediasourcemovie.swf Data Folder/FIle - D:mediadatadata.xml
Source Folder - This is the folder & file where the swf is located & executed from.Data Folder/File - This is the folder & file for the XML data file.How would I reference the XML data file path in AS2 to be executed by my source SWF?
I am using a while() loop which does its job as soon as I fetch CDATA content from XML. The while() loop basically contains text conversions using replaceText()... Depending on the number of user defined XML nodes, the while loop executes. I see that the flash application hangs for 3 or 4 seconds when this execution happens.
I am having problems accessing my xml on the server. On my local drive, it works fine. As soon as I load it on my site, it no longer pulls the xml rss feed.
Here is the working example, to get it to work, I had to copy the feed into an xml file, and place it in my fla root folder[code]...
Now I know I'm not the only one seeking the ability to write a snazzy little Flash Application for SIP access. I am, however, the only one willing to start a neat little open source project to help, people like me, use SIP to its full potential.
So here it goes, I'd like (and hope) to write a SIP client for two projects. The first is a for-profit endeavor for the company I work for, and the second is a not-really-for-profit webservice I own that would have its customers benefit from on-site VoIP call. Since they both require the same thing, I'm willing to open it up as an open source project to allow it to continue growing.
I am trying to get my Flex application to authenticate with google using the instructions here:Url...I have copied the example there and am trying to get it to work. I am running my app on a loca server so I have changed the next parameter: authSubParams['next'] =UrL...Getting the first token works fine but when I try to get the long lived token I get an error: [code]