Java Applet in Flash CS4 (ActionScript 3.0)

Hi Guys,
I wonder if anyone can help me as I am a little confused.
Is it possible to insert a Java Applet into Flash CS4 (ActionScript 3.0)
Any advice is much appreciated
Thanks

I wouldn't swear to it, but I don't think you can "import" and run an applet internally in flash, but you can call it as an external file from flash and display/run it in an html container for example.
Just as flash (swf) is run through FlashPlayer as the runtime environment, Applets use the Java Console as its runtime environment.

Similar Messages

  • Java Applets in Flash CS4 (ActionScript 3.0)

    Hi Guys,
    I wonder if anyone can help me as I am a little confused.
    Is it possible to insert a Java Applet into Flash CS4 (ActionScript 3.0)
    Any advice is much appreciated
    Thanks

    Perhaps one can do it using AIR but not Flash IDE (CS4) or ActionScript.

  • Running a java applet from flash

    Hi,
    How do you run a java applet from within a Flash movie?
    Is it necessary for the user to download a java interpreter, or is there an interpreter somehow built into their browser that can run applets?

    I was wondering , I don't know too much about Flash
    I remember seeing some classes in amongst the Flash
    files when it installed , but couldn't tell you whart they
    do (at the moment , but you've got me interested)
    maybe you should rethink your strategy for building your page (and your movie) maybe build the movie around
    your applet , or preload it then replace a an area of your movie area with your applet (the way you handle rollovers).
    the advantage is you can make calls to applet methods
    from Flash as it supports Javascript.
    jus remember to set the scriptable <PARAM> to true
    Users shouldn't have to download the plug-in or JRE
    you should specify it in the OBJECT or EMBED tag so
    if they don't have it , the browser will tell them.
    of course this is going to change as Microsoft are stopping support for JAVA , users will then have to download the plug-in from Sun in order to view or use JAVA on the internet.

  • Need help displaying images with List component for Flash CS4 (ActionScript 3.0)

    Hi folks:
    I am an inexperienced user of Flash CS4 Pro (v10.0.2). I am attempting to use the List component with ActionScript 3.0 to make a different image display when a user clicks each item in a list.
    I did find a tutorial that showed me how to make different text display using a dynamic text box and the following ActionScript:
    MyList.addEventListener(Event.CHANGE, ShowSelectedItem);
    function ShowSelectedItem(event:Event):void {
        ListText.text=MyList.selectedItem.data;
    ...where My List is the instance of the List component and ListText is the dynamix text box. In this case, the user clicks an item in the list, defined by the label value in the dataProvider parameter of the List component, and text displays as defined in the data value in the dataProvider parameter.
    However, as I mentioned to start, what I really want to do is make images display instead of text. Can anyone provide me the steps to do this?
    I appreciate your help (in advance)!!
    Cindy

    Hi...thanks for responding! I was planning on using images from the Library, but if there is a better way to do it, I'm open. So far, I just have text in the data property. This is part of my problem. I don't know what I need to put in the data value for an image to display. Do I just put the image file name and Flash will know to pull it from the Library? Do I need to place the images on the stage on different frames? I apologize for the "stupid user" questions, but as you can tell, I'm a newbie.
    Appreciate your patience and any help you can offer!
    Cindy

  • Flash cs4 Actionscript 2 support

    Hello,
    Can someone please tell me if Flash CS4 supports Actionscript 2?
    Many thanks, Damien

    Yes, you can edit or create files in any version of Actionscript with CS4

  • Advanced: Java Applet in Flash

    We're trying to embed a photo gallery uploader which allows
    users to browser their folders and files from within the flash
    site. I know that a java applet may be the best solution and am
    looking into how to access similar functionality using flash
    remoting.
    Can I do this natively with flash and avoid using java
    altogether? Do we need JRUN? Can we use our Com Server for this?
    Can someone give me more information on how to accomplish this?
    Appreciate it.

    Flash has a FileReference class that allows you to do uploads
    and downloads via a flash front end. I am only aware of doing this
    with .NET as the back end server technology. I also think that the
    FileReference class may be specifically for working with .NET but I
    am not sure.

  • As3 (Flash CS4) Actionscript array/mc display order

    Hi there,
    Im trying to amend this actionsscript so the rollover part appears above the image gallery. Ive tried everything i can think of and the rollover appears below the images.
    If anyone can help I would be eternally grateful!
    Here is the actionscript...
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    var filename_list = new Array();
    var url_list = new Array();
    var url_target_list:Array = new Array();
    var title_list = new Array();
    var description_list = new Array();
    var i:Number;
    var tn:Number = 0;
    var no_of_column:Number = 8;
    var no_of_row:Number = 4;    // number of rows showing at a time
    var no_of_extra_row:Number;
    var scale_factor:Number = 0.8;
    var tween_duration:Number = 0.6;
    var new_row:Number = 0;
    var total:Number;
    var flashmo_xml:XML = new XML();
    var folder:String = "thumbnails/";
    var xml_loader:URLLoader = new URLLoader();
    xml_loader.load(new URLRequest("azwebgallery.xml"));
    xml_loader.addEventListener(Event.COMPLETE, create_thumbnail);
    var thumbnail_group:MovieClip = new MovieClip();
    stage.addChild(thumbnail_group);
    thumbnail_group.x = tn_group.x + 20;
    var default_y:Number = thumbnail_group.y = tn_group.y + 60;
    thumbnail_group.mask = tn_group_mask;
    tn_group.visible = false;
    fm_previous.visible = false;
    fm_next.visible = false;
    tn_title.text = "";
    tn_desc.text = "";
    tn_url.text = "";
    function create_thumbnail(e:Event):void
        flashmo_xml = XML(e.target.data);
        total = flashmo_xml.thumbnail.length();
        no_of_extra_row = Math.floor(total / no_of_column) - no_of_row;
        for( i = 0; i < total; i++ )
            filename_list.push( flashmo_xml.thumbnail[i][email protected]() );
            url_list.push( flashmo_xml.thumbnail[i][email protected]() );
            url_target_list.push( flashmo_xml.thumbnail[i][email protected]() );
            title_list.push( flashmo_xml.thumbnail[i][email protected]() );
            description_list.push( flashmo_xml.thumbnail[i][email protected]() );
        load_tn();
    function load_tn():void
        var pic_request:URLRequest = new URLRequest( folder + filename_list[tn] );
        var pic_loader:Loader = new Loader();
        pic_loader.load(pic_request);
        pic_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, on_loaded);
        tn++;
    function on_loaded(e:Event):void
        if( tn < total )
            load_tn();
        else
            fm_previous.visible = true;
            fm_next.visible = true;
            fm_previous.addEventListener( MouseEvent.CLICK, to_previous );
            fm_next.addEventListener( MouseEvent.CLICK, to_next );
            stage.addEventListener(MouseEvent.MOUSE_WHEEL, on_wheel );
        var flashmo_bm:Bitmap = new Bitmap();
        var flashmo_mc:MovieClip = new MovieClip();
        flashmo_bm = Bitmap(e.target.content);
        flashmo_bm.x = - flashmo_bm.width * 0.5;
        flashmo_bm.y = - flashmo_bm.height * 0.5;
        flashmo_bm.smoothing = true;
        var bg_width = flashmo_bm.width + 10;
        var bg_height = flashmo_bm.height + 10;
        flashmo_mc.addChild(flashmo_bm);
        flashmo_mc.graphics.beginFill(0xFFFFFF);
        flashmo_mc.graphics.drawRect( - bg_width * 0.5, - bg_height * 0.5, bg_width, bg_height );
        flashmo_mc.graphics.endFill();
        flashmo_mc.name = "flashmo_" + thumbnail_group.numChildren;
        flashmo_mc.buttonMode = true;
        flashmo_mc.addEventListener( MouseEvent.MOUSE_OVER, tn_over );
        flashmo_mc.addEventListener( MouseEvent.MOUSE_OUT, tn_out );
        flashmo_mc.addEventListener( MouseEvent.CLICK, tn_click );
        flashmo_mc.scaleX = flashmo_mc.scaleY = scale_factor;
        flashmo_mc.x = thumbnail_group.numChildren % no_of_column
                            * ( bg_width + 2 ) * scale_factor;
        flashmo_mc.y = Math.floor( thumbnail_group.numChildren / no_of_column )
                            * ( bg_height + 2 ) * scale_factor;
        thumbnail_group.addChild(flashmo_mc);
    function tn_over(e:MouseEvent):void
        var mc:MovieClip = MovieClip(e.target);
        var s_no:Number = parseInt(mc.name.slice(8,10));
        thumbnail_group.addChild(mc);
        new Tween(mc, "scaleX", Elastic.easeOut, mc.scaleX, 1, tween_duration, true);
        new Tween(mc, "scaleY", Elastic.easeOut, mc.scaleY, 1, tween_duration, true);
        tn_title.text = title_list[s_no];
        tn_desc.text = description_list[s_no];
        tn_url.text = url_list[s_no];
    function tn_out(e:MouseEvent):void
        var mc:MovieClip = MovieClip(e.target);
        new Tween(mc, "scaleX", Strong.easeOut, mc.scaleX, scale_factor, tween_duration, true);
        new Tween(mc, "scaleY", Strong.easeOut, mc.scaleY, scale_factor, tween_duration, true);
        tn_title.text = "";
        tn_desc.text = "";
        tn_url.text = "";
    function tn_click(e:MouseEvent):void
        var mc:MovieClip = MovieClip(e.target);
        var s_no:Number = parseInt(mc.name.slice(8,10));
        navigateToURL(new URLRequest(url_list[s_no]), url_target_list[s_no]);
    function to_previous(e:MouseEvent):void
        if( new_row < 0 )
            new_row++;
            new Tween( thumbnail_group, "y", Strong.easeOut, thumbnail_group.y, default_y + new_row * 100, tween_duration, true );
    function to_next(e:MouseEvent):void
        if( Math.abs(new_row) < no_of_extra_row )
            new_row--;
            new Tween( thumbnail_group, "y", Strong.easeOut, thumbnail_group.y, default_y + new_row * 100, tween_duration, true );
    function on_wheel(e:MouseEvent):void
        if( e.delta > 0 )
            new_row++;
        else
            new_row--;
        if( new_row >= 0 )
            new_row = 0;
        else if( new_row < - no_of_extra_row )
            new_row = - no_of_extra_row;
        new Tween( thumbnail_group, "y", Strong.easeOut, thumbnail_group.y, default_y + new_row * 100, tween_duration, true );

    Anyone got any odeas on how I can get this to work?
    Looking at the code this part is the part which i need to appear on top of everything else.
    function tn_over(e:MouseEvent):void
        var mc:MovieClip =  MovieClip(e.target);
        var s_no:Number =  parseInt(mc.name.slice(8,10));
         thumbnail_group.addChild(mc);
        new Tween(mc, "scaleX", Elastic.easeOut,  mc.scaleX, 1, tween_duration, true);
        new Tween(mc, "scaleY",  Elastic.easeOut, mc.scaleY, 1, tween_duration, true);
         tn_title.text = title_list[s_no];
        tn_desc.text =  description_list[s_no];
        tn_url.text = url_list[s_no];

  • Embed applet in Flash, possible?

    Hi All
    I have a quite weird question here maybe, but if that's
    possible to embed a java applet into Flash?
    Anyone can give me a hint?
    Thanks a zillion in advance!

    Flash cannot embed a Java applet.
    You can have a Java applet sharing the same browser and have
    Flash and the Java applet communicate to the browser and thus
    communicate to each other.

  • 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
    >

  • Flash CS4 and ActionScript 2.0

    Hello
    Was wondering if you could recommend the publish and save
    settings in Flash CS4 when working with ActionScript 2.0.
    What are my publish settings?
    Flash Player 8 or 9?
    Script: ActionScript 2.0
    Should I be saving the project as CS4 or CS3?
    - I no longer have the ability to save the file as Flash 8 in
    CS4.
    - It looks like I lose my XML files when I save as CS3
    Are there any other settings that need to be changed?
    Thanks in advance
    M

    troika22,
    > Was wondering if you could recommend the publish and
    save
    > settings in Flash CS4 when working with ActionScript
    2.0.
    Ultimately, it depends on what version of Flash Player
    you're aiming
    for.
    > What are my publish settings?
    > Flash Player 8 or 9?
    > Script: ActionScript 2.0
    There are numerous reasons you might decide to code a
    project in AS2.
    You might, for example, not yet have "taken the plunge" to
    AS3, so you may
    not be comfortable with it yet. Your project requirements
    might dictate
    that you support as low as Flash Player 6 (may ad agencies
    have such
    requirements). You might be updating an existing project,
    already built in
    AS2.
    In any of these cases, your publish settings will be
    determined by the
    version of Flash Player you're targetting. Flash Player 8 was
    the first to
    support blend modes and filter effects (drop shadow, etc.),
    so in order to
    support that, you would have to publish to Flash Player 8. If
    you don't
    need those, and if your code itself doesn't rely on features
    that require
    Flash Player 7, you may as well publish to Flash Player 6 and
    reach the
    greatest number of potential viewers. (The farther back you
    go, the more
    likely your viewer will have Flash Player installed, because
    not everyone
    decides to upgrade. That said, most people seem to upgrade.)
    > Should I be saving the project as CS4 or CS3?
    If you're working with a team and some of those people use
    Flash CS3,
    you'll have to save it as CS3 any time you want to share the
    file;
    otherwise, save it as CS4. The FLA settings are independent
    from the SWF
    publish settings.
    > - I no longer have the ability to save the file as Flash
    8 in CS4.
    Correct. Each edition of the IDE only save to the previous
    edition, as
    far as source files go. But each edition of the IDE is
    capable of
    *publishing* as far back as you like.
    > - It looks like I lose my XML files when I save as CS3
    Which XML files are those?
    David Stiller
    Co-author, Foundation Flash CS4 for Designers
    http://tinyurl.com/dpsFoundationFlashCS4
    "Luck is the residue of good design."

  • I am trying to experiment with Tweens and Easing Types in ActionScript 3.0, Adobe Flash CS4. help

    I am using ActionScript 3.0, Adobe Flash CS4 software
    I have created Tweens for some MovieClip properties and experimented with some of the easing types.
    This is what I have managed to create and works okay!
    grow_btn.addEventListener(MouseEvent.CLICK, grow);
    shrink_btn.addEventListener(MouseEvent.CLICK, shrink);
    rotate_btn.addEventListener(MouseEvent.CLICK, rotate);
    hide_btn.addEventListener(MouseEvent.CLICK, hideClip);
    show_btn.addEventListener(MouseEvent.CLICK, showClip);
    fadeOut_btn.addEventListener(MouseEvent.CLICK, fadeOut);
    fadeIn_btn.addEventListener(MouseEvent.CLICK,fadeIn);
    function grow(e:MouseEvent):void {
                    var scale1:Tween = new Tween(instrument, "scaleX", Back.easeIn, 0, 1, 3, true);
                    var scale2:Tween = new Tween(instrument, "scaleY", Back.easeIn, 0, 1, 3, true);
    function shrink(e:MouseEvent):void {
    var oneSmall:Tween = new Tween(instrument, "scaleX", Back.easeInOut, 0, -.2, 3, true);
    var twoSmall: Tween = new Tween(instrument, "scaleY", Back.easeInOut, 0, -.2, 3, true);
    function rotate(e:MouseEvent):void {
    var spin:Tween = new Tween(instrument, "rotation", Elastic.easeOut, 0, 360, 5, true)
    function hideClip(e:MouseEvent):void {
    instrument.visible = false;
    function showClip(e:MouseEvent):void {
    instrument.visible = true;
    function fadeOut(e:MouseEvent):void {
    var tweenfadeOut:Tween = new Tween(instrument, "alpha", None.easeOut, 1, -.1, 3, true);
    function fadeIn(e:MouseEvent):void {
    var tweenfadeIn:Tween = new Tween(instrument, "alpha", None.easeIn, 0, 1, 3, true);
    I am having trouble creating Tweens and add easing types for the action script below!
    I keep getting error message (“Access of undefined property Sine”) for example when I type
    function hideClip(e:MouseEvent):void {
    var noClip:Tween = new Tween(instrument, "visible", Sine.easeOut, 0, 1, 3, true);
    Can anyone help???? The original script is below
    hide_btn.addEventListener(MouseEvent.CLICK, hideClip);
    show_btn.addEventListener(MouseEvent.CLICK, showClip);
    function hideClip(e:MouseEvent):void {
    instrument.visible = false;
    function showClip(e:MouseEvent):void {
    instrument.visible = true;

    make sure you have imported the Sine class
    import fl.motion.Sine;

  • Flash in java applet

    is there any way to use .swf in java applet?I mean a banner with flash at the top of applet.

    is there any way to use .swf in java applet?I mean a
    banner with flash at the top of applet.I am not sure if there is a way of doing it... but as far as I know it can't be done.
    However, SWF and applet can both be used as embedded objects.

  • How to Build a Preloader for Flash CS4 and Actionscript 3.0

    With the wonderful help of many people on this site, I have successfully buit a nice website using Flash CS4.  I am wanting to deploy the site this weekend and I'm working on the finishing touches.  I would like to add a preloader so that the viewer will have everything loaded when the action starts.  Can anyone suggest a good tutorial that shows how to make the simple "rotary lines" that are so popular?  I've seen these and they look to be about an inch across and move like the hands of a clock.  I think it may even say "Loading..." or similar.  Since I'm still learning quite a bit, I did not know if Flash actually offers some "preloaded" tools for stuff like this?  Or am I better off going to Lynda.com and taking a tutorial?  Thanks for the help!

    Dark Armor, You mentioned the book Adobe Flash CS4 Professional Classroom in a Book, which I have.  I could not find anything in there.  Did you mean to say Actionscript 3.0 for Adobe Flash CS4 Professional?  I do have that book and it looks like there is information there.  Just wanting to make sure that you meant what you said.  Thanks!

  • Convert flash mx actionscript to cs4

    Hi i am new t flash and am not good with actionscript at all.
    Basically this code is what i need to make a menu act how i want
    when scrolling. Does anyone know how to convert the following
    flash mx actionscript to actionscript 3.0(Flash cs4
    compatible).
    If you do i would be really greatful if you ccould post it in
    a reply. the tutorial i am using is at the bottom if it is of any
    help.
    [CODE]
    mouseX = _xmouse;
    menuX = menu._x;
    if (mouseX > 280) {
    diff = (mouseX-280)/15;
    if (mouseX < 220) {
    diff = (220-mouseX)/15;
    if (mouseX <= 250 && menuX <= 56) {
    setProperty("menu", _x, menuX+diff);
    if (mouseX >= 250 && menuX >= -204) {
    setProperty("menu", _x, menuX-diff);
    if (menu._x >= 56) {
    menu._x = 56;
    } else if (menu._x <= -204) {
    menu._x = -204;
    gotoAndPlay(2);
    [/CODE]
    Page
    1
    Page
    2

    "vookster" <[email protected]> wrote in
    message
    news:go7cec$obn$[email protected]..
    >
    > I was wondering are files produced from Flash MX
    compatible with
    > Dreamweaver
    > cs4? I have Flash MX and don't want to buy Flash cs4 if
    I don't need
    > to.
    Flash MX creates .swf files. Dreamweaver CS4 creates HTML
    files, and
    has the capability of inserting .swf files in a web page. It
    doesn't
    matter which version of Flash you use to create your .swf
    files; they
    can be inserted into a web page in any version of
    Dreamweaver.
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com

  • Access Flash Player position from Java Applet

    Hallo Everybody,
    as a part of my diploma thesis, I have on a HTML Page two
    objects, one is a Flash Movie, streamed from a Flash Server, the
    other is a Java Applet. In the Java Applet I have a button "Get
    time of Movie". When the user clicks on this button, the Applet
    shoud ask the Flash Player about it's actual position (min, sec)
    and the Applet should get this information back. I think, with the
    ExternalInterface Class might it be possible, but I have no idea
    how. Could anybody help me?
    Thanks
    Beat

    Hi!
    I want to access from a java client application to an .Net WebService, can you help me with some code ???
    Thankz!

Maybe you are looking for

  • Too Many "Updated!" RSS Feeds

    Hello, I subscribed to the Google Sci/Tech News, which covers a lot of stuff, which is great... The problem is that if the author even corrects a typo, I keep getting the same story over and over and over... I tried making a rule to delete any "UPDAT

  • Bluetooth Peripheral Device driver failure in Windows Vista and Windows 7 (solved)

    I had problems setting up Bluetooth HotSync.  Following the directions for pairing the device resulted in a "Bluetooth Peripheral Device" missing driver in Device Manager.  I finally figured out how to setup HotSync and am able to sync over Bluetooth

  • Can I use APEX Packaged applications for commercial purposes

    Hi, When you download and Install APEX, it comes with pre build packaged applications. Can I use it to make money? I understand that I will not be able to get any support for Oracle and all that.  But  using  Database XE with APEX, can I start shippi

  • "Same" report but different selection

    CRXi SQL2005+ I'm working on a report that works fine but the selection for the output needs updating or maybe I need 2 more reports.... Tables are: USER TABLE (has all the application's user information)     TableKeyID for THIS table     Application

  • User Groups Missing - Administrative Privileges are Inaccessable

    I really can't figure this one out - somehow all of the system's user groups have somehow been removed from my mac therefore disabling any administrative privileges, other than the root user. Even when logging in as root and selecting my user as an a