Javascript :: Doesn't Run When Loading File From Local Disk On Android?
Jun 2, 2011
While trying to develop some Android app I ran into the following problem:I load an swf file to a WebView, that makes js calls. I want to catch those js calls, so I useWebViews.addJavascriptInterface() to do so.Everything worked just fine when i loaded the swf file from a remote server, but when I load the same swf file form the Android file system, the javascript methods seem not to run (at least I cannot see them).
View 1 Replies
Similar Posts:
Aug 20, 2010
Im not sure if this is possible in AS2 but i will ask anyway! Would it be possible to have a standalone SWF which gives the user the ability to browse their computer files and then load a picture for example? I know this can be done in AIR but im restricted to AS2 only!
View 1 Replies
Feb 22, 2004
I want to do a stand alone application in wich you can select a mp3 from local disk with Flash MX. I've been searching for a function or a method who allows to open a "browser window" or to have a string with the filenames but I haven't find nothing. I also have searched for an argument for fscommand but nothing. Does someone know if some function exists in javascript to give a string with the filenames of a folder? And in this case, how to integrate it in actionscript? I know that I can use a explorer to do that with javascript, but I need to do it without browsers.
View 3 Replies
Sep 28, 2010
I am a developer in Web Flash Game.(I use AS3.0) I want to save and load the swf-file to a local disk of any user,Because I want to decrease the time for loading a flash movie from site.Is it possible?If it is possible, I hope the swf-file has only one loading from site and it will be loaded from a local disk of any user after that. (I know a concept of Internet temporary file. I want to know the other techniques of only using AS3.0.)
View 3 Replies
Apr 8, 2010
I would like to play AAC audio format file from local disk. I got example to play through netstreaming but I need to play it from local disk. I got an example to play mp3 file from local disk using Sound class.URL...
View 1 Replies
Jan 19, 2011
We have a Web login feature. We will offer Free calls to a large campaign.
Scenarios:
Because of free calls, we will offer a unique file to be downloaded and stored After a week or month we will call them and offer them our desktop application to scan and see how trusted, the user is If we dont find the same file again, we will never start business and more our own statistics Based on that report we want to do some follow ups campaign We can do this with cookies but we want user experience and trust analysis
Example: if you play a music in youtube.com, without notice your file is actually in /tmp/Flash....flv with lot of data on it.
Question: How can i do the similar using Flex/Flash from the web browser ?
View 2 Replies
Mar 12, 2011
I have a HTML box and load a local html file from the project. In this HTML file I use jquery and I want to load an image from my user directory. I see the image from my user directory but jquery doesn't works. I get this error:
[Code]...
But if I load an image from the app workspace, everything works fine (I see the image and Jquery works). Is this a policy problem? The error says that is a "null object reference" problem, but this can't be true...
View 2 Replies
May 2, 2011
I have an HTML file which contains a Flash .FLV player; which then loads a given FLV video and plays it. The idea is all these files are stored locally on the PC as part of an application install, we use HTML/flash for the help/manual. On my PC it works fine but on a user's PC nothing is displayed. However if I host the exact same file-structure online and give them the URL, it works perfectly.
I am guessing this is a security issue of some sort but have no idea how to address it. The browser being used is actually a XULRunner app, i.e it's the FireFox 3 engine but not actually FF. Since my PC isa developer PC it's entirely possible I've done something in the past on another project that makes it work, rather than my PC being special in some way. For reference the HTML has the following in it - this is generated from some 3rd-party app:
[Code]...
View 1 Replies
Jul 26, 2011
I've posted this in the AS3 forum, but I was told its supposed to go here...I need to know if it is possible to do this in AS2...
Code:
w w w.kirupa.com/developer/as3/loading_files_disk_pg2.htm
(cannot add links... since I have less than 50 posts)
[code].....
View 5 Replies
Jan 19, 2010
I would like to save a webcam captured video to the local disk using AS. The application is running in a standalone Flashplayer 10. I can save pictures from ByteArrays using file.save, but I can't find a way for doing this with video. There is a nice implementation for that using AS and AIR at http:[url]...I don't want to have to install AIR before running the app.
View 2 Replies
Feb 22, 2011
I am currently an English teacher and I am familiar with programming in DOT.Net platform. I am completely new to Flash. I turned to this platform because I thought that would be the best way to prepare interactive computer based exams in English. My real problem is, I don't have the slightest idea as to how I can create a Flash application which records the sound through the microphone and saves it on the local disk.
View 1 Replies
May 11, 2004
Is it possible to use flash to record from a microphone to local disk? I mean audio from a user - using local shared object or something?
View 1 Replies
May 11, 2004
Is it possible to use flash to record from a microphone to local disk? I mean audio from a user - using local shared object or something?
View 1 Replies
Jun 14, 2004
I need to save data to the local disk and then load it back up again as required. I'm using a local shared object to save data to and this works fine. Getting it back out again seems less straightforward. This is the code I'm using:
//Saving
myLocal_so = sharedobject.getLocal("flashcookie","/");
datastring = "anyoldstuff";//sample data to save
myLocal_so.data.savegame = datastring;
myLocal_so.flush();
//Loading
myLoadVars = new LoadVars();
myLoadVars = myLocal_so.data.savegame;
myLoadVars.onLoad = function(success) {
if (success) {loadgame = myLocal_so.data.savegame;
trace (myLocal_so.data.savegame);
} else {trace ("Error!");}}
Nothing appears to happen at all. The program continues with no traced output at all.
View 3 Replies
May 21, 2011
I am developing an application for android 3.0 tablet, that's supposed to play swf files inside a WebView.First I tried to open the swf file from the device, than through the internet, with no luck.The WebView shows up, but inside the WebView all I can see is a black screen (with a 3-4 px wide white line on the right).If I load the same URL to the device browser, the flash file plays well.I think Im missing something on the WebView setup, but after a few hours of searching and googling I still dont know what.The Java code:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEA
[code].....
View 3 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
Jun 14, 2011
I got the code
var mic:Microphone = Microphone.getMicrophone();
mic.setUseEchoSuppression(true);
mic.setLoopBack(true);
when I browse thru adobe documentation for microphone access. But I could not find a way to record the sound and save it in the local drive.How to store the sound in local drive???
View 2 Replies
Nov 14, 2011
I got a very nice article to load files from local disk to flash movie directly.
article link : [URL]
i want to do same thing using as2.0
View 8 Replies
Nov 7, 2011
how to store data local hard disk in flash applications
View 1 Replies
May 14, 2010
Is it possible to script a flash application to search the local hard disk to display txt files and or jpgs? I would like to be able to enter some text in an input text field then have flash search my hard drive for what i typed into the txt field.
View 3 Replies
Feb 23, 2010
Is there any hook to react to a user drag and dropping a text file onto a browser? If the user drops a text file onto the browser with my page loaded, I'd like to be able to open the contents of the text file using javascript. I don't think this is possible, but just checking.
Is something like this possible in flash?
As an alternate, the user could specify a file path for me, then I could open the text file and read it. Seems like this is a security risk and probably won't be allowed, but just checking. It looks like this is possible with flash 10?
View 5 Replies
Feb 9, 2011
How would one go about caching / managing many large files (videos) on a user's computer via browser mechanisms (plugins are acceptable solutions). From what I can tell, local storage is about database type data, not files.
View 2 Replies
Mar 16, 2011
I have implemented an Augmented Reality application on Adobe Air for Android. When I publish my app on the android mobile phone (Nexus One) the 3D models that I have created don't appear on the screen.On flash CS5 it is working fine.I have used Away3DLite engine and I have imported a 3D collada object.I have also tried to publish some projects that I found online and I checked if the the 3D model appears on the screen but it doesn't show it either. how the 3D Models that I have imported in my project using Away3DLite can be visible when I publish the application on the android phone. Some extra stuff be usefull: I'm using GPU rendering.A also using a combination of the following softwares in order to create my AR application:
FLARToolkit
FLARManager
Away3DLite
I have created one 3D Model on 3DS MAX and another one on Maya 2010.
View 1 Replies
Jul 30, 2003
Is it possible to pass the contents of an array to JavaScript code which then creates a text file on the local machine?
View 10 Replies
Jun 25, 2009
I'm having a problem loading a local xml file into my swf. My ultimate goal is to parse the xml file into a list of guests attending a party. Here is the code I have:
Code:
var loader:URLLoader;
function loadXML():void
{
[Code]....
As you can see, the first trace statement outputs the xml file with the tags and all. The second trace statement outputs nothing. I did try uploading the xml file to a server, and then using [URL] as the URL for the URLRequest, but that didn't work either.
View 2 Replies
Jan 3, 2007
In my Flash application, the SWF file is located on a serverand is downloaded to clients in a controlled network. I want to beable to load XML data located on the client machines into the SWFfile. It looks like security settings is not allowing thi tohappen, as the local files are treated as a separate sandbox.If I were to use System.security.allowDomain, how do Ipecify local files? It's not a domain or URL. Or is there another way to do this? I'm wading through thesecurity information, but I haven't found the solution yet.
View 5 Replies
Dec 6, 2009
i'm pretty new to flex 3 but it's really cool so far. now in the center of the screen when i try to load an swf file using the SWFLoader object i get the following error:
Error #2044: Unhandled securityError:. text=Error #2140: Security sandbox violation: file:///C:/Users/ufk/Documents/Flex%20Builder%203/GamePage/bin-debug/GamePage.swf cannot load file:///C:/Users/ufk/Documents/Flex%20Builder%203/GamePage/bin-debug/crazy_counting.swf. Local-with-filesystem and local-with-networking SWF files cannot load each other.
[Code]...
View 4 Replies
Nov 15, 2010
How would you defer loading of other graphics on the page until after the images in a Flash gallery's images.xml file are finished loading?Is there any way to detect for this, or would I only be able to check if the flash swf object is finished loading? I'm pretty sure the swf object would be loaded/ready as with document.getElementById('flashobject').onload = function(){}; before the corresponding images have loaded though, instead of after.
View 1 Replies
Sep 15, 2010
I'm looking for a flash uploader that doesn't need javascript/jquery. I'm not familiar at all with javascript so my attempts at flash/js hybrid uploaders have all failed to integrate with my script.
View 2 Replies
Mar 7, 2009
I want to know the 'file path' when an user selects a file from 'any location' on his hard disk. I like to know is it possible to fetch the entire file URL instead of the file name alone?
Code:
var fileRef= new FileReference();
fileRef.addListener(mylistener);
mylistener.onOpen = function(file){
[Code]....
View 7 Replies