Windows :: Flex - FileReference: Loading A Windows-locked File?

Mar 8, 2010

I'm using Flex in Flash Player 10 on Windows, using FileReference to load a file into memory, as below.My issue is that when a file is locked by Windows, my FileReference is not giving me any feedback that the file is inaccessible--it simply never dispatches any events after my calling load().Does anyone have insight into how to tell that Flash Player is unable to open the file?

var fileReference:FileReference = new FileReference();
private function onClick():void {
fileReference = new FileReference();
fileReference.addEventListener(Event.SELECT, onSelect);

[code]....

View 1 Replies


Similar Posts:


Flash Saves File On Windows - Not Linux - FileReference.save()

Aug 13, 2011

The code below compiles fine on the Flex 4 SDK on Fedora 15. Mouse-click opens the dialog box, I click okay, and a file is saved, but the file is empty. I run the same SWF file (that was compiled on the Linux machine) on a Windows machine, and the created file contains the expected data. I was thinking there was a permissions problem, but if that were so, why should Linux even let me save the file? It is going to slow things down immensely if I cannot code something and test it on the same machine...

[Code]....

View 3 Replies

Windows :: PDF Displaying Correctly In Flex Mx:HTML Control In Windows / Reader X

Oct 28, 2011

I'm having an issue with the PDF displaying outside the viewable area of the mx:HTML control in Flex. When the application starts up - the mx:HTML is set to a certain size, but can be enlarged if the application is maximized. These are the following conditions to replicate it: Issue only happens in Windows (Windows 7, not on Mac) Issue only happens with Reader X installed (not with previous versions) Issue only happens when running the built app, does not happen in debug / development mode from FlashBuilder

[Code]...

View 1 Replies

Windows :: Flex - MXMLC Throws A Java.lang.NullExceptionPointer When Compiling In Windows (not In Mac Nor Ubuntu)

Feb 23, 2011

I'm running ant to compile a Flex application, and the build keeps failing when running it on a windows command line. Other people in my team can successfully run the very same build under mac and linux. This is the error shown in the command prompt:

[Code]...

All tokens are set in corresponding build.properties and filter .properties files (and, as I said before, it compiles perfectly under mac and linux). The windows version is 7 Ultimate, FLEX_HOME is set as an environment variable to the Flex SDK 3.5 (the 3.5.0.12683 build that comes with Adobe Flash Builder Burrito). ${compiler.fork} is set to false, to avoid an issue with the SDK and the source files being in different logic drives.

View 1 Replies

Windows :: Flex - Adobe Air - Lauch Windows Virtual Keyboard Osk.exe

Nov 25, 2011

From an Adobe Air application, I need a function to launch the Windows Virtual Keyboard (c:windowssystem32osk.exe). I tried the Native Process, but it didn't work when telling it to execute cmd.exe /C osk.exe. How should I launch the keyboard application from an Adobe Air application?

View 1 Replies

Windows :: Flex - Air - Alwaysontop - Does Not Work In MAC But Works In Windows

Aug 29, 2009

i setup alwaysOnTop="true" in mx:WindowedApplication alwaysOnTop="true" tag. but this does not work in MAC but works in windows.

View 1 Replies

Windows :: Embed Windows Media Player In Flex?

Aug 24, 2010

I have a mp4 file which is to be used in an application. Currently i am in the stage of figuring out the technology to be used for this job. I am familiar with flex and am hoping that i be able to use it for the application. But i can not figure out a way to play the file in flex. I have been able to play the file only in windows media player and that required the installation of three codecs : Mp4Audio.ax, Mp4Video.ax, Mp4Src.ax.

As i see it, it will be very convenient if i could embed a windows media player plugin in flex or i could specify the audio and video codecs in the flash player

View 1 Replies

Windows :: Create A Windows Projector .exe From Flex Application Using A Mac

Feb 6, 2012

I have a flex application (.swf) and want to create a projector file. When I choose File-> create projector I get the .app file because I work on a Mac. I know I can create both projector formats for windows and mac using the export feature in Flash Professional. But this is not an option since it's Flex.Is there any other way rather than switching to windows to create the file?

View 1 Replies

Windows :: Start Air/flex Application With Windows?

Sep 21, 2009

I want to provides an option in my air/flex application. A user can check an option and the application starts when windows starts.I don't find with google how to do this, someone knows do that ?

View 1 Replies

Windows :: Windows Authentication In Flex Application?

Jul 30, 2010

does anyone have an idea or developed before windows authentication through flex application.I have a semi solution when user enters his/her AD username and password, and application send this data to web service which handles AD authentication, but this is one extra step which will give full comfort for users.

View 1 Replies

ActionScript 2.0 :: FileReference Progress Go To 100% Immediately In Windows 7

Oct 2, 2009

anyone knows why progress in fileReference go to 100 percent immediately after I select the file to upload.

View 0 Replies

Flex :: RTMFP Direct Peer-to-peer Connection Working On Windows XP / But Not On Windows 7

Mar 1, 2012

we're having a strange problem on a project here. When we use NetConnection in combination with a NetGroup to initiate communication between two local AIR applications on Windows XP, they always both connect to the NetGroup succesfully and detect each other as neighbors. However, on Windows 7 both applications connect succesfully to the NetConnection and NetGroup both don't detect each other as neighbors.To reproduce this problem, here are two AIR applications:[code]

These applications can connect and send message to each other without a problem on Windows XP. On Windows 7 however, they cannot.Does anyone know why this wouldn't work on Windows 7 and what steps can be taken to make it work? It's critical to our project that this works.In some cases, the applications take quite a long time to detect each other as neighbors (up to 15 seconds in some cases), in other cases they detect each other immediately. Does anyone know what could cause this delay?

View 1 Replies

Actionscript 3 :: Flash Saves In Windows Not In Linux / FileReference.save

Aug 14, 2011

The code below compiles fine on the Flex 4 SDK on Fedora 15.Mouse-click opens the dialog box, I click okay, and a file is saved, but the file is empty.I run the same SWF file (that was compiled on the Linux machine) on a Windows machine, and the created file contains the expected data.Then I broke the FileReference declaration out of the function into the class level, hoping to avoid a known bug, but the same problem persists.Hoping to set up a workaround, I added the debug Flash player to my path and ran the file from Flash without the benefit of the browser, and it works.So now a Flex problem has become a Firefox problem, maybe owing to a shady procedure I used to install the plugin without really understanding what was happening.I am running Firefox 5.0.In essence my workflow is fixed, but perhaps people who performed the above will not be able to use projects with FileReference.save()?[code]

View 1 Replies

Embed Flash Games Into Windows Forms Application.net Compact Framework Under Windows Mobile 6?

Feb 5, 2010

I want develop an application on windows mobile.In this app, i need to show some Flash games to the end user.ow should I do?embed an Flash ActiveX Control (in Windows mobile Form application) ?embed an IE control?BTW (because i do not have a windows mobile device now)Can I views flash in IE of the windows mobile device?for play flash, Macromedia Flash Player 7 for Pocket PC should be installed on your windows mobile emulator.DIT2:after practice i found following package should be installed before your windows mobile progr

Vista SP2
Visual Studio 2008 SP1
Windows Mobile Device Center

[code].....

View 2 Replies

Asp.net :: File Upload In Flex When IIS Is Set To 'integrated Windows Authentication'

Dec 8, 2009

I have a flex app that allows the user to upload a file.The flex side uses the FileReference.upload method that goes to an .aspx page that handles the upload. It works only intermittently when I have IIS set to integrated windows authentication.That said, for testing purposes,I wrote a separate aspx page that does a file upload and this always works.I'd like to leverage the file import,though, within the nice looking flex app and not kick off a new webpage for a file upload.In looking at the IIS logs I have a hypothesis as to what's happening, and want to know if someone has full understanding as to why it may only intermittently work and can confirm or deny this: Flex' FileReference upload guts does whatever it does on the client then initiates a POST request to my .aspx page.On the times it failes, the IIS logs state that IE didn't pass the credentials so denies the request then sends a 401 response.

I don't get this 401 response on the flex side even though I'm listening for HTTP status codes (flash bug?).A new request is somehow immediately made to perform the upload again (it's not my code). I'm inferring this by looking at the IIS lgos which shows a second POST right after the previous one, only this time the user credentials are sent through, but the kicker is that the file the user uploaded is not uploaded this time. I infer this by the fact that the IIS logs show 0 bytes are posted, whereas the previous 401 request show a lot of bytes are POSTed.On the times it does work, what happens is that the first request for the HTTP POST the FileReference makes so happens to send the windows credentials along, so the client is not challenged.

View 1 Replies

Flex :: File Write Permission To Application Directory In Windows 7 In Flex?

Aug 11, 2010

I am creating an AIR application using Flex. In it I use a file in application directory to store some data in it.Its working very well to read and write data to this file with various OS except windows 7. In windows 7 it is not working. May be its a permission problem.

How can i write file in the application directory with Windows 7 ?

View 2 Replies

Windows :: Flash AS3 Animation In Mac Vs Windows

Jan 12, 2010

I am working on a short animated story, which has a scrubbable timeline and chapter headings. I used TimelineMax for sequencing it. For the most part, it is working fine. I am seeing some strange behavior that pop up, though: sprites disappear, functions stop responding to user input, seams of the sprites become transparent -- all small issues but pretty hard to nail down because they happen in Mac only.

So I am wondering what is wrong with Flash, and why it misbehaves on a Mac?

View 2 Replies

Flash :: Professional - Error "creating Movie File Be Sure The Destination Is Not Locked Or On A Locked Drive"

Jul 22, 2008

OK I have been racking my brain to get this resolved and unfortunately there isn't a lot of info on the web. Scenario: We are in a shared environment. Central file server (Mac OS X server) over gigabit enet. We open flash files over the network and then we "try" to publish the files back to the same server in which the .fla is stored. (I have read John at Adobe's comments on the practice but this DID work).

So we access the flash file at /Volumes/ServerName/JobFolder/~Flash/ and we "attempt to" publish the .swf to /Volumes/ServerName/JobFolder/htmlfolder/flash .... this was working previously in flash 6-7 but in 8-cs3 it has stopped working and we are kicking ourselves to get some answers. When we try to publish we get the following error: "Error creating Flash movie file. Be sure the destination is not locked or on a locked drive. Also, check that the file name is not too long."

[Code]...

View 6 Replies

Windows 7 Won't Open A .exe File

Sep 9, 2010

I created a CD presentation that runs an executable file (fscommand), it works great on XP and vista, but windows 7 doesnt open it. Have anyone run into this before?

View 2 Replies

Flash :: Save Pro CS5 File Created In Windows To A Mac Os File?

Jan 2, 2012

I created a flash banner with flash pro CS5 using windows 7. Can I save the file so my client can open it with a Mac OS?

View 1 Replies

Possible To Open A Directory From A Windows Projector File?

Oct 9, 2009

The powers that be have decided a project I'm working on shouldn't go on a website after all, but needs to be on a CD for Windows users instead and of course I only have a couple of days to made the "relevant tweaks" as they call them.It needs to run directly from the CD so I presume AIR isn't a good option.I've got all of it working by publishing to a Windows Projector executable. The bit I'm stuck with is allowing users to click buttons to open various directories which will be on the CD. These are source files for following tutorials from the main part of the CD. I've tried playing around with the various options in the FileReference class (namely browse() and download()), but they seem to be set up for use online only.

View 2 Replies

File For Flasher Player For Windows Mobile 6.5?

Jun 15, 2010

Where do I find the download for flash player update for my new HTC HD2 phone?

View 1 Replies

ActionScript 2.0 :: Load Swf In A Windows Projector File?

Oct 28, 2009

I`ve been trying to load a swf file in a windows projector file. However, when I preview the project in the swf format it works perfectly, but if I preview it as a windows projector file, nothign happens. It doens`t load the external swf file.[code]...

View 0 Replies

ActionScript 2.0 :: External Text File Popup Windows?

Feb 8, 2009

I have an externally loaded file in flash. I'm trying to create a pop up from the text file. In order to do so I place a function into my actionscript, then place the link inside my external text file. It works fine but only while publishing in flash 6 and not 8.Below is the example of the function and the internal link.

openWin = function (url)
{
getURL("javascript:window.open('"+url+"','newWin', 'toolbar=no,width=760,height=560'); void(0);");
};
<a href='asfunctionpenwin,http://adobe.com'><font+color="#0000ff"><b>Link</b></font></a>

View 2 Replies

Open Avi File Directly Into Windows Media Player?

May 7, 2009

How do i open an .avi file directly into windows media player or winamp on button click in flash.

View 2 Replies

Professional :: Windows Media Player Cannot Play The File?

Jul 11, 2011

I'm working on a project that I want to export as a .avi file.  I'm using Flash 8.  I can go through the steps of exporting the movie fine, but once I try to play it in Windows Media Player, I get this error:
 
"Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file."
 
I've tried playing it in VLC and DIVX player as well I got similar error messages.  This is a time sensative project,

View 1 Replies

ActionScript 2.0 :: Open A File In Its Default App On Windows XP SP2 In Flashplayer 7?

Feb 22, 2005

I need to open a file in its default app, on windows XP SP2, in flashplayer 7.I've searched and found some exe files that claim to be able to do just that, but i cant get it to work.

[URL]

I've managed to open a given exe file from the fscommand folder, but cant get the above examples to work - i think the problem is, that i cant send parameters to the exe file.

View 2 Replies

[CS4] AS3 :: Get A Based Flash File To Run Full Screen In A Windows Projector?

Jan 23, 2009

I'm currently trying to get an AS3 based flash file to run full screen in a windows projector, but no matter what I try codewise I cannot get the function correctly working,I've tried

fscommand("fullscreen","true");

which works, but I'm also told to avoid it, as it's buggy : - I also tried

fscommand("trapallkeys","true");
fscommand("fullscreen","true");
fscommand("showmenu","false");[code]....

but this doesn't work either, in swf or standalone .exe.

View 2 Replies

ActionScript 1/2 :: Windows Projector Quits Fullscreen When Opening Pdf File?

Aug 16, 2011

I'm working in CS5, using AS2 on a Mac.I've built a presentation that requires the need to open pdf files in Acrobat Reader... as I have been building this on a Mac I simply used the geturl code which has been working a treat... today when I tested it on a PC it opened the file in a browser window!
 
I'm not really a coder and have to rely on finding bits online that I can tweak... after many hours I have fixed the pdf opening problem by using the fscommand method, but unfortunately when the pdf file is closed, my presentation (that was running fullscreen) has minimised itself to a window 100% to the original stage size!

View 2 Replies

Professional :: Windows Projector Quits Fullscreen When Opening Pdf File

Aug 16, 2011

I've built a presentation that requires the need to open pdf files in Acrobat Reader... as I have been building this on a Mac I simply used the geturl code which has been working a treat... today when I tested it on a PC it opened the file in a browser window!
 
I'm not really a coder and have to rely on finding bits online that I can tweak... after many hours I have fixed the pdf opening problem by using the fscommand method, but unfortunately when the pdf file is closed, my presentation (that was running fullscreen) has minimised itself to a window 100% to the original stage size!

View 2 Replies







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