How can I prevent the flushing of the buffer until the playing is finished in AS3?

How can I prevent the flushing of the buffer until the playing is finished in AS3?
Is it possible?
The buffer is emptied and flushed 10-11 seconds before the real end of the flv file.
The file is locally saved and I stream it though crtmp server.
I cannot seek the last 10 seconds because of empty buffer. How can I stop flash from flushing the buffer at end?

i used the same code and i got it working correctly...
thanx a lot fot it...
now i have one more problem with it.
Actually i created a new class 'ErrorDialog' and the function showErrorDialog() inside it.
now i want the option YES_NO_OPTION and the function sayshowMsgDialog() returning int value indicating the option selected from the dialog box.
I tried it with following code
public
static
int
confirmDialog( String message_in, Component parent_in, String title_in,
int messageType_in )
try
JOptionPane pane = new JOptionPane( message_in, messageType_in,
JOptionPane.YES_NO_OPTION );
JDialog dialog = pane.createDialog( parent_in, title_in );
dialog.setResizable( false );
dialog.show();
int optionType = -1;
try
optionType = ( ( Integer )( pane.getValue() ) ).intValue();
catch( Exception ee )
optionType = -1;
dialog.dispose();
return optionType;
catch( Exception e )
e.printStackTrace();
but, since return is after dispose() it is throwing an error 'missing return value'
can i get some kind of solution for this?
waiting eagerly...........
-Soni

