C# Flash Wrapper

Hello,
I am creating a custom flash player in C#. The way the
application should work is loading an encrypted swf file to memory,
decrypt it and feed it to the Flash wrapper (code generated from
the OCX file). All this needs to be in memory to avoid writing the
decrypted file to disk.
The problem is: It seems the ocx does not support passing a
movie already in memory, but I found there is a site that has a
component that does that. So it seems to be possible.
Any one knows how?
Thanks,
Carlos

i'm no expert on this, but read up on Adobe Air. In the most basic terms it allows you to create flash apps that can be deployed on the desktop and will run mac/windows.
this article here might address your exact query:
http://ajaxian.com/archives/commandproxy-integrating-air-and-net

Similar Messages

  • How to create a Flash Wrapper for Captivate 5.5

    I just run into the following articule, "Developing a Flash Wrapper for Adobe Captivate " The author told that it is based on Action Script 2.0. Is there any information available creating the wrapper using Action Script 3.0? Where can I find the information related to this topic?
    http://www.connectusers.com/tutorials/2009/02/certificates/index.php

    That article was, of course, written outside of Adobe... I don't know of any Adobe-specific resources to help develop such a 'wrapper'... But there may be other third-party options.
    The link you point to discusses doing this for sake of a certificate. Is that what you need? There are 'widgets' available for Captivate that may satisfy your need...
    Or here's an article discussing development of such a widget, which may apply to what you're looking for:
    http://blogs.adobe.com/captivate/2010/12/advanced-adobe-captivate-widget-creation-another- experience-in-vicarious-elearning.html

  • Flash Wrapper and Accessing user-defined variables

    I am working on creating a Flash AS3 wrapper to combine several cpativate files.  I am able to retrieve system variables, however I am not able to retrieve user-defined variables.  I have a user defined variable in my Captivate called passedScore, in my Flash script I have the following...
    var mcLesson1:MovieClip;
    btnHit.addEventListener(MouseEvent.CLICK, test);
    var vLoader:Loader = new Loader();
    vLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
    vLoader.load(new URLRequest("untitled1.swf"));
    function swfLoaded(e:Event):void {
    mcLesson1 = MovieClip(vLoader.contentLoaderInfo.content);
    vLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE, swfLoaded);
    addChild(mcLesson1);
    function test(event:MouseEvent):void
              feedback1.text = mcLesson1.cpInfoCourseName;
              feedback2.text = mcLesson1.m_VarHandle.passedScore;
    feedback1 correctly shows the course name, however, for feedback2 it errors saying a term is undefined (refering to m_VarHandle)

    try using mcLesson1.cpEIGetValue('m_VarHandle.passedScore');

  • Can a Flash 6 SWF (AS 1) read variables of a Captivate 4 SWF (AS 2)?

    I have a Captivate 4 CP that I published to Flash Player 9, AS 2.0 SWF ( and Flash Player 7 as well, which didn't help either). I load this SWF in a Flash wrapper SWF (published to Flash Player 6, AS 1.0) which needs to read the rdinfoCurrentFrame and rdinfoFrameCount variables in order to find out if the Captivate movie has completed. The logic works when I test this locally, but not in our test environment, probably because the two (Flash SWF and the Captivate SWF) are in two different directories. My suspicion is that it is due to cross-domain issue which comes into play only with Captivate 4 SWFs, because when I tried replacing the Captivate 4 SWF with a Captivate 2 SWF it worked. I tried displaying the value of rdInfoCurrentFrame in the Flash wrapper using a dynamic text box, and while it shows and updates the value in case of a Captivate 2 SWF, it shows a null value for Captivate 4 SWF. Is this a known issue? I'm playing the content in Flash Player v9.0.45.0.
    Also, can someone here tell me what ActionScript version does Captivate 2 publish the SWFs to?
    Thanks in advance for your help!
    Mohsin

    The crossdomain policy is a result of the Flash player - not Captivate. It was implemented with FP 8.0 so if you publish to that then you will have the restrictions. However, the crossdomain policy only applies to different domains - not different directories.
    Captivate 4 publishes to AS2 per default.
    The problem you have is due to the fundamental changes between CP2 and CP4. While your paths for the variables might work for CP2 they have changed for CP4.
    I can't remember exactly what they are right now and I dont have access to my files but try these paths
    movie.rdInfoCurrentFrame
    mainmov.rdInfoCurrentFrame
    /Michael
    Visit my Captivate blog with tips & tricks, tutorials and Widgets.

  • Synchronizing Mouse Events on 2 flash files

    Hi, I am developing an application that shares images and swf
    files. There is a master and slave swf. The way we have it in mind
    is to have a flash wrapper that contains the swf file or image that
    wants to be shared on both master and slave. Now for instance, if I
    click on an item in swf object inside the wrapper of the master
    which starts some kind of animation, i would like to pass the x and
    y co-ordinates that was clicked in the master down to the slave and
    trigger the click event at the same position on the slave on the
    swf object.
    I don't think that this is much of an issue to get the x and
    y co-ordinates. My question is, is it possible to trigger the click
    even inside the slave wrapper on the swf object, which will cause
    the same animation to start playing ?
    Reason being we have tons of swf content written in both
    Action Script 2 and 3 and need to make this as generic as possible
    without having to rewrite the swf's. Just want to include them in
    the wrapper.

    Hi, I am developing an application that shares images and swf
    files. There is a master and slave swf. The way we have it in mind
    is to have a flash wrapper that contains the swf file or image that
    wants to be shared on both master and slave. Now for instance, if I
    click on an item in swf object inside the wrapper of the master
    which starts some kind of animation, i would like to pass the x and
    y co-ordinates that was clicked in the master down to the slave and
    trigger the click event at the same position on the slave on the
    swf object.
    I don't think that this is much of an issue to get the x and
    y co-ordinates. My question is, is it possible to trigger the click
    even inside the slave wrapper on the swf object, which will cause
    the same animation to start playing ?
    Reason being we have tons of swf content written in both
    Action Script 2 and 3 and need to make this as generic as possible
    without having to rewrite the swf's. Just want to include them in
    the wrapper.

  • Adobe flash player screen capture

    Is this possible to capture desktop screen through adobe flash player?

    Not with Flash alone. But, I believe any of the available Flash wrapper apps, like SWFkit, Zinc, etc, and even AIR can do this.

  • Publishing large files.

    Ok, My team has run into a significant problem with CS3 and
    we need some help fast. We have a rather large file (28meg swf)
    that we have created in CS3. And whatever i try i cannot find a
    solution for this to work on our LMS or even Stand alone.
    To be specific: I have tried using the 100% preloader used
    for adobe connect (instead of the standard 60% preloader). with no
    apparent change to perfomance.
    I have tried exporting to Flash 8 which causes an error,
    tries to change the framerate to 5 fps, not to mention creates a
    mass amount of external files witch for this project will not work.
    I even tried importing the swf into a flash wrapper for a
    custom preloader, but that throws an import error as well.
    Daisy chaining is not an option for this course.
    I am consistantly getting slower and slower performance with
    each slide and the audio skips more and more of the clip as the
    course goes on.
    Any suggestions would be greatly appreciated.
    M.

    If the project is getting slower and slower on your machine,
    is it going to run at all on your end-user's PCs? Bottom line, you
    seem to have found the answer to "how big is too big?", and the
    only solution I know of is to redesign the project so it stays
    within the capabilities of your users PCs.
    What is causing the size issue? Is the project "audio heavy"?
    Or is it a matter of too many slides? Or perhaps the size of the
    project slides (in pixels) is creating too large an image issues
    with the backgrounds? Seems your only option might be to take a
    cold hard look at the design, identify the cause of the problem,
    and then take corrective action at that level. Not what you wanted
    to hear, I'm sure, but I'm trying to be honest with you - let's
    face it, a 28 Mb SWF is a very large file.
    As an aside (only) ... I noted there seems to be confusion
    with semantics in your post. The product is Captivate 3 but you
    make reference to CS3; is this just a slip of the tongue (so to
    speak), or are you confusing the latest version of Flash (CS3) with
    the latest version of Captivate (3)? I mention it because you
    specified Flash 8 as your Flash version ... and I'm confused by
    what seems to be your confusion. In any case, frame rates are
    changed once the project is within Flash, but you state you can't
    get it into Flash, so again, I'm confused by the description
    offered.

  • Hi i have a site form Google with Google Gadget

    Hi i have a Google site with Google Gadget "Flash Wrapper"
    and i open a swf file.
    when i open the site with Google Crome The swf take a lot of time to load
    but with explorer there is no delay
    Here is link to the page with the swf file פיצה
    what can i do to speed up
    Thank's
    PizzaManager

    Hello,
    Looking at the site I assume that you want the navigation menu and black rectangle at the top and rest of the content should scroll below that.
    For this you need to make sure rectangle , menu navigation are pinned and they should be in the top layer.
    To create a layer go to the layers panel and create a new layer (make sure its at the top of the layers list)
    Select the elements that you want to stay over other elements > Right click > Move to Layer > Select newly created top layer.
    This should do what you wish for. Please let me know if this not what you are looking for.
    Regards
    Vivek

  • New use for Zinc 4?

    If Adobe let's Director wither on the vine, could we convert our .dir movies to Shockwave and create crossplatform projectors with Zinc 4?  I have not used Zinc, so I don't know exactly what its capabilities are.  So, my question is, could Zinc be a viable tool for "rescuing" our existing Director movies if necessary?  Or perhaps it might even be used for creating cross-platform projectors now, if needed?
    Maybe someone with some Zinc experience could enlighten me.  I have 30 titles that I market, and I'm a bit nervous about the way Adobe is treating Director like an unwanted stepchild.
    Thanks.
    Dewey

    The answer to your question is Probably Not. 
    Zinc is just a Flash wrapper.  So, if your Director programs are primarily swfs and you use Director for a few system hooks, then you could use Zinc instead.  If you do not use swfs much, or if you use Director for anything more complicted than file IO (Buddy API stuff) then it would probably not suit your purpose.
    In fact, I think that even in its current condition, Director is a better Flash wrapper than Zinc.  I have used both, and there are very few reasons to use Zinc over Director - even less if you know Director already and don't want to learn a new program.

  • Linking Several Project Files as one Learning Session

    I have eight large Captivate files that I want to link into
    one, single window, seamless learning experience. I've tried quite
    a few options, but I can't get any to work. In one failed attempt,
    I wanted to publish 8 flash files that were linked so they would
    play in Adobe Flash player together. Here are the issues I
    encountered with just this option:
    Tried to link Part 1 and Part 2 together using the "Open URL
    of file" option and referencing the ".swf skin" file. Part 1 plays
    back great, but part 2 opens up in Internet Explorer instead of
    Adobe Flash Player (very annoying).
    When Part 2 opens up the .swf file in Internet Explorer, it
    opens up in a new window, even though I specified "Current".
    When Part 2 opens up the .swf file in Internet Explorer, I
    receive an "Adobe Flash Player Security" message. The first
    sentence reads "Adobe Flash Player has stopped a potentially unsafe
    operation."
    Does anybody have any input on these three problems? I
    getting frustrated that there isn't an easy way to do this. Any
    help anybody could give to me would be <u>greatly</u>
    appreciated.
    Thanks.

    I can't comment on the first two issues other than to say
    that Captivate-generated SWF output is intended to run in a web
    browser and accessed from a web server.
    If you want to run directly off the local hard drive, you
    should be publishing to .EXE and it should work as expected.
    If you're determined to run directly in the Flash Player,
    maybe try looking into something like Jesse Warren's Captivate
    Player or a commercial Flash wrapper product. Google will be your
    friend in this area.
    However, running directly in the Flash Player rather than a
    browser will ultimately be a big problem for your users, since....
    The Flash Player security warning you're seeing comes up
    pretty much any time you try to run Captivate-generated SWF files
    directly from a hard drive, even if the SWF files are embedded in a
    web page.
    You, and every one of your end users, will have to click the
    Settings button on the warning popup and manually mark the file
    folder location as "Safe" before the content can run.
    For this reason, the recommended approach is either to
    publish to .EXE format for local access, which avoids the message,
    or publish to HTM/SWF and host the files on a web server, where the
    local Flash Player security settings do not apply.

  • H.264 camera type

    Flash works with all USB web cameras - but what are the
    limitations (if any) on using a s-video or RGB connector on a
    graphics card so a camera with enough quality for H.264 streaming
    can be used? Does Flash recognise them?
    As the encoding will be greater than before, what spec. will
    the computer need to accomplish this?

    Thanks, Hyakkidouran, I realise I should have said LIVE
    streaming of high quality video. Thus a high quality camera HAS to
    be connected to the computer. You write: "streaming means automatic
    conversion on-the-fly in FLV format, which isn't very high quality
    even at best settings, " - but with H.264 or (if On2 are to be
    believed) VP6-E, with on-the-fly compression (see d3lf66 below)
    high-quality streaming is being done.
    d3f66
    Of course, if this is not streaming, the camera does not
    matter as it would be shot on anything, edited, and them
    played...Oh I am dumb.
    What I want is LIVE streaming of high quality video. Rang up
    Digital rapids, and their hardware/software compression/encoding
    solution (involving an s-video input that is recognised by Flash
    Player) is around £2000 without the PC!! But that is the sort
    of thing needed (using On2, they haven't the info to develop H.264
    with the Flash wrapper yet).
    But as I don't want to pay that much for a technology that is
    about to be surpassed, I would like to get at least better quality
    than a webcam - hence need some way to get s-video or composite to
    be recognised by the flash player as USB cameras have a very
    limited resolution.
    Thanks lots for all help so far - helps put me in the
    picture.

  • URGENT HELP: Menu Issue

    Hello,
    I am using captivate 2 and will be updating to 3 shrtly. I
    have an issue with the menu feature. If i want a menu I can only
    get a drop down which appears on top left, center or right. I would
    prefer a menu where I can list all the chapters on the left hand
    column so users can follow a project and jump fwd or back through
    chapters. How can i get this? Is there another adobe flash or menu
    skin product which I can import my captivate project into to get
    this feature. I notice this is possible for breeze. sample:
    http://www.h1solution.com/visa/olp/flash/part2/380545/index.html
    . Please help, much appreciated.
    cheers,
    Mosh

    Welcome to our community, Mosh
    To accomplish this you will need to rely on resources
    external to Captivate. Possibilities include:
    1. If you have multiple Captivate movies to present, you
    could use a "Flash Wrapper" to present them. One is provided free
    of charge at
    this
    link.
    An update for that also appears at
    this
    link.
    2. You could design your own menu as part of the slide
    design.
    3. You could purchase a template from KC Web Plaza that has
    navigation like this pre-constructed and save the steps of number 2
    above.
    Click
    here to visit KCs site
    Hopefully something here was useful to you... Rick

  • Compilation of adobe air app that uses ANE fails while using the flex ant tasks.

    The resolution seems to be a hack - which when you rename .ane files to .swc, it works.
    I came across this workaround here: http://stackoverflow.com/questions/11112705/using-ant-mxmlc-task-with-native-extension?rq= 1
    <mxmlc file="${app.root}/app.as" 
                   output="${output.dir}/app.swf"
                   allow-source-path-overlap="true"
                   debug="false"
                   actionscript-file-encoding="UTF-8"
                   swf-version="19" >
                <load-config filename="${framework.root}/air-config.xml"/>
                <source-path path-element="${framework.root}"/>
                <source-path path-element="src"/>
                <source-path path-element="other"/>
                <compiler.library-path dir="libs" append="true">
                    <include name="**/*.swc"/>
                </compiler.library-path>
                <!-- THIS DOES NOT WORK -->
                <compiler.external-library-path dir="nativeExtension" append="true">
                    <include name="**/*.ane"/>
                </compiler.external-library-path>
            </mxmlc>
    However, if I rename all the .ane files in the nativeExtension directory to .swc the following change works..
                <!-- THIS WORKS -->
                <compiler.external-library-path dir="nativeExtension" append="true">
                    <include name="**/*.swc"/>
                </compiler.external-library-path>
    Has this issue been addressed?
    I'm using the following:
    - Adobe AIR SDK & Compiler (version 3.7) for Mac OS X
    - ActionScript Compiler 2.0
    - Apache Ant wrapper located in "AIRSDK_Compiler/ant/lib/flexTasks.jar"
    Let me know if any other details will be helpful.

    I'm using something like this in my build.xml (inapp.purchase.flash.swc is the flash wrapper for the ANE):
                <external-library-path dir="${basedir}/extensions/inapp.purchase/inapp.purchase.flash/bin" append="true">
                    <include name="inapp.purchase.flash.swc" />
                </external-library-path>
    I don't think you need ANE when building swf component of your app. ANE is only required for packaging. By linking with external inapp.purchase.flash.swc you're just telling action script compiler that above symbols will be defined later (in ANE).

  • Media Encoder adds thin green line on FLVs

    I am using Adobe Media Encoder CS5 to convert .mov files to .flv files. When I render the files a thin (~2 px) green line appears on the bottom of the video.
    When I used Media Encoder to format into F4V the line does not appear. See image below for example. Both files were encoded using the same Instance of Media Encoder and the same source file.
    Things I have tried
    I have tried encoding without resizing the video (Native 902x507)
    I have tried resizing to make sure video dimensions are divisible by 4 (904x508)
    I have used both CBR and VBR have same effect
    I have changed bitrate to higher with same effect
    Note:
    The source video does not have the green line
    System:  Windows 7 64x - 8GB RAM
    Source video
    format:*.MOV, codec:H.264, size:902x507, framerate: 29.97 fps, Data rate: 6.82 mbits/sec
    Any suggestions on how to remove this?

    I set up some quick tests and found that yes, transcoding a 902x507 H.264-encoded QuickTime file to FLV with AME 5.0.2 causes a green horizontal line.  It occurs at line 507, but doesn't go all the way across.  If I use the Crop option to trim off the bottom pixel of the source, the green line still occurs, but this time at line 505.  The difference is due to the scaling that AME is adding to the render process when Crop is turned on.
    A little sleuthing reveals:
    1) A 902x507 QuickTime file encoded with the Animation codec does not cause this problem.  This tells me the cause of the problem is in the H.264 decode, not the FLV encode.  It probably doesn't show up in the F4V encode because F4V is H.264 with a Flash wrapper, thus not much transcoding is actually being done.  Transcoding to other formats has the same problem, though.
    2) The output dimensions of the FLV are 912x512.  This is despite that AME shows the settings for the export as 902x508 (or 902x506 with the pixel trimmed from the bottom).  The FLV exporter appears to be rounding up to the nearest value that is evenly divisible by 16.  This is a bug, but has already fixed for a future release of AME.
    I had success using the Crop option to trim the size of the source file to 896x496 (the next multiple of 16 down).  Take 3 pixels off both the left and right, 6 pixels off the top, and 5 pixels off the bottom.  I did not have success by changing the output dimensions directly to 896x496; this is because resizing doesn't trim pixels, it pads where necessary and retains all source pixels, including the "bad", odd-numbered line that is causing the problem.  Trimming them via crop is the only way to avoid having AME attempt to transcode those pixels.
    Otherwise, I recommend you work around the problem by:
    A) Going back to the media source and exporting a file that doesn't have an odd-numbered dimension.
    B) Transcoding the file in another application to a different format (ex.: QuickTime with a different codec) or a non-odd-numbered dimension before using AME to transcode the file to FLV.
    I am curious- what is the source of this QuickTime file, and why 902x507?  Those are unusual dimensions.

  • Best type of video files to post on iWeb pages?

    I am a teacher and I am posting Screencasts that I record of my lessons each day on my website created by iWeb '09. I have been exporting them as either .mov files or .mp4 files (both H.264) and playing them in a Flash "wrapper". I have been using a Flash "wrapper" thinking that more people have the ability to play flash than quicktime. However, what I have noticed on an old Mac Mini that my daughter has is that the H.264 files played within the wrapper tend to hesitate while playing. If I just "drop" the file in an iWeb page, it seems to play without the hesitation (on the old Mac Mini). (By the way...these files are mostly around 50-70 mb in size.) The problem is that most of my students have PC's and it seems that every year there are at least a few that have problems playing the quicktime files (which is why I went the way of the wrapper). Anyone have any advice on the best video for all?

    Terry Daniels wrote:
    Will an iPhone or iTouch play these files?
    Have you looked at the video playback requirements on the specifications page? You will find your answer there.
    The older MPEG-4 video codec would work with QuickTime 5, or higher, installed.
    In obvious terms this means that a computer (PC) that does not have Quicktime player installed will not play the MPEG-4 file.
    If you wanted to go that route you could encode a WMV file for PC users and a MPEG-4 file for Mac users then use a server side script to determine the users' browser and display the appropriate file. This method is beyond the scope of novice iWeb design, however.

Maybe you are looking for