Boot a pc on lan with actionscript 3

Hello:
Can you tell me how can I boot one or more pc's over a Lan with AS3?
I think this is call WOL.
thank you very much

I have never used the asUDP xtra, but after a quick read of the documentation it looks like it might work. You will probably need to use the accompanying BytesXtra as well. The structure of the Magic Packet is described in this wikipedia article http://en.wikipedia.org/wiki/Wake-on-LAN.
It is an interesting project. Please post updates of your progress.

Similar Messages

  • Boot a pc on lan with Lingo

    Hello:
    Can you tell me how can I boot one or more pc's over a Lan with Lingo?
    I think this is call WOL.
    Do I need any Xtras for this?
    Have you any sample code?
    thank you very much

    I have never used the asUDP xtra, but after a quick read of the documentation it looks like it might work. You will probably need to use the accompanying BytesXtra as well. The structure of the Magic Packet is described in this wikipedia article http://en.wikipedia.org/wiki/Wake-on-LAN.
    It is an interesting project. Please post updates of your progress.

  • [solved] Cannot activate wake on lan with systemd

    I have activated successfully wake on lan with systemd, following these guidelines :
    https://wiki.archlinux.org/index.php/Wol#With_systemd
    My [email protected] is:
    [Unit]
    Description=Wake-on-LAN for %i
    Requires=network.target
    After=network.target
    [Service]
    ExecStart=/usr/bin/ethtool -s %i wol g
    Type=oneshot
    [Install]
    WantedBy=multi-user.target
    It worked nicely until I recently had to reinstall my server (following a disk replacement). Since then systemd fails to activate wake on lan.
    Output from systemctl status wol@enp0s4 :
    ● [email protected] - Wake-on-LAN for enp0s4
    Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
    Active: inactive (dead) since ven. 2014-07-25 11:21:28 CEST; 23min ago
    Process: 181 ExecStart=/usr/bin/ethtool -s %i wol g (code=exited, status=0/SUCCESS)
    Main PID: 181 (code=exited, status=0/SUCCESS)
    Output from ethtool enp0s4|grep "Wake" :
    Supports Wake-on: pg
    Wake-on: d
    If I explicitly start the service with systemctl start wol@enp0s4, then ethtool enp0s4|grep "Wake" shows:
    Supports Wake-on: pg
    Wake-on: g
    My guess is that the service does not start at the correct timing at boot.
    I have also tried wol-systemd package from the AUR without success.
    Last edited by elb (2014-07-25 15:02:21)

    After a fiew tries and reading docs, I found that replacing network.target with multi-user.target in [email protected] seems to work for me.

  • MSI K8N Neo2 Platinum (WAKE On Lan with Realtek)?

    Hello can the MSI K8N Neo2 Platinum (BIOS 1.B) WAKE On Lan with the Realtek card?
    It does not appear to work for me and there is nothing in the BIOS.
    My WOL packets wake up other PC's.
    Please Help.

    Hello !
    Go into Bios Setup, Integrated Periphals, and disable the nvidia Lan, but let the Onboard LAN enabled.
    Now go to PCI Configuration, Wakeup Events, and enable wakeup on PCI event and wake on LAN.
    Check in Boot Order Menu if you can select the realtek onboard Lan as first booting device, push it in first place.
    Another Option could be using the nvidia Lan, its reported to work with wakeon lan.
    Greetz

  • Can't access object using "id" or "name" if created with actionscript

    How can you register an instance of an object with actionscript so that it's id or name value is accessible?
    I included a simple example where a Button is created using mxml and in the same way it is created using actionscript.  The actionscript object is inaccessible using it's "id" and "name" property.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   creationComplete="application1_creationCompleteHandler(event)">
        <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                protected function application1_creationCompleteHandler(event:FlexEvent):void
                    import spark.components.Button;
                    var asBtn:Button = new Button();
                    asBtn.label = "actionscript";
                    asBtn.x = 200;
                    asBtn.id = "asButton";
                    asBtn.name = "asButtonName";
                    addElement(asBtn);
                    trace("mxmlButton="+this["mxmlButton"].label); // returns: mxml  label
                    //trace("mxmlButton="+this["asButton"].label); // returns runtime error: ReferenceError: Error #1069: Property asButton not found on TestId and there is no default value.
                    //trace("mxmlButton="+this["asButtonName"].label); // returns runtime error: ReferenceError: Error #1069: Property asButtonName not found on TestId and there is no default value.
            ]]>
        </fx:Script>
        <s:Button
            id="mxmlButton"
            label="mxml label"
            alpha="0.8"/>
    </s:Application>

    Hi Dan,
    It is a very rare occurrence when I miss not being able to access an object (object property, really) using the ["name"] notation for objects created using actionscript.
    In MXML the compiler is conveniently adding an attribute to the class with the same name as the id, so you can conveniently refer to it using the [] notation. While we explicitly specify an application container to use, the MXML compiler creates a custom container which is a derivative of the base container and to that it adds properties for the children declared in MXML. I guess it also effectively calls "addElement" for us when  the container is being constructed.
    Your example assumes that using "addElement" to add the button to the application container is the same as declaring a variable (ie property ). It isn't, so there's no point in looking for an property of the name "as3Button" using the [] notation, because it doesn't exist. The container is managing a collection of children in it's display list and that's not the same as being accessible as properties of the container.
    Generally speaking, accessing properties using the ["name"] syntax isn't necessary.
    Paul
    [edit: you may wonder why "addElement" doesn't conveniently also add the "id" attribute to be an property of the container class. Unfortunately, it can't because the container class would need to be dynamic and it's not. A further complication would be that adding properties at runtime would invite naming clashes at runtime with associated mayhem. MXML can do this because the compiler generates the class and can trap name duplication at compile time.
    Great question, BTW.
    -last edit changed my "attributes" to be "properties" in line with Adobe's terminology]

  • Pop/Imap retrieving and redistribute in LAN with OsX Server

    It's possible to download mail accounts hosted in my isp and redistribut'em in my lan with OsX Server with it's own mail server?
    The scope is not to have a local server mail because we have ADSL and sometimes the line broke up...
    We prefere have mail hosted more securely in our external isp.
    But an internal mail server is a commodity very useful...
    Sorry if the questions is answered before...
    Thanks in advance.

    Maybe not easy but should work:
    http://www.macosxhints.com/article.php?story=2002052509542613
    man fetchmail

  • I have a copy of Windows 7, and I am trying to bring up Boot Camp on my MacBook with Snow Leopard.

    I have a copy of Windows 7, and I am trying to bring up Boot Camp on my MacBook with Snow Leopard. But my Snow Leopard install disk is too old for Windows 7, so attempted Boot Camp install of drivers fails.
    I have hand-installed the NVidia graphics driver, and I have keyboard, minimal trackpad, and hardwire to internet all working. So the WIndows machine is usable. But I am hurting for wi-fi, better trackpad, and whatever else is delivered by Boot Camp. I can't use any of the Boot Camp upgrades because I do not have XP or Vista.

    Dear Nathan,
    Many thanks. To the best of my memory, that is how I got where I am today. Initially I had one failed setup, then discovered compatibility mode and ran using it.  The result was not an obvious failure, but something was not there because not only were some drivers missing (wi-fi, trackpad, ...) but (much to my disappointment) the 3.1 update would not run. It complained that 3.0 wasn't there. If I hardwired to my home network, the machine would do almost everything I wanted, but the graphics were slow and clumsy. That is when I hunted around for the NVidia driver and downloaded it from NVidia. And that is where I stand now.
    My son found this link http://www.simplehelp.net/2009/01/15/using-boot-camp-to-install-windows-7-on-you r-mac-the-complete-walkthrough/
    which has instructions claiming to do the install straight to Win 7 without using compatibility mode.
    Given that my clumsy efforts to patch things up have probably necessitated a Win 7 deinstall and reinstall to test either your plan or the one my son found, I am inclined to sit tight for a couple of days to see  how much I can learn.
    I appreciate your interest in  this problem, and if you are up for reading the process at the link my son found and commenting, I would be grateful.
    In any case, many thanks, Paul

  • I have a copy of Windows 7, and I am trying to bring up Boot Camp on my MacBook with Snow Leopard. But my Snow Leopard install disk is too old for Windows 7, so attempted Boot Camp install of drivers fails.

    I have a copy of Windows 7, and I am trying to bring up Boot Camp on my MacBook with Snow Leopard. But my Snow Leopard install disk is too old for Windows 7, so attempted Boot Camp install of drivers fails.
    I have hand-installed the NVidia graphics driver, and I have keyboard, minimal trackpad, and hardwire to internet all working. So the WIndows machine is usable. But I am hurting for wi-fi, better trackpad, and whatever else is delivered by Boot Camp. I can't use any of the Boot Camp upgrades because I do not have XP or Vista.

    While we all have MacBooks in this forum not all of us use Boot Camp. There's a Boot Camp Support Community where everybody uses Boot Camp. You should also post this question there.
    https://discussions.apple.com/community/windows_software/boot_camp

  • How can I use LCCS with ActionScript 3 and Flash CS4?

    Hi,
    Using Stratus I was able to create an an application using Action Script 3 and Flash CS4.  The sample code on the Adobe site was quite straight forward and easy to understand.  I now want to switch over to  LCCS but can't find anything any where on how to use Action Script 3 and Flash CS4 with LCCS.  Do I need to know Flex to be able to use LCCS?  Everything was quite simple and easy to understand with Stratus and makes complete sense.  But LCCS is really confusing.  Is there any sample code on how to establish a connection in Action Script 3 and then stream from a webcam to a client.  There is nothing in the  LCCS SDK that covers Flash and Action Script 3.  Please help!  I found the link below on some forum but it takes me nowhere.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=75 9&threadid=1407833&enterthread=y

    Thanks Arun!
    Date: Thu, 29 Apr 2010 11:44:10 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I use LCCS with ActionScript 3 and Flash CS4?
    Hi,
    Welcome to the LCCS world.
    Please refer to the SDK's sampleApps folder. There would be an app called FlashUserList. The app demonstrates how LCCS can be used with Flash CS4. Its a  pretty basic app, but should help you moving.
    We are trying to improve our efforts to help developers in understanding our samples. Please do let us know if we can add something that would help others.
    Thanks
    Arun
    >

  • Stop and Play All Child MovieClips in Flash with Actionscript 3.0

    I am stuck with the ActionScript here. I have a very complex animated flash movie for eLearning. These contain around 10 to 15 frames. In each frame I am having multiple movie clip symbols. The animation has been created using a blend of scripting and also normal flash animation.
    Now I want to create pause and play functionality for the entire movie. I was able to create the pause function but when i try to play the movie it behaves very strange.
    I was able to develop the pause functionality by refering to the below mentioned links:
    http://www.unfocus.com/2009/12/07/stop-all-child-movieclips-in-flash-with-actionscript-3-0 /
    http://www.curiousfind.com/blog/174
    Any help in this regard is highly appreciated as i am approaching a deadline.
    I am pasting the code below:
    import flash.display.MovieClip;
    import flash.display.DisplayObjectContainer;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import fl.transitions.*;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    import flash.events.Event;
    import flash.events.MouseEvent;
    stop();
    // function to stop all movieclips
    function stopAll(content:DisplayObjectContainer):void
        if (content is MovieClip)
            (content as MovieClip).stop();
        if (content.numChildren)
            var child:DisplayObjectContainer;
            for (var i:int, n:int = content.numChildren; i < n; ++i)
                if (content.getChildAt(i) is DisplayObjectContainer)
                    child = content.getChildAt(i) as DisplayObjectContainer;
                    if (child.numChildren)
                        stopAll(child);
                    else if (child is MovieClip)
                        (child as MovieClip).stop();
    // function to play all movieclips
    function playAll(content:DisplayObjectContainer):void
        if (content is MovieClip)
            var movieClip:MovieClip = content as MovieClip;
            if (movieClip.currentFrame < movieClip.totalFrames) // if the main timeline has reached the end, don't play it
       movieClip.gotoAndPlay(currentFrame);
        if (content.numChildren)
            var child:DisplayObjectContainer;
            var n:int = content.numChildren;
            for (var i:int = 0; i < n; i++)
                if (content.getChildAt(i) is DisplayObjectContainer)
                    child = content.getChildAt(i) as DisplayObjectContainer;
                    if (child.numChildren)
                        playAll(child);
                    else if (child is MovieClip)
                        var childMovieClip:MovieClip = child as MovieClip;
                        if (childMovieClip.currentFrame < childMovieClip.totalFrames)
          //childMovieClip.play();
          childMovieClip.play();
    function resetMovieClip(movieClip:MovieClip):MovieClip
        var sourceClass:Class = movieClip.constructor;
        var resetMovieClip:MovieClip = new sourceClass();
        return resetMovieClip;
    pauseBtn.addEventListener(MouseEvent.CLICK, onClickStop_1);
    function onClickStop_1(evt:MouseEvent):void
    MovieClip(root).stopAll(this);
    myTimer.stop();
    playBtn.addEventListener(MouseEvent.CLICK, onClickPlay_1);
    function onClickPlay_1(evt:MouseEvent):void
    MovieClip(root).playAll(this);
    myTimer.start();
    Other code which helps in animating the movie and other functionalities are as pasted below:
    stage.addEventListener(Event.RESIZE, mascot);
    function mascot():void {
    // Defining variables
    var mc1:MovieClip = this.mascotAni;
    var sw:Number = stage.stageWidth;
    var sh:Number = stage.stageHeight;
    // resizing movieclip
    mc1.width = sw/3;
    mc1.height = sh/3;
    // positioning mc
    mc1.x = (stage.stageWidth/2)-(mc1.width/2);
    mc1.y = (stage.stageHeight/2)-(mc1.height/2);
    // keeps the mc1 proportional
    mc1.scaleX <= mc1.scaleY ? (mc1.scaleX = mc1.scaleY) : (mc1.scaleY = mc1.scaleX);
    stage.removeEventListener(Event.RESIZE, mascot);
    mascot();
    this.mascotAni.y = 100;
    function mascotReset():void
    // Defining variables
    var mc1:MovieClip = this.mascotAni;
    stage.removeEventListener(Event.RESIZE, mascot);
    mc1.width = 113.45;
    mc1.height = 153.85;
    mc1.x = (stage.stageWidth/2)-(mc1.width/2);
    mc1.y = (stage.stageHeight/2)-(mc1.height/2);
    // keeps the mc1 proportional
    mc1.scaleX <= mc1.scaleY ? (mc1.scaleX = mc1.scaleY) : (mc1.scaleY = mc1.scaleX);
    var interval:int;
    var myTimer:Timer;
    // function to pause timeline
    function pauseClips(secs:int, myClip:MovieClip):void
    interval = secs;
    myTimer = new Timer(interval*1000,0);
    myTimer.addEventListener(TimerEvent.TIMER, goNextFrm);
    myTimer.start();
    function goNextFrm(evt:TimerEvent):void
      myTimer.reset();
      myClip.nextFrame();
      myTimer.removeEventListener(TimerEvent.TIMER, goNextFrm);
    // function to pause timeline on a particular label
    function pauseClipsLabel(secs:int, myClip:MovieClip, myLabel:String):void
    interval = secs;
    myTimer = new Timer(interval*1000,0);
    myTimer.addEventListener(TimerEvent.TIMER, goNextFrm);
    myTimer.start();
    function goNextFrm(evt:TimerEvent):void
      myClip.gotoAndStop(myLabel);
      myTimer.removeEventListener(TimerEvent.TIMER, goNextFrm);
    MovieClip(root).pauseClips(4.5, this);
    // function to fade clips
    function fadeClips(target_mc:MovieClip, next_mc:MovieClip, from:Number, to:Number):void
    var fadeTW:Tween = new Tween(target_mc, "alpha", Strong.easeInOut, from, to, 0.5, true);
    fadeTW.addEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    function fadeFinish(evt:TweenEvent):void
      next_mc.nextFrame();
      fadeTW.removeEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    // function to fade clips with speed
    function fadeClipsSpeed(target_mc:MovieClip, next_mc:MovieClip, from:Number, to:Number, speed:int):void
    var fadeTW:Tween = new Tween(target_mc, "alpha", Strong.easeInOut, from, to, speed, true);
    fadeTW.addEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    function fadeFinish(evt:TweenEvent):void
      next_mc.nextFrame();
      fadeTW.removeEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    // function to show screen transitions
    function screenFx(target_mc:MovieClip, next_mc:MovieClip):void
    //var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Iris, direction:Transition.OUT, duration:1.2, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});
    tranFx.addEventListener("allTransitionsOutDone",doneTrans);
    function doneTrans(evt:Event):void
      next_mc.nextFrame();
      tranFx.removeEventListener("allTransitionsOutDone",doneTrans);
    // function to show screen transitions inverse
    function screenFxInv(target_mc:MovieClip, next_mc:MovieClip):void
    var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Iris, direction:Transition.IN, duration:2, easing:Strong.easeOut, startPoint:5, shape:Iris.SQUARE});
    tranFx.addEventListener("allTransitionsInDone",doneTrans);
    function doneTrans(evt:Event):void
      next_mc.nextFrame();
      tranFx.removeEventListener("allTransitionsInDone",doneTrans);
    // function to zoom in
    function zoomFx(target_mc:MovieClip):void
    //var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Zoom, direction:Transition.IN, duration:3, easing:Strong.easeOut});
    //tranFx.addEventListener("allTransitionsInDone",doneTrans);
    /*function doneTrans(evt:Event):void
      next_mc.nextFrame();
    // Blinds Fx
    function wipeFx(target_mc:MovieClip):void
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Wipe, direction:Transition.IN, duration:3, easing:Strong.easeOut, startPoint:9});
    // Blinds Fx Center
    function fadePixelFx(target_mc:MovieClip):void
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Fade, direction:Transition.IN, duration:1, easing:Strong.easeOut});
    tranFx.startTransition({type:PixelDissolve, direction:Transition.IN, duration:1, easing:Strong.easeOut, xSections:100, ySections:100});

    This movie is an animated movie from the start to end. I mean to say that though it stops at certain keyframes in the timeline it stops for only a certain time and then moves on to the next animation sequence.
    Its not an application where the user can interact.
    On clicking the play button i want the movie to play normally as it was playing before. If the user has not clicked on the pause button it would anyhow play from start to finish.
    Is there anyway where i could send in the fla file?

  • Is there a way to open a local file not a web file with actionscript 3.0?

    Reason for asking is because I am making a media player in Adobe Flash CS6, and was wondering if there was anyway to make a button to open a local .fla file in a directory with ActionScript 3.0 or if there are any other ways I can achieve this?
    Thanks Casey

    with an air app, check the file class.  otherwise, check the filereference class.

  • SWF movie export on frame-by-frame basis WITH actionscript

    Hi there,
    I know they're two ways of exporting flash movies:
    Export the whole timeline. This only allows timeline animations and gets messy because you have to cram up everything on the main timeline.
    Realtime-Export via Quicktime. This is a "full blown" export, but heavily dependent on CPU power or speed of harddrive, depending on resolution.
    I also work a lot with music programs and there is an option called "mixdown". This will render the whole song - as fast as the processor is capable - to a WAV-file. So time doesn't matter anymore, notes don't get skipped, etc.
    I would like to see something like this in flash, too. WITH actionscript.
    I just want flash to export one frame for each "onEnterFrame" event, NOT when the timer tells you, it's time for a "next frame". So this would mean not to trigger the onEnterEvent when the appropiate time has passed, but to trigger it, when the next frame can be exported.
    Libraries like "TweenLite/Max" are capable of doing frame-based animations, independent from the timer, so everything on that end is pretty fine.
    Would be so great if that was possible in any way.
    Is it already in CS5? Or maybe an option in CS6... argh, so many years to wait...
    until then, I have to measure the fps, look out for the lowest number, export at THAT framerate (in most of the cases just 4 or 5 fps, even on a very fast computer - just because 2 or 3 frames happen to render slower than the other 200) and afterwarts set it to 25 again (I use Blender to do this)

    Greg-
    Good Lead - Thanks.
    I learned that having skinned components (which this uses)
    keeps this preloader from working properly. The results were
    unstable. It looks like a great little preloader for other things
    though.
    I also learned that it's a problem that others have
    encountered and that hasnt been solved yet...
    ...."hello Adobe?"
    Thanks again for helping me understand this.
    JL

  • Windows Vista and Windows 7 Only Boots to a black screen with a mouse cursor

    Windows Vista and Windows 7 Only Boots to  a black screen with a mouse cursor after I installed Mcafee Internet Security.
    Hi I installed 1of 3 McAfee Internet Security protections on my HP laptop a few weeks ago with no issues. I Have a Dell XPS 420 desk top with Windows Vista operating
    system, it’s never had any issues, until 2 nights ago I installed McAfee Internet Security (detected incompatible files and will remove) pc now only boots up to a black screen with a mouse cursor, it will show the windows logo and a hash symbol floating around
    the screen. Now 2 weeks ago I installed the same program on my Dell all in one desk top with Windows 7, the same issue happen but that pc has no screen activity, I tried a back to factory reboot on this one, still black screen. 

    Hi,
    Please install the compatible version of McAfee Internet Security:
    http://home.mcafee.com/store/internet-security
    if you have startup issue, you can boot into Safe Mode to uninstall the problematic software to go back into Windows.
    Alex Zhao
    TechNet Community Support

  • Boot Camp safe to use with Time Machine?

    Is Boot Camp safe to use with Time Machine? I will be installing Windows on a partition and using an external hard drive to back up. I only want the Mac partition to be backed up, though, since Windows will just be used for applications which I can reinstall if my machine messes up.

    Yes, this is perfectly safe. Time Machine won't backup the Bootcamp Windows partition.

  • Computer will not boot up.   a circle with a line thru it appears.

    All of a sudden my computer will not boot up and a circle with a line thru it comes up.  What is the problem and what can I do to fix it?

    Hi, master hunter. 
    The most common meaning of this symbol is that something in the operating system is damaged.  Here is the best resource when troubleshooting this behavior. 
    OS X: About kernel panics
    http://support.apple.com/kb/TS3742
    If you prefer us to assist you with this issue, contact us here.
    Cheers,
    Jason H. 

Maybe you are looking for