Similar Messages

  • How can I prevent that emails are downloaded (POP3) when the lid of my MacBook Pro is closed?

    How can I prevent that emails are downloaded (POP3) when the lid of my MacBook Pro is closed?

    Disable Power Nap in the Energy Saver pane of System Preferences. Uncheck the box marked Enable Power Nap... in each of the tabs.

  • How can i prevent checkboxes from resetting when shutting down the app?

    Hi, i'm trying to make an app for a coin database.
    Below a photo of the coin i put a checkbox or a switch to indicate what i have.
    When closing and reopening the app, all the checkboxes or switches are unchecked.
    Is there any way to let the app remember what was checked or unchecked.
    Thnx.

    Are you using a gallery to display your coins?  If so, this is what you'll need to do:
    Part 1
    1. Use a Collect function when the Checkbox is checked (and a RemoveIf function when the checkbox is unchecked.)
    2. SaveData function to save the data.  This can be done when the checkbox is checked.  Use a semi-colon to string functions together.
    Example (in the OnChecked):
    Collect (myCoins, {ID: CountRows(myCoins) +1, CoinName: txtMyCoin!Text, IsChecked: "true"}); SaveData(myCoins, "MyCoins")
    --> This code may not be 100% correct as I'm not on a computer with Siena while I'm writing this but it should be enough to get you started I hope.
    Part 2
    1. Use the LoadData function when you need the information to be loaded - usually in the OnVisible of a page.
    2. In the Default of the checkbox (in your Gallery) add this code: If(ThisItem!IsChecked = "true", true)
    --> Again, I'm not in front of my computer with Siena so I may be off here.  I'll edit this post if I'm way off.
    I hope this gives you a good start.  I can provide better examples if this isn't working for you.
    FYI - The code will look different if you're not using a gallery.  Hopefully you are as it sounds like the way to go in what you have in your example.
    Thor

  • HT5517 In multiple Apple TV's installation how can one prevent one iOS device from taking over the connection of another iOS device?

    I am working on a system design where I would like to install 5 Apple TV's so when clients walk in with their iPhones they can connect to the network and be able to stream their audio to facility zone speakers where they will be working. But I am looking to prevent others from taking over that connection. I have never installed multiple Apple TV's in one site but I assume one would name them differently (Apple TV 1 - 5) when setting them up. I am also assuming when I walk in with my iphone and use the airplay I would see all 5 Apple TV's listed. Once I choose Apple TV 1 for instance, I do not want others to walk in and see Apple TV 1 on the list any longer so they do not have the oportunity to select it inadvertantly. Is this doable?

    You can't remove them from the list, but you can set a password for airplay to each Apple TV

  • How can I prevent a iMac to gain acces to the internet but still have acces to my time capsule ?

    I have a network of 4 iMac's and they are all connected to a Time Capsule that works as a server. The TC has a internet connection, but I want to restring this only to one iMac. Is there a way to configure the TC or the iMac to be able to connect to the server and acces to the file in it but not to surf the web ?
    Thanks.

    you can remove the dns and gateway then the computer will not be able to get outside of the LAN (local area network) outside being the Internet

  • Satellite Pro L500 - How can I prevent menu boxes popping up randomly

    How can I prevent menu boxes popping up randomly and the cursor failing randomly as well?
    It settles down after a while but can occur at any moment.

    Different menu boxes attach themselves to the cursor and I end up with multiple menu boxes of various kind and it's really easy to accidently perform one of the functions related to a menu. Once I involuntarily increased the size of all of the desktop icons.

  • My child accidentally rented a movie on Apple TV.  Is there a way to refund the rental if we don't watch it?  How can I prevent this from happening?  Is there a way to password protect future purchases?

    My child accidentally rented a movie on Apple TV.  Is there a way to refund the rental if we don't watch it? 
    How can I prevent this from happening?  Is there a way to password protect future purchases?

    Did you try Parental Controls?
    Apple TV: Understanding Restrictions (parental controls) - Apple Support
    See if that does the trick: I think there's a way for you to request a password for purchases, but still be logged in.

  • How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    How can I prevent a PDF file from being copied, printed or downloaded? Students should only be able to view the text and and not distribute it in any way.

    You can prevent it from being printed by applying a security policy to it
    in Acrobat. The rest can't be prevented, unless you spend  a LOT of money
    on DRM protection.

  • Regarding Mail:  When I return to my computer after it has gone to sleep, my accounts go offline, and are always asking me for the password.  THis is very annoying.  How can I prevent this?

    Regarding Mail:  When I return to my computer after it has gone to sleep, my accounts go offline, and are always asking me for the password.  THis is very annoying.  How can I prevent this?

    Back up all data.
    Launch the Keychain Access application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Keychain Access in the icon grid.
    Select the login keychain from the list on the left side of the Keychain Access window. If your default keychain has a different name, select that.
    If the lock icon in the top left corner of the window shows that the keychain is locked, click to unlock it. You'll be prompted for the keychain password, which is the same as your login password, unless you've changed it.
    Right-click or control-click the login entry in the list. From the menu that pops up, select Change Settings for Keychain "login". In the sheet that opens, uncheck both boxes, if not already unchecked.
    From the menu bar, select
    Keychain Access ▹ Preferences ▹ First Aid
    If the box marked Keep login keychain unlocked is not checked, check it.
    Select
    Keychain Access ▹ Keychain First Aid
    from the menu bar and repair the keychain. Quit Keychain Access.

  • How can I prevent the settings on iMessage from changing each time I sync the devices with iTunes on our iMac?

    Each time I sync an apple device (iPad, iPad mini, iPhone) with iTunes on our iMac the settings on iMessage and phone settings change. We use the same Apple ID and have different e-mail addresses and phone numbers; however, each time a device is sync'd on iTunes on our iMac, the iMessage settings and phone settings are changed so that we all each get each other's text messages and phone calls. After the device is sync'd/charged, I have to go into each device (all of them somehow update when only one is sync'ing) and re-set the settings to what we want. How can I prevent settings from being changed each time?

    Okay I've tried safe mode.  Let it run down to 98%, plugged it in, locked the screen, and waited.  A few minutes later, the screen came on showing the 100% icon at the top right, full battery icon just to the left of the time, 100% text to the left of that.
    I'm not going to do a hard reset until I have confirmation that this is not normal behavior for the phone because that's going to take hours of my time and gigabytes of data transfer to get all of my media and apps back on the phone and configured.
    After all my griping, I do have to give credit where it's due.  This phone is much more efficient than my Galaxy Nexus.  I left the S5 running in WiFi hotspot mode while on battery last night.  It still had over 50% left on the battery.  The Galaxy Nexus would be stone dead after about 4 hours.  I can live with that if I have to but I'd really rather be able to leave it on the charger at night.

  • I'm always losing all of my music and get a lot of apps that i don't need when i plug my i4 into my mac. I only ticked the box 'Manually manage music and videos' but it's always syncing itself. How can i prevent this? I don't want to put bacPlease Help!!!

    I'm always losing all of my music and get a lot of apps that i don't need when i plug my i4 into my mac. I only ticked the box 'Manually manage music and videos' but it's always syncing itself. How can i prevent this? I don't want to put back 1500 any more because of this. Please Help!!!

    I'm always losing all of my music and get a lot of apps that i don't need when i plug my i4 into my mac. I only ticked the box 'Manually manage music and videos' but it's always syncing itself. How can i prevent this? I don't want to put back 1500 any more because of this. Please Help!!!

  • How can i prevent iphoto from opening when i plug in my iphone to the computer?

    Hi There,
    I have  a question, when I connect my iPhone to the computer the iPhoto automatically opens.
    how can i prevent this from happening? it always slows down my computer.
    any help will be appreciated.
    thanks

    Image Capture (in your Applications Folder) - In the preferences you can decide to 'Do Nothing' when a camera is connected.
    Some versions also have this option in the iPhoto Preferences.
    Regards
    TD

  • How can i prevent a user to login more than once at the same time ?

    Supose there are a user , D .
    and i am using thread and socket in the application.
    once a user logined in , it will open a new socket .
    Well , but D is trying to login twice at the same time ... and my thread is opening two socket for him .... , how can i prevent that ?
    *thanks for help and sorry for my poor english                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Thanks for reply
    ya ~ i've got a solution ~
    actually i am doing a server for mobile phone to get data. Sometime 1 single ID will send twice a message (usually nokXX mobile phones) .. i use milli sec to check those message ....
    n it seems working ....

  • How can we  prevent the PO while creating the sales order

    Hi All,
    How can we prevent the PO number while creating sales order with existing PO. I have checked the box in sales document type as A but still im able to create sales order with same PO.
    Thanks in advance.
    Naveen

    Hi
    In VOV8 check the box
    Check Purchase Order Number
    The purpose of this field is to check for duplicate
    purchase order (PO) numbers during sales order entry. When you select A in
    this field, SAP gives a warning message during sales order creation if another sales
    document for same customer with the same PO number exists already. Leave this
    field blank if you do not want SAP to check for duplicate PO numbers.
    regards
    Prashanth

  • Have Operating System 10.6.8, Mail Program 4.6.  How can I prevent the next email in the que from automatically opening after I act on the previous email ? It creates big organizational problems for me. My computer changes this mode from self opening to m

    Have Operating System 10.6.8, Mail Program 4.6.
    How can I prevent the next email in the que from automatically opening after I act on the previous email ? It creates big organizational problems for me. My computer changes this mode from self opening to manually opening every few month with no ? action from me.
    Help

    Have Operating System 10.6.8, Mail Program 4.6.
    How can I prevent the next email in the que from automatically opening after I act on the previous email ? It creates big organizational problems for me. My computer changes this mode from self opening to manually opening every few month with no ? action from me.
    Help

Maybe you are looking for

  • HT6154 trying to update my apps and got message apple ID disabled tried ifogot and it didnt work

    trying to update my apps and got message apple id disabled tried iforgot and it didnt work

  • I want to use old version ios in my iphone4

    How i can use ios old version in my iphone 4? Presently i am using ios6.0.1

  • A unique battery problem

    So, I have read a lot of problems associated with the batteries on the BB Z10. I've had mine for a good few months now and I love the phone. Unfortunately, the battery ran dry as I was travelling and so I tried to charge it. I have tried charging fro

  • "pic-video" logo ausblenden

    Hallo! Ich fotografiere mit canon a620. Im Video-Modus stört mich das eingeblendete logo "pic-video" und "www.jpg.com". Dasselbe Problem hatte ich schon bei einer anderen Kamera (casio ex-z110). Auf dem Kamera display ist es nicht zu sehen, erst beim

  • G3 Ibook -where has my HD gone?

    So I was putting in a shim. closed up the case. booted it up and no HDD. put in install DVD and rebooted hitting "C" and in disk utility no HDD. reopened the case connected up a spare HDD and again no HDD. tried changing the cable and again no HDD. T