Flash :: Flex FileReference.browse() Stops Playback On Some Players

May 31, 2010

We have an issue were the server session associated with a Flex client times out when the browse file dialog is open for a time longer then the configured session timeout. It seems that on some players, the playback is stopped when browse or download on a FileReference is executing. This also causes remote calls to be blocked and hence our manual keep-alive messages are not sent to the server, resulting in a session timeout. I searched for some info on this in the docs and found a notice of it, but it does not explicitly list the players it does (not) work. Would anyone know were I could find a complete list?

[Code]...

View 1 Replies


Similar Posts:


Flex :: Air - Specify The Location For FileReference.browse()?

Mar 30, 2011

I have a requirement to select a file from fileReference.browse(), but I want to browse a file to specific location say D:Dirfile instead of the OS specific (The dialog box is native to the user's operating system).

View 2 Replies

Actionscript 3 ::Flex : Center Pop-up From FileReference Browse?

Mar 5, 2012

I want to screen center the file chooser wich appears when FileReference.browse() method is called.

View 2 Replies

Flex :: FileReference And HttpService Browse Image Modify It Then Upload It?

Sep 23, 2009

I am trying to do an image uploader, user can:

- browse local file with button.browse

- select one and save it as a FileReference.

- then we do FileReference.load() then bind the data to our image control.

- after we make a rotation on it and change the data of image.

- and to finish we upload it to a server.

To change the data of image i get the matrix of the displayed image and transform it then i re-use the new matrix and bind it to my old image:

private function TurnImage():void
{
//Turn it[code]...........

Now the mater is that i really don't know how to send the data as a file to my server cause its not stored in the FileReference and data inside FileReference is readOnly so we can't change it or create a new, so i can't use .upload();.Then i tried HttpService.send but i can't figure out how you send a file and not a mxml.

View 1 Replies

Actionscript 3 :: Flash Filereference Select Event Not Firing After Using Browse() And After Selecting A File

Aug 11, 2011

This is the first time i am working in action script. I have seen a flash programmer working with it. since i know javascript i was able to work in action script. I am creating a file upload component for my php projects. Until now i have advanced to show the file dialog box using the FileReference api. The select event is not firing for me. and i did not get any error.

[Code]...

View 2 Replies

Javascript :: Call A FileReference.browse() ?

May 25, 2010

I am trying to call the browse() method of the FileReference class from JavaScript (a user clicks on a text that uses the ExternalInterface to call a method in Flash).Unfortunately, I receive an error that tells me it has to be a direct action of the user (like clicking a button). I have searched through Google and realized this is a new security feature in Flash 10.The only solutions I could find was to put a Flash button or to have a hidden flash button over the text, that will call the browse() method.I wanted the browser only to show JavaScript and all the Flash code only called from JavaScript.

View 1 Replies

ActionScript 2.0 :: Filereference.browse Delay On Mac

Nov 4, 2009

I'm having troubles with a contact form containing two file uploads (two buttons with Filereference.browse()-call). On all of my computers, the form works fine (Mac + PC); my client, however, reports a 20-second delay on opening the second browse dialog box (the first one opens right away). Client is on a Mac with latest Flash player version. If he double-clicks it, there is no delay. If he first clicks the second button, the delay is on the first.

[Code]...

View 0 Replies

ActionScript 2.0 :: FileReference Browse Error?

Nov 9, 2009

I have created an image cropper application that upload an image, crop it and generates an jpg to server.BUT, this works perfectly well locally at my Mac at work, online on the server, but not locally at my laptop at home???Why and what the *** can I do?Everything seems fine. I click browse, and the fileReference opens the finder dialog box. But whatever I press, doubleclick the image, press select etc, flash tracks this as if I clicked cancel. The fileRef.onCancel activates, insted of the onSelect???Could it be something wrong with my flash program? Is it anything I can do to fix this (change somthing in the preferenced etc.)?

View 0 Replies

ActionScript 3.0 :: Close A Filereference Browse Box?

Feb 8, 2011

I am using a filereference.browse box so that users can upload images.although the browse box has a cancel button on it, I am also creating an mc_cancel button ( just in case the user's OS's browse does something funny ).currently, when mc_cancel is pressed, I call my_file_ref.cancel() ... but it doesn't actually close the box ... is it supposed too?

View 2 Replies

ActionScript 3.0 :: Close A Filereference Browse Dialog Box?

Feb 8, 2011

is there a way to forcibly close the browse dialog box that is opened by my_filereference.browse() ?
 
filereference.cancel() does not close the box.

View 3 Replies

ActionScript 2.0 :: FileReference.browse() - Restrict Image Files Only [OS X]?

Nov 13, 2009

Adobe documentation says this should work:

ActionScript Code:
var fileRef = new FileReference();
fileRef.browse([{description: "Image files", extension: "*.jpg;*.gif;*.png", macType:

[code].....

View 2 Replies

ActionScript 3.0 :: FileReference.Browse And Renaming Destination File

Mar 25, 2011

I have an application already created that will upload files successfully, with a progress bar and completion notices and am very happy with the process, but sometimes people upload a file with the same name as an existing file. Is there a way to change the name of the destination file on my server to something more standard during the upload process? I have been using a fileReference.Browse() with capturing all my event handlers through there.

View 4 Replies

ActionScript 3.0 :: PHP Uploading File To Server Without Calling FileReference.browse?

Mar 22, 2010

Is there any way to have a function which connects to a server and uploads a local file without calling FileReference.browse?I have an application at a kiosk which is recording a short webcam movie of a guest. Once completed, I'd like for the video to be put on a server and a link send to the guest. I've got the link part working, but am not sure how to get the file up to the server automagically.

View 4 Replies

Professional :: Browse - FileReference Object To Check The Files When Click A Button "send Pictures"

Feb 24, 2010

I created a program that sends images to a server, use the browse function of a FileReference object to check the files when you click a button "send pictures. But I would like to open the program he ask for the files but do not know how.

View 1 Replies

Professional :: Playback Of Flv Randomly Stops ?

Dec 5, 2011

USING:   Adobe Flash CS3 - Action Script 3
 
 TIMELINE:  3 layers, --  Layer 1, flv video - converted to a Movie Clip.   Layer 2, is my button.  Layer 3, is my action script. My flv video file was imported and converted to a Movie Clip.  My button was created using polygon tool and was converted to a button - and both have instance names.
 
/////////////////////// MY AS CODE:
 
lpsample001.stop();
 
function playMovie(event:MouseEvent):void
{
lpsample001.play();[code]............
 
PROBLEM:  Everything functions great, but my flv video file just stops playing at random points, it doesn't even finish playing, and then, when I click my button a second time, it re-starts playing right where it randomly stopped.  Why does it randomly stop playing at various points on the timeline?

View 11 Replies

ActionScript 3.0 :: Flv Playback Stops Randomly?

Aug 11, 2009

I'm having a problem playing an flv. When the page loads sometimes it will just sit there and not do anything, then if i refresh, it'll play fine. Or it might play for a few seconds the first time, and then stop, and then if I refresh, it'll play fine. Has anyone run into this? Here is my code.

Code:
var nc:NetConnection = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, etStatusHandler);

[code]........

View 0 Replies

ActionScript 2.0 :: CS3 .flv Playback Stops After 2 Seconds On Server?

May 21, 2009

I'm working on a rotating carousel type menu. It has images that rotate around, and when you click on an image, a .flv file plays, then when it's done, it goes back to the menu. It loads the data from an .xml file so it's all dynamically created.

This is all fine and works... locally.

When I upload it to the server, everything seems fine until I click on one of the icons. The .flv plays for 2 seconds, then goes back to the menu. Other flv files on the internet play fine, so it's not my flash player. I tried hard-coding in a video to play, and it has the same problem, it plays the first 2 seconds, then freezes.

Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);

[Code]....

I have the program set to go back to the menu when the status of the .flv is: NetStream.Play.Stop

I traced out the status of the video when playing locally, the status goes normally (gets to Netstream.play.stop after the video is done), but when played online, it gets to netstream.play.stop after 2 seconds, then prints that out like 50 times.

View 3 Replies

Flex :: FileReference.load() Not Populating FileReference.data?

Nov 11, 2009

I am trying to use the load method of FileReference object to load the data and use it to display a thumbnail of the selected image.However, after calling fr.load(), fr.data remains null.I'm using Flex Builder 3.0.2 on Windows 7 with Flex SDK 3.4 and Flash Player 10 Debug. If I evaluate fr.load() in Eclipse's watch variables list, I get an error reading "No such variable: load."

View 4 Replies

Php :: Dispaying Top 10 Players And Monthly Top 10 Players Using Mysql

Aug 5, 2010

I am currently working for a highscore system for my games website. and i have written the code for that. it only displays 1- players. i want to display overall top players when i click on top players url and want to display the monthly top 10 players when i click on monthly top players url.How to do this. i am trying since 2 days. i am struck at this point. kindly do look into this. the code as follows. For reference kindly look inot this. i need like this.[URL]

<?php
include_once("_data.php");
$game_name = "test";
$db_table = "newhs_" . $game_name;

[Code].....

View 1 Replies

Flex :: Flex - Pass FileReference Between Two Flash Movies?

Jun 19, 2010

I have an html page with a flash object that provides video chat using stratus.I want to enable file sharing from a different UI on the same html page.I want to use the same stratus connection to send the file.Is it possible to create a small flash object that will present a browse button and let the user choose a file and then pass the FileReference or file details to the stratus object to send it?

View 1 Replies

Flex :: Flash - Browse And Get The Full Path Of A File On Local Machine's File System?

Mar 29, 2010

I am working with Flex, Flash, Action Script and I want to browse the local machine file system using Operating System's file browse window and select a file then i want to get the full path of the selected file. How can I do this?

View 3 Replies

Flex :: Flash Player 10 Filereference.save And File Extensions?

Jun 8, 2010

I'm using Filereference.save() to save a XML file. It's working fine with default filename.But is there a way to force a file extension on the saved file? I'm using "untitled.xml" as the default filename, but if the user changes it to say "myfile", it gets saved as "myfile", rather than "myfile.xml".

View 1 Replies

Flash :: Flex 3 + Player 10 - Losing Extension When Use FileReference Download

Dec 22, 2010

Possible Duplicate: losing extension when use FileReference download I'm having an issue that looks common when using the FileReference class in FP10 when saving a file. The whole thing works fine as long as I don't change the default filename. If I do, then I loose the extension of the file... which is annoying >_< I haven't found any "acceptable" workaround, but the posts I've seen are from a couple of months already. So I'm inquiring hoping that something's been done regarding this issue since then =)

View 1 Replies

Flex :: Retrieve The ByteArray From A FileReference Class Using Adobe Flash Player 9?

Feb 5, 2010

I am trying to retrieve the ByteArray from a file selected using the FileReference class so that I can pass this to a Web Service call that I am making to Sharepoint.Is there any way I can do this using Flash Player 9 without having to upload to a remote server first and then downloading the file to extract the ByteArray?

This is assuming you can't use Adobe Flash Player 10 and the data property from the FileReference class.

View 1 Replies

Flex :: Load A Local File Without Having To Ask The User To Browse To It First In An AIR Application?

Jul 22, 2011

I'm writing a small application for myself and instead of using a database I'd like to just use Excel to store the small amount of data I have on my local file system. I want to be able to load that data without having to use the typical FileReference browse() method as it would just be annoying to do every time I use the application.

The code below seems to find the file fine as the file.exists method below and most of the other attributes seem to be correct but the file.data is always null.I'm guessing this is a security issue and that's why I'm running into this problem but I thought I'd ask and see if there is in fact a way around this problem.

var file:File = new File(fullPath + "\" + currentFolder + ".txt");
if(file.exists) {
var byteArray:ByteArray = file.data;
}

View 2 Replies

Browse An Image And Then Send It To Data Base Using Flex And Webservice Java

May 4, 2011

want to browse an image and then send it to data base using flex and webservice java

View 2 Replies

Flex :: Error 1061 Call To Possibly Undefined Method Save Through A Reference With Static Type Flash.net:FileReference

Jun 2, 2011

I want to save XML File using Flex 4 SDK

var fr:FileReference=new FileReference();
fr.save( newXmlRow, 'D:/Sample.xml' );

Error Shows :

1061 "Call to possibly Undefined method save through a reference with static type flash.net:FileReference"

View 2 Replies

Flex :: Flash Video Playback - How To Determine Seconds Loaded

Jan 11, 2010

I'm trying to accurately determine how many seconds of a video (NetStream) have been loaded so I can scrub/seek correctly. First I tried doing duration*(ns.bytesLoaded/ns.bytesTotal) but this is inaccurate by maybe 15%, ie if that calculation says 20 seconds is loaded and I scrub to 20 seconds ns.time will tell me it can't go past 17 seconds.

I think this is because the size of the file loaded doesn't map perfectly to the number of seconds loaded (obviously), ie as the video loads, some of the bytes loaded aren't the actual video but are overhead of the container/file the video is in. So to load 1% of video you have to actually load 1.15% of the file's size.

View 1 Replies

Flash Players And MS Vista/IE7?

Oct 26, 2007

Does anyone know for certain whether any version of the Flash player is contained within MS Vista/IE7? I have read conflicting opinions but I cannot find any specific reference to Vista/IE7 actually containing the Flash player.

MS WinXP has the Flash 6 player bundled by default, so I was hoping that MS would do the same with Vista/IE7, just a newer version.

View 0 Replies

Object Needs In Flash Audio Players

Dec 30, 2011

I'm interested in why flash audio players need <param> parameters, when without them and only with <object> they work nicely.I have also read many posts here about audio flash players, but I can not find any good one.

View 1 Replies







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