Flash Comms script

Guys,
I'd be most grateful if someone can help me with the below
flashcomm script.
I'm trying to take a screenshot of a video stream and store
it on my server as a jpeg file.
I made a test file which takes a screenshot of whats on my
webcam, convert it to a bitmap and then send it piece by piece to
my php file and put it together with GD. That all works perfectly.
For example:
_root.mycam = Camera.get();
_root.myvideo.attachVideo(_root.mycam);
bmp= new BitmapData(144, 104, true, 0x00000000);
bmp.draw(_root.myvideo);
And then i split it up and send it.
However when i then change it to convert a video stream into
a bitmap it doesn't seem to get anywhere.
For example:
_root.camstream = new NetStream(_root.nc);
_root.camstream.onStatus = function(infoObject)
if(infoObject.code == "NetStream.Play.Start")
_root.myvideo.attachVideo(_root.camstream);
bmp= new BitmapData(144, 104, true, 0x00000000);
bmp.draw(_root.myvideo);
_root.camstream.play("thatuserscam");
Thats not exactly my code but thats a simple version of it
Does anyone have any idea why this might happen? and any
clues how to get around this??
Many thanks in advance.

Anyone? :-(

Similar Messages

  • Video bookmark (videomark) using flash/action script?

    Video bookmark is called videomark.
    Anybody did videomark using flash?.
    Is there any good place, i can learn more about videomark in
    flash?.

    yeah..........
    Can I have a small example on this ... so that it would be very easy for me to understand....
    I am a new bee in flash action scripting......
    Thanks & Regards

  • Can access c++ library from flash action script by using SWC lib?

    We want to develope a Flash application based on Windows CE 6.0 R3. The application aims to communicate with middleware libraries written in C/C++. Is it possible to create SWC file using the c++ library file so that we can load this as a component in fla project for accessing the library functions from flash action script 3.0? OR Is there any simple way to access c++ library from action script?
    Thanks,
    Saumini

    I don't think Alchemy will help you.  The reason is Alchemy does not give socket capabilities beyond what Flash provides.

  • How do you auto reconnect a live video stream broadcast in flash action script 3?

    how do you auto reconnect a live video stream broadcast in flash action script 3?
    so i don't have to ask people to refresh the page if the connection drops
    i copy pasted the live video stream broadcast files and script from here;
    http://www.adobe.com/devnet/adobe-media-server/articles/beginner_live_fms3.html
    http://www.adobe.com/content/dotcom/en/devnet/adobe-media-
    server/articles/beginner_live_fms3/_jcr_content/articlePrerequistes/multiplefiles
    /node_1278314297096/file.res/beginner_live_fms3.zip
    i don't know what i'm doing

    Why don't you use several layers with appropriate alpha properties, and move these layers according to the mouse events?

  • Why am i getting Adobe Flash Player script crashes?

    ello,
    I've noticed in the last week or two my scripts for Adobe Flash Player completely freezing up. After a full five minutes of freezing, I get a general warning that:
    "A script in this movie is causing Adobe Flash Player to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?"
    "become" unresponsive? lol Anyway, even after I click "yet", it still takes a least another five minutes before it unfreezes. Now, I used to problems with Jave scripts, but those wouldn't take tens-of-minutes to abort. I've literally had Adobe Flash Player scripts freezes for 15 minutes at a time leaving my browser completely unresponsive.
    I'm having this problem particularly when I visit the site Wonkette.

    Come on. No one else is having this problem?

  • Help... link URL from XML to Flash Action Script 2

    I am trying to link a different URL to each of my files in XML and use this XML in Flash were I created a carousel. In the carousel, when you click on a picture I would like to insert a specific URL. Each picture will have a different URL (http://------------).
    Here are my codes:
    XML:
    <icons>
    <icon image="icon1.png" tooltip="Planning" />
    <icon image="icon2.png" tooltip="Investments" />
    <icon image="icon3.png" tooltip="Education" />
    <icon image="icon4.png" tooltip="Insurances" />
    <icon image="icon5.png" tooltip="Mortgages" />
    <icon image="icon6.png" tooltip="Retirement" />
    <icon image="icon7.png" tooltip="Business Owner" />
    <icon image="icon8.png" tooltip="Banking" />
    </icons>
    Flash Action Script 2:
    import mx.utils.Delegate;
    var numOfItems:Number;
    var radiusX:Number = 250;
    var radiusY:Number = 75;
    var centerX:Number = Stage.width/2;
    var centerY:Number = Stage.height/2;
    var speed:Number = 0.01;
    var perspective:Number = 60;
    var home:MovieClip = this;
    var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
    tooltip._alpha = 0;
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = function()
    var nodes = this.firstChild.childNodes;
    numOfItems = nodes.length;
    for(var i=0;i<numOfItems;i++)
      var t = home.attachMovie("item","item"+i,i+1);
      t.angle = i * ((Math.PI*2)/numOfItems);
      t.onEnterFrame = mover;
      t.toolText = nodes[i].attributes.tooltip;
      t.icon.inner.loadMovie(nodes[i].attributes.image);
      t.ref.inner.loadMovie(nodes[i].attributes.image);
      t.icon.onRollOver = over;
      t.icon.onRollOut = out;
      t.icon.onRelease = released;
    function over()
    home.tooltip.tipText.text = this._parent.toolText;
    home.tooltip._x = this._parent._x;
    home.tooltip._y = this._parent._y - this._parent._height/2;
    home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
    home.tooltip._alpha = 100;
    function out()
    delete home.tooltip.onEnterFrame;
    home.tooltip._alpha = 0;
    function released()
    function moveTip()
    home.tooltip._x = this._parent._x;
    home.tooltip._y = this._parent._y - this._parent._height/2;
    xml.load("icons.xml");
    function mover ()
    this._x = Math.cos(this.angle) * radiusX + centerX;
    this._y = Math.sin(this.angle) * radiusY + centerY;
    var s = (this._y - perspective) / (centerY+radiusY-perspective);
    this._xscale = this._yscale = s * 100
    this.angle += this._parent.speed;
    this.swapDepths(Math.round(this._xscale) + 100);
    this.onMouseMove = function()
    speed = (this._xmouse-centerX)/10000;
    Thanks so much for the help.

    You should be able to add that data into your xml tags and then extract it in the AS2 onLoad function...
    XML:
    <icons>
    <icon image="icon1.png" tooltip="Planning" linkURL="http://www.someURL.com/somePage.html" />
    AS2:
    xml.onLoad = function()
    etc....
    t.onEnterFrame = mover;
    t.toolText = nodes[i].attributes.tooltip;
    t.urlLink = nodes[i].attributes.linkURL;
    etc...

  • How to create a flash automatization script?

    Here's the situation. I have a font support library, however for each font I have to manually create a new swf file, such as Tahoma_14_bold.swf - which is a lot of work.
    I need to create a Flash automatization script (extension or command, NOT AS3 code) that automatically opens up a file, changes the font of a pre-existing textfield on the stage to, for example, Tahoma Regular 10 with bitmap font setting, saves it as Tahoma_Regular_10.fla in a destination directory, compile, then change the font size to 11, save it as Tahoma_Regular_11.fla, compile and so on and so forth, up until all fonts are created.
    The end result would be 30 or so swf and fla files for each possible variation of the font.
    How would I go around doing this? Is this at all possible?

    1. Efficiency:
    Application has a fontStyle manager. The application never (outside of debugging purposes) creates textfields by itself. All textfields used to display text are created by a call to the fonts manager, like "fontsStyleManager.createFont("header1");"
    As such, each fontStyle has an associated font SWF and other textField parameters. The website owner can specify which particular font SWFs are to be loaded at start, and all unused font SWFs are highlighted, to be deleted of the list.
    2. Flash font embedding sucks
    Flash embedding sucks. I've had whole projects refuse to compile and not even display any messages. I had fonts that changes sizes and font faces. I've had fonts not embed at all, even though I specified explicitly for them to be included. Embeding by code and at runtime is cleaner, and it works
    3. Neccesity
    Embedding fonts from Flex embeds all European characters including German, Greek, Norwegian and so on.. except Polish. In here I can specify my own precise character set using the flash IDE.
    4. Fonts in Flash are complicated
    Normal, vector fonts are embedded easy. Size doesn't matter, as the font can clearly scale to any size and remain nicely anti-aliased. Embeding a Bold style doesn't mean yhou embed a Regular. Bitmap fonts are embeded by font size, that is, embeding a 14px bitmap won't make it possible to use a 16px. In addition, embedding a Bold doesn't embed a Regular bitmap font. What's interesting is that you can take a 12px embed font and set the TextFormat to, say, 22px, and get a very interesting-looking pixel effect, as the font gets scaled up.
    5. Flexibility - the ability to see a completely different set of fonts in your project without having to recompile - priceless.

  • Flash Detection Script

    The Flash detection script generated by Flash 8 doesn't work
    with IE7 .....andy fixes out there??

    On Wed, 12 Sep 2007 17:48:49 +0000 (UTC), "joeq"
    <[email protected]> wrote:
    > let's say you have a page with that script and some
    flash content on it as
    >well... called scriptwithflash.html (catchy, eh?). i want
    to be able to have
    >that page load if the proper version of flash is found
    and redirect to another
    >page (ohcrapyoudonthaveflash.html) if it is isn't.
    Okay. Now it makes sense. Change this:
    if ( MM_FlashCanPlay ) {
    window.location.replace("
    http://www.leoandsabrina.com/main.html");
    } else{
    window.location.replace("
    http://www.leoandsabrina.com/poop.html");
    To this:
    if ( !MM_FlashCanPlay ) {
    window.location.replace("
    http://www.leoandsabrina.com/ohcrapyoudonthaveflash.html");

  • Why are Adobe Flash Player scripts freezing?

    Hello,
    I've noticed in the last week or two my scripts for Adobe Flash Player completely freezing up. After a full five minutes of freezing, I get a general warning that:
    "A script in this movie is causing Adobe Flash Player to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?"
    "become" unresponsive? lol Anyway, even after I click "yet", it still takes a least another five minutes before it unfreezes. Now, I used to problems with Jave scripts, but those wouldn't take tens-of-minutes to abort. I've literally had Adobe Flash Player scripts freezes for 15 minutes at a time leaving my browser completely unresponsive.
    It all happened after updating my plug-ins. I've tried messing around with them, disabling them all. I've even tried uninstalling and reinstalling flash player and making sure I had the right version for my old-ish operating system (Windows XP). That seemed to work for one session, but it's back to freezing after logging into places like mail.com.
    Is anyone else having this problem? Is this a plug-in issue? How can be be remedied?

    Unfortunately, this is not my problem. I can video videos on sites like Youtube, just find. The scripts freeze up on random pages. Basically, anywhere with ads that use Adobe Flash Player. It didn't use to do this.

  • How to script the install of Flash Comm. Server?

    Hi all,
    I need to deploy FCS 1.5 to a number of W2K servers. I have
    scripted every single part of the install and updates, EXCEPT for
    the initial FCS1.5 install, because I can find no documentation on
    it at all - anywhere!
    The variables that I need to be able to "pass" to the install
    are:
    IIS or folder for install
    first / last name for reg. purposes
    company name for reg. purposes
    serial #
    admin username
    admin password
    Is there any way that this can be scripted? I have gone
    through all of Adobe's docs and various places on the web but
    cannot find any info on any potential switches/files that I can
    feed to the installer.
    Here's hoping that someone has done this already!!!
    Thanks so much,
    Rick Tait

    Hi,
    ALTER SYSTEM SET DB_RECOVERY_FILE_DEST=’new_location’;
    After changing FRA location, all new files are created in the new location. However, permanent and old transient files are left in the old FRA location.
    Regards

  • Flash 6 vs Flash 8, Script not working, Fla attached

    Can some please help me and tell me why the action script
    which makes the pictures enlarge on mouseover works with flash 6
    publish settings but not flash 8.
    ...nevermind, figured it out, thanks....
    Thanks a million!
    Rich

    unless you uncheck "autokerning" in property inspector, your
    textfields
    auto-activate html mode, so your number is wrapped in html
    tags.
    really weird!
    jaya_r schrieb:
    > Hi
    >
    > I tried this simple script in the trial version of Flash
    8 which does not
    > seem to be working. Can anyone please let me know what
    could possibly be the
    > problem. When i used the same script in Flash MX 2004,it
    worked. However even
    > after re-installing the trial version of Flash 8,it does
    not work. Basically
    > this is what i made:
    >
    > 1) input text field with a variable name of :inputNum
    > 2)dynamic text field with a variable name of :outputBool
    > 3)made a button with an instance name : enter_btn
    > 4)put this code in the actions layer:
    >
    > enter_btn.onRelease=function(){
    > outputBool=(inputNum<100);
    > };
    > var inputNum:Number=0;
    > var outputBool:Boolean=true;
    >
    > At the outset, it shows 0 in the 'inputNum' and the true
    in the
    > 'outputBool'.However when i enter any number in the
    inputNum it shows
    > 'undefined' in the outputBool. Why is that so? Would
    really appreciate an
    > answer.
    >
    > Thanks
    > Jayashree
    >

  • Flash install scripting error

    When I try to install the Flash player (or acrobat reader) under Windows XP SP3, I get an "Internet Explorer Script Error" popup with a scripting error
    after the installation file is downloaded and begins to execute.
    "An error has occurred in the script on this page"
    "Line: 1"
    "Char: 13054"
    "Error: Object expected"
    "Code: 0"
    "URL: http://127.0.0.1:2232/app/_js/adobe.js"
    "Do you want to continue running scripts on this page?"
    Clicking yes does work in allowing the install to proceed.
    I was able to download the acrobat reader install from the FTP site but still can't get the Flash Player to install.
    This has been happening for months - each time I am notified a new version exists.
    Thanks for any help!
    BTW - I did find the manual install file at http://www.adobe.com/support/flashplayer/downloads.html#fp11

    ronczap wrote:
    BTW - I did find the manual install file at http://www.adobe.com/support/flashplayer/downloads.html#fp11
    This site only contains the content debugger version of Flash Player; you can download the offline installers for the regular Flash Player from http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html#main-pars_header
    Adobe Reader offline download: http://get.adobe.com/reader/enterprise/

  • Adobe Flash Player Script Error: Script Running Slowly

    Hello everyone. I have a problem with my laptop when going on to certain websites. When I go one of the websites with a script error, I get a message that a script error is causing my Adobe Flash Player to run slowly, and that if it continues to run the computer may become unresponsive, and it asks if I want to stop running the script or something. I don't know what to do with it. Help!
    I am running a Windows 7 laptop with a Internet Explorer 8 (I think) and Google Chrome (Both IE and Google Chrome have the same problem), and also Adobe Flash Player 11 ActiveX.
    [ email signature removed - see http://forums.adobe.com/docs/DOC-3731 ]

    I would suggest you update your flash.  You are running flash 10 and the latest is flash 15.
    Download and install the latest version of Adobe Flash for IE.
    http://aihdownload.adobe.com/bin/live/install_flas​hplayer15x32ax_mssd_aaa_aih.exe

  • Flash error "script causing Flashplayer9 to run slowly"

    my browser (FFire, IE7) is hanging whenever i run this Flash
    site
    the second time around and subsequent times. The AS around
    the point/frame where the movie freezes is the code I've
    attached...
    i didn't write the code; i'm just guessing that this might be
    a problem since it's right at the frame where the movie stalls - it
    actually calls another external page or two along with images from
    folders, so i'm not sure what or where the issues is...
    does this look like a problem?

    neither of the statements you have within the the while()
    loop are 'conditions' and evaluate to 'nothing' - this script will
    be very problematic and it would be far better to use a FOR loop
    here.
    while (_root['cat_'+k]) <-- means nothing there is no
    condition declared
    while (_root['cat_'+k] != undefined) <-- at least means
    something
    whatever is within the condition of the loop should evaluate
    to a Boolean return - eg. true/false - either 'continuing' the
    looping action or finding that the condition has been 'satisfied'
    and the loop terminates.
    additionally a nested while loop is going to be 'dangerous'
    unless you really , really know what you doing and have an
    absolutely controlled variable set that will 'always' without fail
    complete.
    further - it's not a good idea to name MCs the same and nest
    them as in: ( gallery.gallery ) this will cause problems for the
    compiler - I'd change one of the two of these instance
    names.

  • New to flash / action script 3

    hi guys,
    got sick of playing flash games and want to learn to create.
    i downloaded a gif of sub zero from mortal kombat...the gif has all the frames for each action like jumping / punching etc.
    i have imported it into flash and i have organised the key frames so when i press enter it looks pretty smooth.
    will i be able to control it like this with keyboard using action script? or do i have to convert it to a vector graphic?
    or is this just not possible.
    can anybody please recommend me a good flash/as3 book to read please...i know there are lots...
    thanks
    jonininireland

    imm for an easy gif control try to import it as a movie clip , Gif images must be framed inside your - character Movie clip -
    try to learn about cross images technique for animating chracters.
    of course u'll be able to control game by keyboard ha ! .
    see:http://as3gamedev.blogspot.com/
    Read :Essential Guide to Flash Games
    try:Develop Flash Games
    Good luck
    Mhood

Maybe you are looking for

  • Deploy .war file in Ebs 11i-11.5.10.2

    Hi, My boss is asking me to deploy the .war file in one of the EBS 11i - 11.5.10.2 instance. I am wondering to know how can we deploy .war in EBS 11i Instance? If we can deploy the .war in EBS 11i Instance please post the high level steps and if not

  • How to sync the calendar with gmail-calendar

    I have an E-72 and use the calendar a lot. But how can I sync it with gmail-calendar? Anyone? Thanks! Solved! Go to Solution.

  • Mesages While opening Reciever Query

    Hi Experts, I have a Query called Cost center basis report, has mandatory varibales as Fiscal year period,reporting curecny,recieving cost center,cost element group,comp code Heir. I have a sender receiver assignement, cost center basis report and Si

  • Adding a double move transition

    im trying to get a door to slide down and then move back up revealing the new page.... so far i can only get it to go down. any help is appreciated,  thanks

  • Bulk downloads online - best method???

    We are intending to build a bulk download system for one of our clients. The intention here is, 1) User would click download button 2) The system would go to the database picks millions of records and present in a .csv format so user can save it in h