From Player 6 to 8

The next code works fine with Flash Player 6 and Action
Script 1 but I'm trying to get it work on Flash Player 8 and Action
Script 2.
Any help, thanks in advance.
onClipEvent (load) {
accel1 = 0.8;
rate1 = 0.1;
trace(_x);
_root.xkoord1 = 0;
onClipEvent (enterFrame) {
x = x*accel1+(_root.xkoord1-_x)*rate1;
_x = _x+x;
if (Math.abs(_root.xkoord1-_x)<1) {
_x = _root.xkoord1;
}

Initialize x in onLoad
onClipEvent (load) {
accel1 = 0.8;
rate1 = 0.1;
trace(_x);
_root.xkoord1 = 0;
x = 0
Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!
"Euclides" <[email protected]> wrote in
message
news:e7unk6$4kg$[email protected]..
> The next code works fine with Flash Player 6 and Action
Script 1 but I'm
> trying
> to get it work on Flash Player 8 and Action Script 2.
>
> Any help, thanks in advance.
>
>
> onClipEvent (load) {
> accel1 = 0.8;
> rate1 = 0.1;
> trace(_x);
> _root.xkoord1 = 0;
> }
> onClipEvent (enterFrame) {
> x = x*accel1+(_root.xkoord1-_x)*rate1;
> _x = _x+x;
> if (Math.abs(_root.xkoord1-_x)<1) {
> _x = _root.xkoord1;
> }
> }
>

Similar Messages

  • [svn] 2510: -add back in the \frameworks\libs\player\9 folder - we still need the playerglobal .swc from player 9

    Revision: 2510
    Author: [email protected]
    Date: 2008-07-16 10:37:39 -0700 (Wed, 16 Jul 2008)
    Log Message:
    -add back in the \frameworks\libs\player\9 folder - we still need the playerglobal.swc from player 9
    Added Paths:
    flex/sdk/trunk/frameworks/libs/player/9/

    I Reset Internet Explorer Settings and so far, everything
    seems to be working fine!
    http://support.microsoft.com/kb/923737
    I have XP SP2 Home Edition and never got an answer to the
    question if I can use SubInACL.

  • I can't change the view from player view to grid view in youtube

    i have a problem with youtube, i can't change the view from player view to grid view on channels that i visit, and that just happen with firefox, it dosent happen with explorer, so what can i do please?
    == This happened ==
    Not sure how often

    it didn't unfortunately, and i think that the problem in the JavaScript , Because when I click on the grid view icon i see on the bottom of the page "JavaScript" see the image:

  • [svn:osmf:] 14357: Moved constants for namespace ( also added a version number to the namespace) and the metadata key to the MASTPluginInfo class so these constants can be used from player code .

    Revision: 14357
    Revision: 14357
    Author:   [email protected]
    Date:     2010-02-23 09:41:57 -0800 (Tue, 23 Feb 2010)
    Log Message:
    Moved constants for namespace (also added a version number to the namespace) and the metadata key to the MASTPluginInfo class so these constants can be used from player code.
    Modified Paths:
        osmf/trunk/plugins/MASTPlugin/org/osmf/mast/MASTPluginInfo.as
        osmf/trunk/plugins/MASTPlugin/org/osmf/mast/media/MASTProxyElement.as

    Revision: 14357
    Revision: 14357
    Author:   [email protected]
    Date:     2010-02-23 09:41:57 -0800 (Tue, 23 Feb 2010)
    Log Message:
    Moved constants for namespace (also added a version number to the namespace) and the metadata key to the MASTPluginInfo class so these constants can be used from player code.
    Modified Paths:
        osmf/trunk/plugins/MASTPlugin/org/osmf/mast/MASTPluginInfo.as
        osmf/trunk/plugins/MASTPlugin/org/osmf/mast/media/MASTProxyElement.as

  • Stop flash running from player and accessing a web page

    Let's say i have built a 2 player game. What  if a user ( having a technical knowledge  ) saves the swf, decompiles it, cheats into the code, and runs the game from flash player (As naturally it cannot be run from owner's server, without uploading it there with his permission).
    How can i restrict him playing the game via flash player ?
    What i think is, i must use PHP session on the page, where the flash is being loaded. Can that do the trick ?
    Thanks

    If you post something on the Internet, those files are almost always first downloaded to the Internet cache and played back from there... so the viewer already has a copy.
    But with most games, there are many files that make up the "assets" of the game.. all pieced together ..... who knows how!!
    So while it's pretty easy to grab the main .swf (and perhaps decompile as you suggest), there may be dozens of other related files that must be coded in also.... that's the tough part.
    So while the game may be a really good game, it you post it on the Internet, it's almost always possible to download it.... but to reassemble, much, much harder. And I just don't think that many people would take the trouble to decompile and reassemble.
    Best wishes,
    Adninjastrator

  • My music from sdcard disapeared from player,

    hi,
    i had a z10, and used to listen to my music with the player (when the z10 recognized my 64g sdcard!).
    I got a passport, and since, i can't bind the music from link or in the music player to the music folder of my sdcard, even when it's recognized by the file explorer from wich i can play songs one by one...
    when i try to synchronize music folders from my computer to the passport, they are copied in the internal device memory, and then are usable by the player! i don't want that ! shall i be obliged to use a third party player ? i lost an afternoon again !
    my z10 had the usual 64g sdcard bug, which i resolved by checking/unchecking usb mass storage in parameters while connected in usb, boring by working. it happened sometimes with the passport, and the same pseudo-solution works again. That lost of music link between the player and the sdcard music folder never happends on my z10. this is painfully, considering the very good quality and the high price of the passport.
    Bernard

    grab free vlc player beta from snap & your life will be made easier...
    10.3.1 SW .1779 OS .2726 WLAN .1.1 Radio .2727

  • Stream live video - use http or rtmp protocols from player code?

    I'm trying to stream live video for the first time. I've installed FMIS 3.5 without Apache 2.2. I'm confused on the RTMP/HTTP protocol usage,
    I can only have port 80 opened on our FMIS 3.5 box.
    1. I've created a new directory under "C:\Program Files\Adobe\Flash Media Server 3.5\applications" called "livedev" as my publishing point.
    2. Question:
         Do I need to copy main.asc, Application.xml, allowedHTMLdomains.txt, allowedSWFdomains.txt to this directory as well?
    3. Question:
         Using FMLE 3 - FMS URL parameter which protocol do I need to use, does it matter 'http' or 'rtmp'? - http://localhost/livedev or rtmp://localhost/livedev
         Does RMTP use port 80.
    4. Question:
         In my Flash Player code. I dragged an instance of FLVPlayback component, what URL do I need for the 'Source' parameter?
         Which protocol do I need to use, does it matter 'http' or 'rtmp'? - "http://localhost/livedev/livestream" or "rtmp://localhost/livedev/livestream"
    Thanks,
    Dave

    A:
    2.  You don't need to copy main.asc unless you have logic in there that you want on your new application.  It's a text file so you can open and read it, get familiar.  allowedDomains is up to your security policy, but if you want it to apply to that application then yes.  Finally the Application.xml in there is an override of the default one in the server's conf directory - so you only need to include it if you plan on overriding settings from the default.
    3.  Chosing which type dictates whether or not you're doing HTTP (not streaming) or RTMP (streaming) however you've added a complication that you're only allowed to use port 80 - which RTMP does not by default.  FMLE doesn't support HTTP push to FMS, so the FMS URI must be fomr form of RTMP* so you're left with some good choices
    Use RTMP over port 80 like so rtmp://myServerName:80/appName/ <- notice the coded port number
    Use RTMPT which automatically uses port 80 and will get around most proxies that demand HTTP traffic - however there's more performance overhead than RTMP (think maybe 25% more overhead for a wild guess on my part)
    I dunno the answer for your FLVPlayback component but I'm going to take a guess that the issue is about the same here and you should use the same parameter that you're using for your RTMP ingest.  At worst I'm pretty sure that it will work and that's not so bad.
    Asa

  • Transfering from player to pla

    I have a jukebox 3 and a jukebox 0GB. How do I transfer from one to the other? My creative playcenter 3 doesn't recognize the 0GB, and when I try to install the 0GB software it won't with the other software.

    Hook up the player that has the music, start the software that works with it, and transfer the files to your PC. (I don't think you can transfer directly to the other player, even if they used the same software.)</LI>
    Then hook up the other player, start its software, and transfer the files from your PC to it.</LI>

  • Possible to move mp3s back to hard drive from player?

    is it possible to move or copy mp3s from the player back to the hard dri've of pc or laptop?
    i have a creative zen sleek 20gb and using the creative labs software that came with it etc.
    havent used it in a long time and i cant remember if i ever was able to move my mp3s back onto my computer again?
    does any know if its possible? the creative media source software doesnt seem to let me or give me any sort of
    opinions for moving it back.
    can any help me out?
    cheers

    HEADIN wrote:
    i dont have access to the xp computer no more.
    thats why im trying to do it on vista.
    does anybody have a copy of the explorer tool that i could use and download it or anything?
    or any other software that will do the same job?
    You did not say you had no access to the XP computer. It can be done it's just tedious.Must be installed using Compatabilty mode for XP(right-click file choose properties/compatibilty/ run as XP SP2). Read this article here to get a better understanding about it. http://mrinternet.wordpress.com/2007...ether-finally/ Read everything before attempting? to do this.Good luck. The link for the software are here ? http://support.creative.com/download...3&nOS=0&nPage= http://support.creative.com/download...&nOS=0&nPage=2 ? here. You will need to install these three things in this order ) Creative MediaSource Player/Organizer 3.30.2
    Filesize : 52.2 MBDownload
    Creative Zen and NOMAD Jukebox plugin 2.00.20 for Creative MediaSource
    >Filesize :9.72 MBDownload

  • Retaining ID3 Tag information when transferring from player to computer.

    I know that this has been discussed already, but I'm having a tough time finding it... I have the zen touch and I was wondering if anyone could direct me to the post with information on how to keep the ID3 information on the player when music is transferred on to the computer instead of having it change over to the original information before it was put on the player?....or perhaps someone could reply with instructions on how to do this?

    In MediaSource's Tools->Settings->PC Music Library, click Properties to set the folder and filename convention. Then transfer the tracks from your MP3 player to MediaSource's PC Music Library. After that, right-click the PC Music Library node in MediaSource's Sources window (which is the leftmost window in MediaSurce) and select Update Tag. This will update the tag of the audio files with the track information seen in PC Music Library. Please note that the Update Tag feature is only available in MediaSource v3.

  • Get Sequence's Enabled Audio Sources From Player Plugin

    Hi, I'm a video editor with some limited programming experience and I've been exploring the possibility of expanding on Premiere Pro's feature set. Nothing fancy or 3D just adding functionality. Specifically I'm looking to add the ability to playback a clip in the Source monitor and preview the audio sources selected on the current sequence. Meaning whichever audio sources are enabled in the sequence would playback along with the video in the source monitor. (Avid has this feature). I've not yet found anything in the documentation that suggests that the current sdk can allow this. I can't find any way to get "enabled or disabled" info from the sequence. In fact I haven't found anything on getting any settings or values from the sequence.
    Can someone point me in the right direction?
    I also would love to be able to add several other similar enhancements to Premiere Pro. I'm not much of a programmer. It will probably take me ages to do something an actual programmer would take just a few days to do, so I'm more than open to anyone willing to help. I do know Premiere Pro inside out from a user's point of view and would be willing to contribute to any effort in this particular direction.

    Yeah... I feared as much. It's too bad really. I have in fact sent a feature request for this several times. (Ever since cs4 rolled along) I just figured it wasn't something adobe was interested in. Or just not really a priority. Which is why I was looking to build it myself.
    Oh well... I guess I can try the feature request again.

  • Problems with screen, and with programs loading from player.

    First of all I just bought a refurbished Mac Pro 8-core 2.8GHz Intel Xeon running Leopard (10.5.1) and a refurbished Apple Cinema HD Display 23-inch in the aluminum enclosure.
    Please help I have really only two questions and any input would be appreciated.
    1. I have just received the computer and screen and after putting it together started it up and installed Photo Shop CS3. When I try and install Auto FX Software and Painter 10, the computer will not load the cd's. You can hear it just goes whir click, whir click, for about 4 minutes and then spits the cd’s back out. Doesn’t say anything about why. I then tried putting Photoshop back in to see if there was something with the player had happened and it started up just fine. Is this Leopard or is this the player?
    2. Next incident, about twenty minutes into doing all this my screen started flickering green and pink lines across the bottom of the screen. Then they started getting more frequent and taking over the complete screen. Then it went back and forth between either green or pink color over everything but you could still see the desktop. Then came the plaid vertical and horizontal lines that covering everything, at this point you could not see anything under them. Is this the monitor or is this the video card?
    Normally I am a believer in refurbs, but I am beginning to wonder if these were even looked at. Both items are still under warranty but I would like to know if both have to go back or what. Also I live in Alaska and the closest Mac service store is 250 miles away in Anchorage. If anyone can give me any insight about these issues I would be very thankful.
    Thank you for any and all help.
    Bob

        scm1478,
    We want you to have a fully functional device! Your issue sounds as if it may be software related. Please place your phone in "Safe Mode" and see if the issue persists. http://vz.to/1hSCHPI Keep us posted.
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • Time stamp, progress play bar missing from player

    For some reason, the time stamps and play bar are missing
    from my videos when I view them online, though they are there when
    I view locally.
    Rather, I should say they work intermittently.
    Link
    to site
    Any ideas?
    Here's a copy of my .fla
    Also, if there's a better way to view the videos, perhaps
    some sort of preloader, I'm all ears!
    I'm running Mac, Flash CS3.
    thanks much!

    It's still very intermittent for me, and more importantly, my
    client. I'm totally stumped. One page I've never gotten the
    progress bar and time to show up.
    This page never shows
    the bar/time
    Does anyone see anything in the code that looks like it would
    be causing the conflict?
    Any ideas would be greatly appreciated.

  • Moving music from player to

    Hi,
    I have a Creative Zen 20gig, with the latest drivers and firmware. I've recently switched computers, and thought I could take all the music from the old one and put it on the Creative Zen; then I could move it to the new one.
    Turns out, I can't. Can anyone help me with this? THanks,
    Sam

    There are converter programs available. The problem is that RA is a lossy compression so converting them to something else will only lose more information resulting in even lower sound quality.

  • Zen vision m cant play or transfer from player to

    when i connect my player to my pc i can go into it and see the songs but cant play or copy the song to my pc, i have done it before on my friends pc with no problem why cant i do it on mine!?

    Sounds like you both need to report it as a bug. In my experience bugs mentioned here don't tend to get fixed.
    Go to the support section under contact, and file a report there of the bug.
    That way a ticket will get made and put in the system and sooner (most likely later) we might see a fix in the next firmware.

Maybe you are looking for