Actionscript v1 problems in v2 or v3

The following is the code from the first frame of a
hierarchical menu file (thanks to Ian Kelleigh at
http://www.freehandsource.com/_test/hierarchical_menus.html)
written in Actionscript v1.0.
I'd like to use this in an AS v2.0 or 3.0 project. To do so,
I know I need to delete all occurrences of "/:" in lines 4-9 and
15, but once completed, I think there must still be a problem with
lines 13-16 as the true/false values are not being observed (of
course, there could be syntax issues deeper in the file, but let's
start here):
1 //Sets variables to False for keeping track if submenus
2 //or menus are left open. Try keeping same naming structure
3 //for the the setMenuClose function to work properly below.
4 /:subsub2open = false;
5 /:subsub4open = false;
6 /:menuleftopen1 = false;
7 /:menuleftopen2 = false;
8 /:menuleftopen3 = false;
9 /:menuleftopen4 = false;
10 //Closes menus when another is opened.
11 //This function checks for a total of 10 menus, you can
12 //change this value to fit your needs
13 function setMenuClose() {
14 for (z=0; z<10; z++) {
15 if (eval("/:menuleftopen"+z) == true) {
16 eval("menu.menu"+z).gotoAndPlay("Swoop Up");
17 }
18 }
19 }
20 stop();

Hi(Bonjour)!
You can drag the clip from viewer to V2 in timeline. If you use the canvas edit overlay or Fs keys, you have to select the destination track for audio and video by using the patch panel at the left of timeline.
See FCE 4.0 user's manual page 117 and from page 361.
Michel Boissonneault

Similar Messages

  • Flash 8 Actionscript Tutorial problem

    I have followed the following instructions to the letter
    (several times) but the button script won't activate a URL and I
    get an error message from Flash 8 which I'll show after this:
    1.Select the invisible button on the Stage.
    Open the Property inspector (Window > Properties), and
    find the Instance Name text box in the Property inspector.
    Type inv_btn into the Instance Name text box.
    Select Insert > Timeline > Layer to insert a new layer,
    and then rename the new layer to actions.
    Open the Actions panel (Window > Actions), and then select
    Frame 1 of the actions layer.
    Type the following ActionScript into the script pane (the
    editable text field) in the Actions panel:
    inv_btn.onRelease = function(){
    getURL("
    http://gnome.deseloper.com",
    "_blank");
    This does not work. Here is the error message:
    **Error** Scene=Scene 1, layer=button, frame=1:Line 1:
    Statement must appear within on handler
    inv_btn.onRelease = function(){
    As this script was copied directly from the tutorial text,
    and I have never scripted anything before, I am at a loss to
    explain this or how to make it work. Can anyone help me?

    I'll approach this from the opposite end... replace the code
    you have with:
    on(release){
    getURL("
    http://gnome.deseloper.com",
    "_blank");
    If that works, then the problem is that you didn't put the
    code where the instructions you show indicated you should. For what
    you did, the code I just showed is appropriate (though not a good
    practice because it is hidden from easy review). It's better to
    keep your code in the timeline where it can be easily found.
    You will have selected the button and then typed the code in
    the actionscript editor. Instead, you need to
    click on the frame in the (separate) actions layer in the
    main timeline that you should have made already, not the button
    layer, and then place that code from the tutorial in the
    actionscript editor window.

  • Object cast - J2EE to ActionScript strange problem

    Hello,
    I am working in a project with multiple layers composed by Flash+Flex; BlazeDS; J2EE+Hibernate.
    I have some services to get all the data from database and I have a strange problem when I try to cast some objects from J2EE to ActionScript via BlazeDS Services. This is the structure that I have in my project:
    Oracle
    Table ServicePetitions (a table with all the data about a service petition)
    J2EE+Hibernate
    ServicePetition object (mapping object generated by hibernate)
    ServicePetitionId object (multiple key object generated by hibernate)
    ServiceServicePetitions object (the service to use in blazeDS)
    Flex 4 (All the objects generated by Flex Builder at the time of map the service)
    _Super_ServiceServicePetitions
    ServiceServicePetitions
    _Super_ServicePetitions
    _Super_ServicePetitionId
    _Super_ServicePetitionEntityMetadata
    _Super_ServicePetitionIdEntityMetadata
    ServicePetition
    ServicePetitionId
    Normally I call the service and later I try to get the data using a CallResponder object to make the assignation lastresult = ServicePetition; except when I use a datagrid that automaticly use the CallResponser.lastresult as dataprovider, without any assignation (important, always work!)
    The fact is that when I try to make the assignation all works alright, I get all the data, I can work with those data, all goes perfect, but...when I make the second call, the assignation (callresponder.lastresult = ServicePetition) does not assign anything.
    This is the code of the assignation:
        private var respPs:CallResponder;
        private var servPs:ServiceServicePetitions;
        private var objPs:ServicePetition;
        // Call
        public function AprobarPS(ter:String,idps:String,sec:int)
          servPs = new ServicioVPeticionesServicio();
          respPs = new CallResponder();
          respPs.addEventListener(ResultEvent.RESULT,getDatosPs);
          respPs.addEventListener(FaultEvent.FAULT,error);
          respPs.token = servPs.getPeticionServicio(ter,idps,sec);
        // Get the data
        private function getDatosPs(resultEvent:ResultEvent):void
          objPs = respPs.lastResult as VPeticionesServicio;
          switch (obj.petitionType) { // Here I have a null exception
    I make the debug with the blazeDS tools and all the responses and call statements is Ok, and the service return the data always, but Flex only works the first time per execution.
    If I assign all the data field by field from lastResult to ServicePetition all works properly always, the first call, the second call, etc., but if I want to make the assignment, object to object, only works 1 time.
    any ideas?
    best regards,
    thx!

    sorry, copy-paste problem...
    switch (objPs.petitionType)
    I have been researching and I think that I know where (maybe...) is the problem.
    The object to serialize have another object inside. Could be this the problem at the time to des-serialize the object? Also, the object is very big, have around 40 fields, could be also a problem ?
    thanks!

  • Actionscript bug problem loading in Firefox

    Please Help.
    I'm working on a page at
    http://localhost/skitterskatter/gerilance/D4D/index4.html
    The page works fine in Internet Explorer on a PC. In Firefox
    and some mac browsers when you click on a thumbnail, the image does
    not display (an image is supposed to expand out from the thumbnail
    into the upper right of the screen). After a page refresh often the
    thumbnail actions work.
    It seems that the image has to load into the cache before it
    can move. I can't figure out how to get this to work. Here is the
    actionscript:
    var finalWidth = 435; // width for furniture piece
    var finalHeight = 295; // height for furniture piece
    var initWidth = 10; // initial width and height for furniture
    piece that explodes from thumbnail
    var initHeight = 10;
    var finalX = 570; // Destination X and Y positions for
    furniture piece
    var finalY = 50;
    var stoploop = 0; // counter to determine when furniture
    piece is in place
    var numberOfCalls = 40; // the number of times a function is
    called to reach the final position
    var intervalID;
    var initX = 0;
    var initY = 0;
    function startLoading(image, button) {
    clearInterval(intervalID);
    _root.infoField._visible = true;
    myData = new LoadVars();
    myData.onLoad = function() {
    _root.descr.text = this.theText;
    myData.load("./descr/"+image+".txt");
    myData = new LoadVars();
    myData.onLoad = function() {
    _root.nameOfPiece.text = this.theText;
    myData.load("./names/n_"+image+".txt");
    _root.perice._width = 10;
    _root.perice._height = 10;
    var whichImage = "./pieces/"+image+".jpg";
    loadMovie(whichImage, "_root.perice");
    _root.onEnterFrame = function() {
    var infoLoaded = _root.perice.getBytesLoaded();
    var infoTotal = _root.perice.getBytesTotal();
    var percentage = Math.floor(infoLoaded/infoTotal*100);
    _root.infoField.text = "loading... "+percentage+"%
    InfoLoaded: "+infoLoaded+" InfoTotal: ";
    if (percentage>=100) {
    var material = "./materials/mat_"+image+".jpg";
    var titleimage = "./titles/title_"+image+".jpg";
    var design = "./designs/design_"+image+".jpg";
    loadMovie(material, "_root.material");
    loadMovie(titleimage, "_root.titleimage");
    loadMovie(design, "_root.design");
    initX = _root._xmouse;
    initY = _root._ymouse;
    stoploop = 0;
    _root.perice._x = initX;
    _root.perice._y = initY;
    intervalID = setInterval( moveperice, 50 );
    delete this.onEnterFrame;
    // gotoAndPlay(1);
    _root.startagain();
    function moveperice() {
    _root.perice._x += (finalX-initX)/numberOfCalls;
    _root.perice._y += (finalY-initY)/numberOfCalls;
    _root.perice._width += (finalWidth-initWidth)/numberOfCalls;
    _root.perice._height +=
    (finalHeight-initHeight)/numberOfCalls;
    stoploop += 1;
    if (stoploop >= numberOfCalls) {
    clearInterval(intervalID);
    slidebar.button1.onRelease = function () {
    startLoading("albert", this, initX, initY);
    slidebar.button2.onRelease = function () {
    startLoading("amy", this, initX, initY);
    slidebar.button3.onRelease = function () {
    startLoading("david", this);
    etc with the rest of the buttons.
    Please help.

    I couldn't see a problem there using firefox... except that
    the size is designed for a higher resolution than what my laptop
    has I'm guessing.
    For MovieClipLoader examples there are quite a few already in
    these forums (you should be able to find them by searching in as1
    & as2 for "MovieClipLoader") or you will find examples in the
    help files for MovieClipLoader, or livedocs online. Or there's a
    simple example here for loading a swf ( a jpg is not much
    different) :
    http://www.flashgods.org/forums/viewtopic.php?f=20&t=70

  • Actionscript 3 problems

    Hi All
    Wondered if someone could help as Im struggling to get my
    head around moving form as2 to as3. At the moment im struggling
    wiht how movieclips are handled. All i want to do currently is
    dynamcially create movieclips to house images, thse then need to be
    clickable to reveal a larger versionof the image in another clip.
    For now the code below is based around doing the first bit,
    namely pulling int he images and displaying them.
    Now what Ims truggling with here is how to dynamically name
    the thumb clip in the loop. as ideally i want it it to go thumb0,
    thumb1...... I have tried numerous ways but none of them seem to
    work, does anyone have any ideas why?
    function xmlLoaded(event:Event) {
    imagesXML = XML(myLoader.data);
    trace(imagesXML);
    var ImageCount:int = imagesXML.image.length();
    trace(imagesXML.image[0].@src);
    for (var i = 0; i < ImageCount; i++) {
    var thumb:MovieClip = new MovieClip();
    var ldr:Loader = new Loader();
    var url:String = "images/thumbs/" + imagesXML.image
    .@src;
    var urlReq:URLRequest = new URLRequest(url);
    ldr.load(urlReq);
    thumb.addChild(ldr);
    addChild(thumb)
    thumb.x = i * preview_spacing;
    thumb.addEventListener(MouseEvent.CLICK, clickHandler);
    thansk in advance
    a

    My problem was thw XAMPP server; it can't run php on the swf file
    I dont know why
    But now I use a remote server.
    If you have the answer for that problem tell me plz!

  • Flash 8 - actionscript button problem

    Hi all,
    I created a button "place holder" (until I had time to design
    my own) on an object using the standard button component, this
    worked great. When I replaced it with my own user defined button it
    stopped working. The object has the same name and is referenced
    identically.
    Can anyone explain this weird behaviour?
    Here is my code (worked for standard button but not for user
    defined)
    var invMenuState:Number = 0;
    // function for the Next button
    function inventorySlider(eventObj:Object) {
    switch(invMenuState) {
    case 0:
    inventory_mc.gotoAndPlay("slideUp");
    invMenuState = 1;
    break;
    case 1:
    inventory_mc.gotoAndPlay("slideDown");
    invMenuState = 0;
    // add the event listener for the button
    inventory_mc["inventory_bx"]["inventory_btn"].addEventListener("click",
    inventorySlider);
    thanks,
    Paul.

    i think you're confused between the button component and the
    button class - not that hard to do really, thinking about it.
    as kglad mentioned, button symbols require handlers from the
    button class such as onPress which is the equivalent to the line of
    code you were using with your button component.

  • Unknown actionscript/php problem

    I have created a form in a flash as 2 document. After the
    user clicks a button it sends 3 variables to PHP, username, email
    and passwrd. PHP then creates a text file called (username) that
    contains the username, email and password in a layout flash can
    read. However, when the button is clicked it does not save the text
    file.
    I have read through these scripts several times and cannot
    see any faults. I have check permissions and every thing i can
    think of. Thanks for any help.

    your
    $fp = fopen(
    line contains a stray character after the left paranthesis.
    remove that and retest.

  • Actionscript 3 Noob Question

    So I'm one of those guys who is trying to figure out a basic actionscript 3 problem that everyone has probably already asked a thousand times so bear with me.
    All I want to do is make my Flash Scene "aspen" redirect from from frame 298 to frame 7. In my "action" key frame I used to just write
    gotoAndPlay(7, "aspen");
    Apparently that won't work anymore. And I am not using a button. I just want to run a loop.
    Also if I wanted to jump to another scene "breckenridge" I used to just write
    gotoAndPlay(7, "brekenridge");
    How do I make this work? Thanks in advance for the help

    Ok, I have isolated the problem.
    Something in the actionscript on frame 150 makes the gotoAndPlay (7); on frame 298 fail.
    The following is the actionscript on frame 150
    aspen3.addEventListener(MouseEvent.CLICK, myButtonFunction6);
    function myButtonFunction6(event: MouseEvent) {
    var request:URLRequest = new URLRequest("acrobat/aspen.pdf");
    navigateToURL(request);
    reverse1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler7);
    function mouseDownHandler7(event:MouseEvent):void {
    gotoAndPlay(7);
    forward1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler8);
    function mouseDownHandler8(event:MouseEvent):void {
    gotoAndPlay(7);
    pause1.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler9);
    function mouseDownHandler9(event:MouseEvent):void {
    gotoAndStop(299);
    ok, when I test the movie the compiler errors reports one error
    Location
    aspen, Layer 'action', Frame 150, Line 1
    Description
    1120: Access of undefined property aspen3.
    I have a button on the stage and I have given it an instance name "aspen3"
    So why am I getting the error message?
    I have a mask layer on that button but that shouldn't be the problem because I have a mask on other buttons and they are working perfectly.

  • Select Flash content not displaying in IE

    I would love anybody's feedback on this one. I have made an
    swf header for a website that has a logo "blur in" over an image
    -On my computer running IE it works fine.
    On another person's computer running IE v6.0.29 (I think?)
    the bottom layer of the swf is showing but the logo just never
    appears.
    Is this related to an actionscript javascript problem with IE
    I've been reading about? I've been researching for hours and I'm
    not sure what to do. Any advice much much appreciated! You could
    make my day!
    Cheers
    Yazzi

    If the problem is that the end user doesn't have updated
    Flash player, what would be the "industry standard practice" for
    dealing with these users?
    I was thinking of tweaking things so that the bottom layer of
    the flash header contained the logo all along, so it wasn't so much
    a blur-in effect for those with the latest version of Flash, but a
    play once blur effect for those that do (a compromise of sorts!).
    I'm happy to include a disclaimer for the interactive tours
    that people need the latest Flash Player to properly view, but the
    main header image can't be without the logo.

  • URLLoader bug with AIR SDK

    Environment:
    Flash Builder 4.7
    AIR SDK 3.4
    Mobile ActionScript project
    Problem severity:
    Use URLLoader class to get data from server; use URLVariables to send data containing a single field (Note, this issue happens only when you're sending only one field), as:
    var urlVariables : URLVariables = new URLVariables();
    urlVariables.contactid = "mycontactid";
    var request : URLRequest = new URLRequest();
    request.data = urlVariables;
    request.url = "https://myserver.com/flex/GetContactDocument?OpenAgent";
    var loader : Loader = new URLLoader();
    loader.addEventListener( Event.COMPLETE, onSuccess );
    loader.addEventListener( IOErrorEvent.IO_ERROR, onIOError );
    loader.load( request );
    Everytime it turns into IOErrorEvent returning stream error with the used URL path. I eventually noticed it didn't add any "&" after the URL! So what was supposed to be is this:
    https://myserver.com/flex/GetContactDocument?OpenAgent&contactid=mycontactid
    But instead URLLoader seeing this as:
    https://myserver.com/flex/GetContactDocument?OpenAgentcontactid=mycontactid
    Note, there's no & sign after OpenAgent word!
    This doesn't happens when there are more then 1 fields in URLVariables class! This is strange, and looks like a bug to me!
    Any suggestion would be appreciated. Thanks!

    Hello,
    1 . If you used more then 1 field in URLVariable, then is this ever worked for you with any of the AIR SDK version.Could you please share the use of OpenAgent here in the url.
    2.  One should not used “?” without assigning any value in the url for the specified field which is incorrect ("https://myserver.com/flex/GetContactDocument?OpenAgent") , please try to implement like (“https://myserver.com/flex/GetContactDocument?OpenAgent=”+value+””) as url schema needs “?” before the first parameter and “&” before the following ones. OR  Try to use (https://myserver.com/flex/GetContactDocument”) and then pass the url variable through which “?” and “&” is append by the request automatically.
    Please update if this will work for you.
    -Nimit

  • Cs3 - UILoader Component

    Hello,
    After many different forum searches, I still can't find the
    answer to my newbie problem when using Flash CS3.
    I'm trying to use the UILoader component that creates an
    empty container into which I want to load an external swf file.
    Without using AS, in the parameter box for the "container" placed
    on the stage of my main movie, I specify the name of the file I
    want to load (box.swf). Upon testing the movie, two problems occur.
    First, I can't figure out how to ensure that displayed
    position the loaded swf is centered on the stage. I've tried moving
    the container such that it's lower right corner sits on the stage's
    spot where I want the UL corner of the swf to play, but no joy.
    Secondly, instead of placing the external swf inside of the
    container and scaling it appropriately, the loaded swf (as
    mentioned previously) loads outside of the container's position,
    and cuts off a portion of the swf. I've tried ensuring that the
    container is the same size as the swf (or even bigger), but again
    to no avail.
    Can someone please point out what I must be doing wrong? The
    external swf plays well on its own and simply represents a motion
    tween of a box growing in size and changing shape over the course
    of 20 or so frames.
    Thanks in advance for any assistance!
    Text

    Thanks for your fast response, dzedward.
    Here goes...I hope you'll bear with me. Since I don't know
    what type of background info you need, I'll explain in detail.
    Background:
    I'm creating a flash presentation that we can display on a
    large monitor at a tradeshow. The presentation will simply play
    from a connected laptop and loop, without the need for user
    navigation (no buttons). This is my first time creating such a long
    file (I anticipate that this will play for 3-4 minutes straight) so
    I thought it would be best if the main timeline were to call and
    load successive smaller, stand-alone swfs at selected times, based
    as the playhead moves through the timeline in a single pass. I'd be
    able to minimize the size of the main file in this way.
    Trouble Using AS3:
    As a newbie, I don't have much experience with AS3. Using an
    AS3 script found online I've been able to load a single swf into
    the timeline of my main movie successfully, but when I try to load
    another later on in the main timeline, neither swf plays....most of
    the scripts and forum answers I've come across over this past few
    days deal with AS2 or earlier versions, so I can't use or learn
    from them.
    Using the UILoader Widget:
    Thats when I saw reference to using Flash CS3's UILoader
    Component for this purpose (accessed via Window>Components
    menu). What it does is create an empty container into which you can
    load an external swf, jpg, or png file. You first simply drag and
    drop the widget onto the stage from the component window. Then,
    from the container's property window, you choose its dimensions and
    placement on the stage. Via the container's parameter window you
    tell it whether to autoload the content, maintain aspect ratio,
    and/or scale the content, as well as provide the name of the source
    file you want to load. It seems pretty simple - even I can do it
    and can get it to work when I load a jpg or selected swf file. Upon
    testing the movie, the jpg or swf plays back INSIDE the container,
    scaled down or up based on the container's size as it relates to
    that of the source file. So far so good.
    You'll see from this widget that you only need to specify
    "true" or "false" for the autoload, maintain aspect, and scale
    content questions. I've done this inside the widget as I'm not sure
    how to accomplish this with the scaleContent and scaleAspectRatio
    parameters you mention using actionscript.
    Problem When Using UILoader Widget:
    Here's the problem I'm having. As I mentioned, I've created a
    short 20-frame animation output to swf showing a white box that
    grows in size and changes shape against a black background, using
    the same frame rate (30fps)_and dimensions as my main movie. The
    animation is a simple shape tween, with no actionscript other than
    a stop ( ) ; placed on the last frame of an actionscript layer to
    prevent looping. It plays as desired on it's own. However, when I
    load it into the UILoader container that is centered on the stage
    of my main timeline and then test the movie, two problems occur.
    Firstly, the animation does not play inside the container;
    instead, the upper left corner of the loaded swf animation shows up
    where the lower right corner of the container showed up on the
    stage (hence I only see one corner of the animation). Secondly, the
    animation is cropped; the visible outer edges of the morphing white
    box are cut off meaning that I lose the visual effect of the shape
    tween.
    I saw reference online elsewhere to the possible need to
    position the container on the stage such that it's lower right
    corner is where you want the upper left corner of the animation to
    be placed, but this doesn't make sense to me (it's likely that I
    misunderstood what I read). I did try this however, and while doing
    so allowed me to more correctly center the external animation
    within the main movie, it's edges are still cropped. To me it
    should have been placed inside of the container and scaled.
    I'd love to be able to do this using actionscript 3.0, but
    I'm having even more trouble with this and haven't found any
    comparable tutorials or forums explaining how to load and unload
    multiple swfs into a main timeline without the need to control
    using buttons or a mouse. I'd like to be able to specify on the
    main timeline when a particular swf is played, then do so again
    later on in the same timeline with another swf file, and so on.....
    I don't know if this explanation will make anymore sense. I
    could send you the fla or even screenshots showing what I see
    during playback of the short animation inside of my main flash file
    you can provide me with your address and feel that it would help.
    It looks like I can only post code from this forum.
    Thanks for reading through this and for your possible help!

  • Flash site - swf file too large

    Hello,
    I have created a website using Flash CS5 using AS2. The site was completely custom designed using Photoshop and in then imported into Flash. The site has all of the pages in the main timeline on different keyframes, so say frame 2 is home, and frame 3 is services, etc. This is a site for my design portfolio so I have probably 5 galleries that I have made, but they are very simple, one frame will have the first picture, the next frame will have the second picture and so on. I have gotten my site exactly how I want it and works how I want it... but in the end the .swf file when published, is over 9MB which I know is wayyyyyy too large for a flash site that works fast for everyone.
    So how can I make this file size smaller. I am fairly new to this, although I had no problem getting my buttons to navigate with actionscript no problem, but my actionscript knowledge is very limited beyond that. I'm not sure where to go with this site to make the size smaller, so any help would be greatly appreciated.
    I can send someone the fla file to look at if needed.
    Thanks

    Thanks for the reply.
    Maybe you can help me a little more.
    I looked up some tutorials having to do with the AS2 xml galleries, and I found that almost all of them were for galleries with fancy scrolling options and slider bars, etc.
    My galleries are very very basic, thumbs are layed out on the left, click one and the image appears on the right. I'm not the best at using the actionscript and knowing what to do with all of it. So some of the tutorials made sense about getting files to load dynamically, but I'm not sure what code to keep in for my gallery, and what code to take out that I dont need for all the fancy effects.
    my site is http://www.mrolfedesigns.com
    as you can see, the galleries are pretty simple, I would like to keep them that way, and not have any complex scrolling or slider bars. Ive searched a lot into looking for some more simple tutorials, but am not finding any great ones that I can use.

  • Rotate JPG or PNG

    Hello
    I'm doing a website and a i have to put some images imported
    from a file (by actionscript), the problem is that the images must
    be rotated, but when i rotate the images loses quality, for example
    the lines look like stairs lol. (sorry my bad English, lol). The
    image looks great when strait, but when rotated... :s
    What i'm doing wrong? I import the image to a holder by
    loadMovie, the holder is the exact size of the image and i have
    tried to import jpg and png, and the problem is the same... I have
    tried to put the jpeg quality to the max and the movie quality to
    the best... No changes...
    Can any one help me?

    Hey guys, I've been following this one a little and got to
    thinking about using some methods from the BitmapData class. As it
    turns out, you can increase the quality of the image in rotation
    somewhat, by converting it to a BitmapData Object and then applying
    the rotation, this is a little cumbersome, but does seem to have
    the effect of increasing the image quality. I've set up an example
    comparison code here, using a jpg image at 72 dpi res, from my
    sever, just as an example, try it with some of your own images as
    well and see what you think, I think it shows improvement. Here's
    the code, just set a Stage to 600x400 and it'll do the rest:
    PS. the image on the left has not had the bmp conversion.

  • In some pc ActionScript not working even after running the .SWF or .EXE, what may be the problem ?

    In my flash project i am using ActionScript to get FULLScreen and mouse hide action. I hv already used the AS3 in Adobe Flash CC and AS2 in Adobe Flash CS6.  All my files are working well, both .SWF and .EXE (projector..) . But the client is saying in his pc the Full SCREEN and Mouse hide is not working. I instructed to update the flash player plugins, still they are getting the same issue. What is the matter pls any one guide us. My code is in the first frame of Flash file which is mention below.
    /*AS2 code*/
    fscommand("fullscreen","true");
    Mouse.hide();
    /*AS3 code*/
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
    stage.scaleMode = StageScaleMode.SHOW_ALL;
    Mouse.hide();

    Hi all, few days ago the client told , one of the project file (.SWF and .EXE) showing full screen. Again day before yesterday the client again said, all the project files working Full Screen and Mouse hide action. Still i do know such happens ? if any technical issue is behind its problem than anyone pls inform me. However it is running well in their PC now.

  • Mapping ArrayList in java to Actionscript Problem

    Hi Guys,
    This is wrecking my head. Had this issue for the last two days and cannot for the life of me understand why. I have a service defined as with the following method;
    public List getIngredients(){
              List list = null;
              List ingredientList = new ArrayList();
              SandwichDAOFactory fac = SandwichDAOFactory.getDAOFactory(1);
              IngredientDAO ingDao = fac.getIngredientDao();
              IngredientDTO ingDTO = new IngredientDTO();
              Ingredient ing = new Ingredient();
              list = ingDao.getAllIngredients();
              for (Iterator it=list.iterator(); it.hasNext();) {
                   ing = (Ingredient) it.next();
                   ingDTO.setIngredientID(ing.getIngredientID());
                   ingDTO.setName(ing.getName());
                   ingDTO.setPrice(ing.getPrice());
                   ingDTO.setDescription(ing.getDescription());
                   ingDTO.setType(ing.getDescription());
                  ingredientList.add(ingDTO);
              System.out.println("Calling Service");
              System.out.println(list.toString());
              return list;
    Now I have defined a remotes object in my flex app;
    I call this service method when I first load the application;
    retrievalService.getAllIngredients();
    then handle the result as follows;
    private function getAllIngredientsResultHandler(event:ResultEvent):void
                     ingredientsListData =  event.result as ArrayCollection;
                     var arrList:Array = event.result as Array;
                     trace("event.result.toString = "+event.result);
                     trace("ingredientsListData = "+ingredientsListData);
                    trace("arrList = "+arrList);
    I would expect to see the object references delimited in some way for all the trace methods. But when I run the example I get the following output;
    event.result.toString = [object IngredientDTO],[object IngredientDTO],[object IngredientDTO],[object IngredientDTO],[object IngredientDTO]
    ingredientsListData = null
    arrList = null
    I dont understand why this is happening. Surely the variables should contain the same info. I did some debugging and found that the event.result object did in fact contain the data as an ArrayCollection. In addition all the elements were objects of the type IngredientDTO and contained all the relevant fields and data. So again I don't understand for the life of me why its not working.
    Can you not caste an ArrayList in java to an Array or an ArrayCollection?
    Its like the data isn't being mapped or cast properlu from the ArrayList in java to either the Array or the ArrayCollection in actionscript.
    This is driving me insane. Has anyone else had this problem and lived to tell the tale?

    I figured it out. Silly, silly mistake. I was using the wrong import declaration.
    import flex.messaging.io.ArrayList;
    instead of
    import java.util.ArrayList;
    Silly silly...

Maybe you are looking for

  • In the same BSP, open  a htm from another

    hello, I search in the forum to open a htm page from another when I click a button. I have only one bsp with 2 pages with flow logic. I found something like that : from my "first_page.htm", I use a flag in OnInputprocessing : w_open_page = 'X'. In th

  • Calculating tax condition amount

    Hi all, I am  confused on how the system calculates tax conditon amount (let' say MWST) in sales order. In my system the tax condition type mwst has a condition record maintained of 4%  thru VK11 and a tax code V0 assoicated with it. The base value f

  • Dispaly PO and Street in an address node

    Hi Gurus, I am creating an adobe non-interactive form. I want to display an adderss with both Street and PObox. For that I am using an address node.If I give "POBOX has priority", only POBOX is displayed.If I give "STREET has priority", only street i

  • Extending DefaultEditorKit (add a new action to it)

    Can any one point me in the right direction on how to add a custom action to DefaultEditorKit? I just learned how to use the copy, paste, and cut actions and I would like to add my own custom actions. I know a few people on this forum have done it bu

  • Trouble Setting Up Mail

    Hi, I should be receiving my MacBook Pro in a couple days and want to set up Mail. My college's e-mail, however, doesn't work on MacMail. Is there a way to MAKE it work? I go to a PC school (unfortunately) and I want to use the Mail feature on my Mac