Custom flv player works great except for Scrubber (F*)

Everything works great except when I click the loadbar,
instead of operating my scrubber script it just stops. Can anyone
see a problem with this code? Must be a typo somewhere but I can't
find it! Scrubber code at bottom.
//-------NETCONNTCTION SETUP--------------
var nc:NetConnection = new NetConnection();
nc.connect(null);
//-------NETSTREAM SETUP--------------
var ns:NetStream = new NetStream(nc);
ns.onStatus = function(info) {
if(info.code == "NetStream.Play.Start") {
progressBar.onEnterFrame = videoUpdate;
if(info.code == "NetStream.Play.Stop") {
delete progressBar.onEnterFrame;
ns.onMetaData = function(info) {
ns.duration = info.duration;
//-------ATTACHING NETSTREAM--------------
video.attachVideo(ns);
//-------PLAYING EXTERNAL FLV--------------
ns.play("curse.flv");
//-------REWIND BUTTON--------------
rewind.onRelease = function() {
ns.seek(0);
//-------PLAY PAUSE TOGGLE--------------
playPause.onRollOver = function() {
if(this._currentframe == 1) {
this.gotoAndStop("pauseOver");
else {
this.gotoAndStop("playOver");
playPause.onRollOut = function() {
if(this._currentframe == 10) {
this.gotoAndStop("pause");
else {
this.gotoAndStop("play");
playPause.onRelease = function() {
if(this._currentframe == 10) {
this.gotoAndStop("playOver");
ns.pause(true);
else {
this.gotoAndStop("pauseOver");
ns.pause(false);
//-------LOADBAR--------------
loadbar.onEnterFrame = function() {
this._xscale = (ns.bytesLoaded/ns.bytesTotal)*100;
if(this._xscale == 100) {
delete this.onEnterFrame;
//-------VIDEO UPDATE--------------
function videoUpdate() {
progressBar._xscale = (ns.time/ns.duration)*100;
//-------VIDEO SCRUBBER--------------
loadbar.onPress = function() {
progressBar.onEnterFrame = videoScrub;
loadbar.onRelease = loadbar.onReleaseOutside = function() {
progressBar.onEnterFrame = videoUpdate;
function videoScrub() {
var dist:Number = (_root._xmouse-loadbar._x)/loadbar._width;
ns.seek(Math.floor(ns.duration*dist));
progressBar._xscale = (ns.time/ns.duration)*100;
}

Check the enclosed .AppleDouble folder and files. If that doesn't help, stop netatalk, delete the volumes CNID databases and restart.
Cheers!

Similar Messages

  • TS1424 my dad gave me his mac. we deleted and reinstalled mac os and everything works great except for when i go to update garageband it says that it is still assigned to my dads itunes id even though he is no longer using a mac. what do i do?

    my dad gave me his mac. we deleted and reinstalled mac os and everything works great except for when i go to update garageband it says that it is still assigned to my dads itunes id even though he is no longer using a mac. what do i do?

    thank u 4 yr help , i have managed to do it after all. i downloaded the iphone 3gs ios 4.2 manual and it explained everything i had to do on there ... all i had to do was put my sim into phone ,then connect usb lead and then open my i tunes , i clicked on my iphone and went into summery and straight away it synchronized my phone and yay up popped my sim card and ready to use ('',) many thanks though 4 yr help wendy

  • I just watched my first movie using Apple TV and Netflix. Apple TV works great except for then I try to switch back over to tv mode I get the cable channel info on the bottom of the screen but no sound or picture. What did I I do wrong?

    I just watched my first movie using Apple TV and Netflix. Apple TV works great except for then I try to switch back over to tv mode I get the cable channel info on the bottom of the screen but no sound or picture. What did I I do wrong?

    It was easy to set up, easy to use, got done watching the movie.  Transferred from HDMI to TV and as my question above notes.  I am on TV, my cable information (show/channel/etc) show OM the banner on the bottom of the screen, I can view the channell guide, but, my screen is white, no picture no sound?  Other than that I got nothin

  • I just got an Airport Express and it works great except for XBox lag.

    I am having intermittent lag packets with online games Xbox Live in particular. The Xbox is even on the ethernet port. Yes I have the Xbox set to a static outside the DHCP range and in the DMZ/Host port. So far I have also turned NAT-PMP off to see if that would help and changed channels on wireless to manual.Any other ideas?

    If you are getting 20 Mbps measured at the Ethernert port of the Express, it should work great. Suspect a defective Express here.
    Take it to an Apple Store....if you have one near you....or contact Apple Support directly at http://www.apple.com/support/contact/

  • My wife and I both upgraded our cell phones will att from iPhone 5 to iPhone 6.  since then everything has worked great except for making phone calls to other cell phones.  the phone acts like it connects and the call timer starts but there is no sou

    unable make phone call with brand new iPhone 6

    Try a reset, hold down the home/sleep button together until you see the apple logo and then release then wait for the phone to boot back up.
    then try again.
    Get help with hardware features on your iPhone, iPad, and iPod touch - Apple Support
    If the above doesn't work, then contact AT&T.

  • Best approach to dynamic custom flv player

    I am currently working on a custom flash player. After
    working on several working versions where I simply used
    actionscript to delegate the actions of my custom player.
    I am now working on a more dynamic ready flashplayer that
    will need to be embeddable. Should I make a .swf specificaly for
    the player using the flash player SkinFLA examples as an outline?
    The idea is to have a player that embeds like youtube, any
    suggestions or tutorials to look over? Also, this player needs to
    have playlist functionality, but it needs to be able to scope to
    anyone. I could have users register and then create an XML that
    references their playlist, but it seems like there may be better
    options. Just looking for some discussion and debate over player
    best-practices....

    Well the problem is that I can't find any tutorials or help about getting a subtitle toggle button into my custom flv player, an example of which can be found here: http://idl.newport.ac.uk/dev/customplayer.html
    I don't like using the FLVPlayback component built into flash as it is too clunky but at the moment that is the only way I can get subtitles to toggle on and off (using the FLVPlaybackCaption component).
    Ideally I would like to use an XML file to do the subtitles. Any ideas?

  • I've just hooked my 20" iMac up to my Toshiba 37" HDTV using a mini dvi-HDMI adapter, and works well, EXCEPT for the green tinge (or hue) that is showing up on my TV. Any suggestions or ideas?

    I've just hooked my 20" iMac display up to my Toshiba 37" HDTV using a mini dvi-HDMI adapter, and everything works well, EXCEPT for the green tinge (or hue) that is showing up. Everything else looks pretty good though..... The color that is on my iMac is still good, Its just green on the TV.
    Anyone have suggestions or ideas?

    Try opening the Display System Preferences, then click on the Color options in the Display preferences window that appeared on the Toshiba display. Click on the Calibrate button and follow the instructions for creating a custom ColorSync profile that will hopefully solve the green tinge issue. The Apple Display Calibrator Assistant software that launches when you click on the calibrate button will walk you through the process.Assuming that the green tinge is minor and that you don't have a more serious cable or hardware issue, I am hopeful the results will be worth it.

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • Custom FLV player query

    Dear all
    I have created a custom FLV player and i would like to embed
    it into our web site. The problem I have is I want it to be
    dynamic. So I can link lots of videos to it rather than export just
    one movie with the player from flash and embed that each time into
    the website. I want the player as a permanent entity and then link
    to it via a database with a list of FLV videos. I know about
    Flashvars and creating those variables in the javascript file but I
    want to know do I need to or can I type a query into the source
    field in the parameters of the .fla file to link to a database full
    of the videos. Rather than place in that source field the name of
    one .flv movie. Thats where I am stuck. I am pretty new to flash. I
    am using progressive download by the way.
    Our website is coded with classic ASP/CSS and we use access
    for databases.
    Many thanks
    Rob

    Thanks so much for your help, I am probably going to sound
    thick but how would I get flash to read the xml, I guess I would do
    it with actionscript but do you have any pointers or tutorials you
    know of where it involves asp and a database etc.
    Cheers

  • My apple tv works great except when I try to play a dvd on my macbook. have sound but no video.

    My apple tv and airplay works great except when I try to play a dvd on my macbook. Have sound but no video.

    You won't be able to view them via Apple TV, correct. It is not meant for this function, if that's your intended purpose its best to get a DVD player

  • FLV Player works locally but not on site

    I made a media player for the website I maintain and
    the FLV Player works on my machine, but it doesn't even show up
    online. What did I do wrong? Here is the url:
    ruarts.org/f/media player flash/content/rcca
    player.html

    Me thinks you have hard-coded some incorrect relative paths.
    For instance, one of your SWFs is here:
    http://ruarts.org/f/media%20player%20flash/content/frog%20bride.swf
    And the link to one your FLVs is this:
    http://ruarts.org/Users/stmcmast/Documents/media%20player%20flash/movs/respond%20park%2010 20%201.flv
    But the actual path to that same FLV is this:
    http://ruarts.org/f//media%20player%20flash/movs/respond%20park%201020%201.flv

  • My MacAir is great except for a problem i have. Keys F1, F2,F5,F6,F7,F8,F9,F10,F11,F12 and the power button are unresponsive. These are keys i frequently use and i have searched the whole apple help centre. Anyone got answers for me? Please helP!!!

    My MacAir is great except for a problem i have. Keys F1, F2,F5,F6,F7,F8,F9,F10,F11,F12 and the power button are unresponsive. These are keys i frequently use and i have searched the whole apple help centre. Anyone got answers for me? Please helP!!!

    Some keys don't work as expected
    From the Apple menu, choose System Preferences.
    From the View menu, choose Speech.
    Click the Text to Speech tab.
    If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
    Click the Universal Access pane in System Preferences, click the Keyboard tab.
    Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
    In the Universal Access pane, click the Mouse tab, and make sure Mouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, see Unable to type while Mouse Keys is enabled in Mac OS X.
    If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
    If the issue persists, use Keyboard Viewer to help isolate the issue:
    Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
    Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
    Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
    From the Input (flag) menu, choose Show Keyboard Viewer.
    If the keyboard is connected and detected by Mac OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
    Start from the Mac OS X Install Disc, choose Terminal from the Utilities menu and test the keys which were previously not working.  If the keys work while started from the Install disc, then the keyboard itself is working correctly.  Use Mac OS X: How to troubleshoot a software issue to isolate the software issue that may be causing the keys to not respond.
    http://support.apple.com/kb/TS1381

  • Hello there - I am sharing an iPhoto library across two accounts on the same computer - it works fine EXCEPT for Quicktime movies - they play on one account and claim I don't have the rights on the other - all permissions are on and ok?

    Hello there - I am sharing an iPhoto library across two accounts on the same computer - it works fine EXCEPT for Quicktime movies - they play on one account and claim I don't have the rights on the other - all permissions are on and ok?

    It should be in the Users/ Shared folder.
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Note the option to check and repair Library Permissions
    Regards
    TD

  • I have an IPhone 4S and am using the Phonak Icom with my hearing aids. All works well except for when I get an incoming call I can't hear the ringing/ringtone in my aids.  Any solution?

    I have an IPhone 4S and am using the Phonak Icom with my hearing aids. All works well except for when I get an incoming call I can't hear the ringing/ringtone in my aids.  Any solution?

    Did you get any answers?

  • Adding subtitle functionality to my custom flv player

    Hey all,
    I have a custom flv player and i'm slowly adding more functionality to it as I go along but i've hit a wall.
    I want to add a subtitle button that toggles between show/hide. I've seen on the internet that the best way is to use an XML file (holding the script, times etc.), which I have no problem writing.
    I'm having problems trying to replicate the 'FLVPlaybackCaptioning' component (in Flash CS3) in to my custom flv player. I.E. Adding the right actionscript to my toggle button.
    Can anybody help me as I just can't find anything on the internet.
    Any advice is welcome!
    Thanks
    egr103

    Well the problem is that I can't find any tutorials or help about getting a subtitle toggle button into my custom flv player, an example of which can be found here: http://idl.newport.ac.uk/dev/customplayer.html
    I don't like using the FLVPlayback component built into flash as it is too clunky but at the moment that is the only way I can get subtitles to toggle on and off (using the FLVPlaybackCaption component).
    Ideally I would like to use an XML file to do the subtitles. Any ideas?

Maybe you are looking for