PNG transparency lost using event.target.loader.content.bitmapData

I load a png 24 (tripple checked alpha is ok)
override public function loadData():void
     var request:URLRequest = new URLRequest(url);
     var loader = new Loader();
     loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageloadedSuccess);
     loader.load(request);
public function imageloadedSuccess(e:Event):void
     showPNG(e.target.loader.content.bitmapData);
in Air 1.5 png (e.target.loader.content.bitmapData) has no transparency
same code using Flash 10 export transparency is there.
both of course loading same png file.
Is this a known issue?
I haven't tried yet using 2.0
is there a workarround to load external png and keep the transparency?
thx by advance
Fabrice

for each loader created, create a movieclip and add your loader to the movieclip.  assign all the properties you want to retrieve later to the movieclip and assign your event listeners to the movieclip.

Similar Messages

  • How do I use event.target.name in AS2?

    Thanks to kglad I was able to see how event.target.name in AS3 could make a button load a movieclip with the same namesake.
    I'm doing the same thing now in AS2 but don't know what to write instead of event.target.name.
    And so at the moment each button pushes info into an array and then a function uses that to decide which movieclip to attach to a holder after it has faded out once, and then fades in again...
    // ***** IMAGE GALLERY START ***** //
    // Add image to holder
    imgholder.attachMovie("img0", "image0_0", 1)
    // Array
    var nextLoad = ["img0"];
    // Btn listeners
    img5.onRelease = function() { trace (nextLoad); nextLoad.pop(); nextLoad.push("img5"); btnClick() } // Written on 1 line
    img4.onRelease = function() { trace (nextLoad); nextLoad.pop(); nextLoad.push("img4"); btnClick() }
    img3.onRelease = function() { trace (nextLoad); nextLoad.pop(); nextLoad.push("img3"); btnClick() }
    img2.onRelease = function() { trace (nextLoad); nextLoad.pop(); nextLoad.push("img2"); btnClick() }
    img1.onRelease = function() {
    nextLoad.pop();
    nextLoad.push("img1");
    btnClick()
    img0.onRelease = function() {
    nextLoad.pop();
    nextLoad.push("img0");
    btnClick()
    // The btn function
    function btnClick() {
    trace ("click");
    var myImgTween:Object = new Tween(imgholder, "_alpha", Strong.easeOut, 100, 0, 1, true);
    myImgTween.onMotionFinished = function() {
    fadeOutImg();
    // The btn function part II
    function fadeOutImg() {
    trace ("fadeOutImg");
    imgholder.attachMovie(nextLoad, "image1_1", 1);
    var myImgTween:Object = new Tween(imgholder, "_alpha", Strong.easeOut, 0, 100, 1, true);
    I know I should be able to push the button name into the array, but am having to use a string... I'm sure my code is cumbersome!! But it works. I've tried pushing the button name but it end up including the full stage reference.
    Is there a cleaner way of doing this using event.target.name?
    Thanks for looking!

    There is no event.target in AS2. However since AS2 has no way of remembering the scope object where the target object resides, you can use this to your advantage to retrieve the name of the target by using the "this" command in the function whenever you use the above format "mc.onPress = myfunc". FYI, the popular workaround Delegate, made it possible that when you called "this" in the function, you could retrieve the scope object where the target instance resides. So without its use, "this" will return the name of the target object. Anyway this is the code you can use:
    imgholder.attachMovie("img0","image0_0",1);
    var nextLoad = ["img0"];
    img5.onRelease = onImgRelease;
    img4.onRelease = onImgRelease;
    img3.onRelease = onImgRelease;
    img2.onRelease = onImgRelease;
    img1.onRelease = onImgRelease;
    img0.onRelease = onImgRelease;
    function onImgRelease():Void {
       nextLoad.pop();
       nextLoad.push(this._name);
       btnClick();
    // The btn function
    function btnClick() {
       trace("click");
       var myImgTween:Object = new Tween(imgholder, "_alpha", Strong.easeOut, 100, 0, 1, true);
       myImgTween.onMotionFinished = function() {
          fadeOutImg();
    // The btn function part II
    function fadeOutImg() {
       trace("fadeOutImg");
       imgholder.attachMovie(nextLoad,"image1_1",1);
       var myImgTween:Object = new Tween(imgholder, "_alpha", Strong.easeOut, 0, 100, 1, true);

  • Attached corresponding image in mouse without using event.target.name in actionscript 3

    Hi,
    AS3:
    How to get general id (or) name from xml loaded images. bcoz, i want to drag and drop that images in generic method. Now, i currently used the event.target.name for each one.
    So, code length was too large. See my code below.
    /*********loading images through xml********/
    var bg_container_mc:MovieClip
    var bg_bg_myXMLLoader:URLLoader = new URLLoader();
    bg_bg_myXMLLoader.load(new URLRequest("xml/backgroundimages.xml"));
    bg_bg_myXMLLoader.addEventListener(Event.COMPLETE, processXML_bg);
    function processXML_bg(e:Event):void {
              var bg_myXML:XML=new XML(e.target.data);
              columns_bg=bg_myXML.@COLUMNS;
              bg_my_x=bg_myXML.@XPOSITION;
              bg_my_y=bg_myXML.@YPOSITION;
              bg_my_thumb_width=bg_myXML.@WIDTH;
              bg_my_thumb_height=bg_myXML.@HEIGHT;
              bg_my_images=bg_myXML.IMAGE;
              bg_my_total=bg_my_images.length();
              bg_container_mc = new MovieClip();
              bg_container_mc.x=bg_my_x;
              bg_container_mc.y=bg_my_y;
              ContentHead.addChild(bg_container_mc);
              for (var i:Number = 0; i < bg_my_total; i++) {
                       var bg_thumb_url=bg_my_images[i].@THUMB;
                        var bg_thumb_loader = new Loader();
                       bg_thumb_loader.load(new URLRequest(bg_thumb_url));
                       bg_thumb_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded_bg);
                       bg_thumb_loader.name="bg_load"+i;
                       bg_thumb_loader.addEventListener(MouseEvent.MOUSE_DOWN, bg_down)
                       bg_thumb_loader.x = (bg_my_thumb_width-18)*bg_x_counter;
                       bg_thumb_loader.y = (bg_my_thumb_height-45)*bg_y_counter;
                       if (bg_x_counter+1<columns_bg) {
                                 bg_x_counter++;
                       } else {
                                 bg_x_counter=0;
                                 bg_y_counter++;
    function thumbLoaded_bg(e:Event):void {
              var my_thumb_bg:Loader=Loader(e.target.loader);
             var sprite:Sprite = new Sprite();
              var shape:Shape = new Shape();
              shape.graphics.lineStyle(1, 0x0098FF);
              shape.graphics.drawRect(e.target.loader.x-2, e.target.loader.y-2, e.target.loader.width+4, e.target.loader.height+4);
              sprite.addChild(shape);
              sprite.addChild(my_thumb_bg);
              sprite.x=4;
              bg_container_mc.addChild(sprite);
              my_thumb_bg.contentLoaderInfo.removeEventListener(Event.COMPLETE, thumbLoaded_bg);
    //  get name for each image. 
    I want to change this code in generic method. do needful.
    function bg_down(event:MouseEvent):void {
              var bg_name:String=new String(event.currentTarget.name);
              var bg_load:MovieClip=event.currentTarget as MovieClip;
              if (event.currentTarget.name=="bg_load0") {
                      var alaska_mc:alaska_png=new alaska_png();
                       addChild(alaska_mc);
                       alaska_mc.x=stage.mouseX;
                       alaska_mc.y=stage.mouseY;
                       alaska_mc.name="alaska_duplicate"+alaska_inc;
                       alaska_inc++;
                       alaska_mc.startDrag(false);
                      alaska_mc.addEventListener(MouseEvent.MOUSE_UP, stdrag);
                       alaska_mc.addEventListener(MouseEvent.MOUSE_UP, stdrag);
              if (event.currentTarget.name=="bg_load1") {
                       var lake_mc:lake_png=new lake_png();
                       addChild(lake_mc);
                       lake_mc.x=lake_mc.mouseX;
                       lake_mc.y=lake_mc.mouseY;
                       lake_mc.name="lake_duplicate"+lake_inc;
                       lake_inc++;
                       lake_mc.startDrag(false);
                       lake_mc.addEventListener(MouseEvent.MOUSE_UP, stdrag);
              if (event.currentTarget.name=="bg_load2") {
                       var mountn_mc:mountn_png=new mountn_png();
                       addChild(mountn_mc);
                       mountn_mc.x=mountn_mc.mouseX;
                       mountn_mc.y=mountn_mc.mouseY;
                       mountn_mc.name="mountn_duplicate"+mountn_inc;
                       mountn_inc++;
                       mountn_mc.startDrag(false);
                       mountn_mc.addEventListener(MouseEvent.MOUSE_UP, stdrag);
              if (event.currentTarget.name=="bg_load3") {
                       var town_mc:town_png=new town_png();
                       addChild(town_mc);
                       town_mc.x=town_mc.mouseX;
                       town_mc.y=town_mc.mouseY;
                       town_mc.name="town_duplicate"+town_inc;
                       town_inc++;
                       town_mc.startDrag(false);
                       town_mc.addEventListener(MouseEvent.MOUSE_UP, stdrag);
              if (event.currentTarget.name=="bg_load4") {
                       var water_mc:water_png=new water_png();
                       addChild(water_mc);
                       water_mc.x=water_mc.mouseX;
                       water_mc.y=water_mc.mouseY;
                       water_mc.name="water_duplicate"+water_inc;
                       water_inc++;
                       water_mc.startDrag(false);
                      water_mc.addEventListener(MouseEvent.MOUSE_UP, stdrag);
              if (event.currentTarget.name=="bg_load5") {
                       var city_mc:city_png=new city_png();
                       addChild(city_mc);
                       city_mc.x=city_mc.mouseX;
                       city_mc.y=city_mc.mouseY;
                       city_mc.name="city_duplicate"+city_inc;
                       city_inc++;
                       city_mc.startDrag(false);
                      city_mc.addEventListener(MouseEvent.MOUSE_UP, stdrag);
              if (event.currentTarget.name=="bg_load6") {
                        var citywide_mc:citywide_png=new citywide_png();
                       addChild(citywide_mc);
                       citywide_mc.x=citywide_mc.mouseX;
                       citywide_mc.y=citywide_mc.mouseY;
                       citywide_mc.name="citywide_duplicate"+citywide_inc;
                       citywide_inc++;
                       citywide_mc.startDrag(false);
                      citywide_mc.addEventListener(MouseEvent.MOUSE_UP, stdrag);
              if (event.currentTarget.name=="bg_load7") {
                       var downtown_mc:downtown_png=new downtown_png();
                       addChild(downtown_mc);
                       downtown_mc.x=downtown_mc.mouseX;
                       downtown_mc.y=downtown_mc.mouseY;
                       downtown_mc.name="downtown_duplicate"+downtown_inc;
                       downtown_inc++;
                       downtown_mc.startDrag(false);
                      downtown_mc.addEventListener(MouseEvent.MOUSE_UP, stdrag);
              if (event.currentTarget.name=="bg_load8") {
                       var powerlines_mc:powerlines_png=new powerlines_png();
                       addChild(powerlines_mc);
                       powerlines_mc.x=powerlines_mc.mouseX;
                       powerlines_mc.y=powerlines_mc.mouseY;
                       powerlines_mc.name="powerlines_duplicate"+powerlines_inc;
                       powerlines_inc++;
                       powerlines_mc.startDrag(false);
                      powerlines_mc.addEventListener(MouseEvent.MOUSE_UP, stdrag);
              if (event.currentTarget.name=="bg_load9") {
                       var tropical_mc:tropical_png=new tropical_png();
                       addChild(tropical_mc);
                       tropical_mc.x=tropical_mc.mouseX;
                       tropical_mc.y=tropical_mc.mouseY;
                       tropical_mc.name="tropical_duplicate"+tropical_inc;
                       tropical_inc++;
                       tropical_mc.startDrag(false);
                      tropical_mc.addEventListener(MouseEvent.MOUSE_UP, stdrag);
              if (event.currentTarget.name=="bg_load10") {
                       var waters_mc:waters_png=new waters_png();
                       addChild(waters_mc);
                       waters_mc.x=waters_mc.mouseX;
                       waters_mc.y=waters_mc.mouseY;
                       waters_mc.name="waters_duplicate"+waterthumb_inc;
                       waterthumb_inc++;
                       waters_mc.startDrag(false);
                      waters_mc.addEventListener(MouseEvent.MOUSE_UP, stdrag);
    Please suggest me if any  one.
    Regards,
    Viji. S

    for each loader created, create a movieclip and add your loader to the movieclip.  assign all the properties you want to retrieve later to the movieclip and assign your event listeners to the movieclip.

  • PNG Transparency Lost on PDF Print

    I have been googling and experimenting like a maniac for the last five hours and I am close to giving up. Please help me.
    What I want to do: I want to be able to open a PDF form I created in LiveCycle Designer with Adobe Reader and print it without all the PNG's losing their transparency. I conducted an experiment to pinpoint the problem:
    I started with these pictures.
    background.jpg - a run-of-the-mill colour image
    logo.png - a PNG-24 image with transparency saved using "Save for Web" in PS
    Using MS Word, I create a blank document, insert background.jpg and then logo.png on top of it. The background is visible through the transparent portions of the PNG.
    Using LC Designer, I create a blank document, insert background.jpg and then logo.png on top of it. The background is visible through the transparent portions of the PNG.
    I save the MS Word document as a PDF, using default settings (not that I can identify any settings that ought to affect the issue at hand), as word-doc.pdf
    I save the LC Designer document as a PDF, using default settings (not that I can identify any settings that ought to affect the issue at hand), as lc-doc.pdf
    I open word-doc.pdf in Adobe Reader XI and am satisfied to see that the transparency works as intended.
    I open lc-doc.pdf in Adobe Reader XI and am satisfied to see that the transparency works as intended.
    Since the ultimate outcome of my project is a form where the user should be able to save their changes by printing to PDF, I do the following.
    I save a copy of word-doc.pdf  by printing to Adobe PDF, and name the new file word-printed.pdf
    I save a copy of LC-doc.pdf  by printing to Adobe PDF, and name the new file LC-printed.pdf
    I open word-printed.pdf in Adobe Reader XI and am satisfied to see that the transparency works as intended.
    I open lc-printed.pdf in Adobe Reader XI and am HORRIFIED to see that the transparency DOES NOT WORK as intended.
    I try the same thing with printing to a physical printer instead of to a PDF file - same results.
    I try the same thing using all different PDF version (1.X) - same results.
    I try the same thing using a GIF instead of a PNG - same results.
    ...and so on.
    PLEASE HELP!!!

    You have a bigger problem than you realise. That Adobe PDF driver comes with Acrobat. Not with Windows, and not with Adobe Reader. That's why you have it. Your end users with Adobe Reader will not have it unless they also buy Acrobat (which is of course Adobe's preferred outcome and the reason for all limitations in Reader).
    In terms of graphics issues, it's probably because you are using a LiveCycle Designer (XFA) form. These are not really PDF and don't use PDF quality graphics. They are just a thin PDF wrapper round a simple XML forms architecture. If you want graphics quality, use an acroform.
    In terms of flattening, the popular way seems to be JavaScript, but there may be significant limitations on use in Reader. (The JavaScript API document gives information in Reader compatibility for each method).

  • Using event.target.submitForm to submit a PDF and XML attachment in a single email.

    I have a button on a PDF form which emails a PDF and XML attachment of the current form in two seperate emails. The code is as follows:
    event.target.submitForm({cURL:"mailto:" +  "[email protected]" +"?subject="+"Request for action " + "&body=Please find attached..." ,cSubmitAs:"XML",cCharset:"utf-8"});
    event.target.submitForm({cURL:"mailto:" +  "[email protected]" +"?subject="+"Request for action " + "&body=Please find attached..." ,cSubmitAs:"PDF",cCharset:"utf-8"});
    This results in 2 seperate emails, when all I need is a single email with two attachments. Is there a way to do this?

    As far as I know you can only attach one attachment at once.

  • Png transparency lost from PS to AI

    When I use the slice tool in PS cs4 and save as a png the transparency is lost when dragging it into AI. The results were the same when I used either linked or unlinked.
    When I use the "save as" in PS as a png the transparency is preserved.
    Transparency is preserved in both cases. I drag the png into PS and the background is transparent, so the file is good.
    The results were the same for png-8 and png-24.
    Is there a setting in AI that toggles the transparency?

    Sorry for the confusion. I am not dragging from ps to ai. I save the images as separate pngs, then drag the individual files to into AI.
    The real issue stems from the slice tool in PS not giving me a transparency that is recognized by AI when I drag the previously saved .png file into AI.
    Doing a "save as" in PS to a separate .png does preserve transparency (but I get a large region, not the specific slice) when dragged into AI. But then I have to do an extra step of cropping with Miscrosoft office picture manager. The slice tool solves the extra step, but introduces the transparency problem.

  • Is anyone using Events beyond 10h content?

    someone told me, he noticed, that audio gets lost, if you import more than 10h content into one Event. never heard of that 'effect', ... and I'm too lazy to re-enact such a situation on my Mc.
    anyone?

    AppleMan1958 wrote:
    My longest event is maybe 2 hours. What is he recording? Maybe all day lollapalooza rock concerts?
    that was my first reaction: an EVENT, by concept, is a 'day's recording' ... even spending the whole day in some Disney theme-park, I couldn't collect more than 4-5h ...
    But I don't understand, how the 'mass/mess' of data should infect audio-playback?
    (Can't figure how how to do those winking emoticons, but if I could, I would insert one here!)
    such?
    it is like adding any other picture here, you need a 'source' for smilies, I'm using these:
    http://www.macinacs.de/smile1.html
    Jive, the board's software offers just a few, e.g. ; ) = or : D = (without space) ...

  • Imported PNG Transparency Lost

    I created an image in Photoshop that included a gradient layer fading from transparency to a foreground color (in this case, black). I saved this image as a PNG file and imported the file onto my Flash stage. The gradient appears on the image as expected when viewing the stage in the Flash editor, however, when I test the movie, the gradient no longer appears. Any thoughts on what may be causing this? Thanks in advance.

    My bad... I forgot to resize my flash screen to the dimensions of the PNG image I was using for a background. When I would test the movie, the image of course, was cropped to the actual size of the screen, thereby leaving out the gradient at the  bottom of the image. I feel foolish now. Thanks for your offer to help, doghouseJim.

  • How can I control del Target Load plan in a mapping?

    Hi,I have a mapping (attachment) that does inserts and updates to the same table in 3 different situations. It is a simple mapping that inserts new rows or update one that already exists, but also keeps the instance before update. If one record already exists it inserts a new instance of that record and updates the old one with the modification date.But i'm having an issue because of the order in wich each target is loaded. I know i can make 3 independent pipelines and then use the target load plan but y want to avoid reading the source more than one tiem.Regards, Matías.

    kglad, thank you very much for taking a look.
    Perhaps it would be better to view the entire site here:
    http://www.katodesignstudio.net/linda/index.html
    On the News page, I'd like to have a button that will load
    the Screening page (screening.swf) where the News page is loaded.
    At the link above, the button has been removed until I can find a
    solution but it would be located where the "see screening page for
    details" text is now.
    As you can see by going to any other page, all of the pages
    in the site load into a container clip. From what I can tell so
    far, I need the button to unload the News.swf from the container
    clip and load the Screening.swf into that same container clip,
    similar to what the top Nav menu is doing. The trick seems to be to
    get the button to unload the swf that the button is located in...
    How can this be done?
    thanks again for your help!

  • Event.target == null in AIR client

    Hello,
    once again I have a question, and this may very well be a tricky one:
    I have the need to check if a dynamic XFA form has been signed from inside this form. This is quite easy and works perfectly if I just use a button on the form or just about any script event I can think of. It does, however, NOT work if I use the form inside an AIR client which is using a FormBridge construction to communicate with the PDF.
    The problem seems to be that event.target is always null in that case. So what I'm looking for is either an explanation why event.target is null when embedding the form inside AIR or how to check if the form is signed without having to use event.target (or the doc object if you will).
    Can anyone think of anything to achieve this?
    Many thanks,
    Steffen.

    Here is the site: http://coenraets.org/blog/2009/12/air-2-0-web-server-using-the-new-server-socket-api/
    My question is under socketDataHandler() function.
    Thanks.

  • Event.target confusion?

    I'm trying to reusing function by using event.target, but after searching and trying different method online, I found the hardest part to understand is event.target part...
    can anyone please explain to me what is the difference between(the example on right showing where I encounter those code):
    1.event.target
    2.event.target.name
    3.event.currentTarget                             //e.g. event.currentTarget.addChild(myMc);
    4.event.currentTarget.name                    //e.g. var newswf:URLRequest= new URLRequest( event.target.name +".swf");
    5. MovieClip(event.currentTarget)            //e.g. addChild(MovieClip(event.currentTarget));

    I believe that Circle is extending MovieClip so it is MovieClip. The circle is many things, you just have to say the compiler which one you mean
    This is the inheritance of MovieClip:
    MovieClip  Sprite DisplayObjectContainer InteractiveObject DisplayObject EventDispatcher Object
    The main culprit is the event.currentTarget property, which returns the safest option, Object. But it doesn't mean the circle becames only Object and nothing more, it means that the circle is just treated as just-an-object until you explicitly say "treat it as a MovieClip" by casting it as MovieClip: MovieClip(event.currentTarget).

  • How do I use the event.target.name String with an external dispatchEvent?

    ...I hope the title question makes sense...
    On my stage I have an externally loaded SWF with a button. When clicked the button dispatches an event to the main stage.
    On the main stage a listener then loads an SWF into a loader called gallery.
    The gallery loader is also being shared by buttons on the main stage which use the event.target.name String to call in SWFs with corresponding names.
    I am using Tweens to fade-out and -in content to the gallery when a button is pressed.
    Loading the SWFs was working until I tried to create a universal button function for the dispatchEvent buttons...
    The problem I have is that I don't know how to define the String to tell the newSWFRequest where to find the SWF when triggered by the external buttons.
    (I may be doing this all wrong... but figured the best way to load an SWF on to the main stage from an external SWF was by using dispatchEvent??)
    My code triggers the Event and the gallery loader fades out, but then it cannot find the new SWF:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
    Please can someone help me understand the way to make the String point in the right direction? (I think the only errors are in bold below)
    Code:
    var myTweenIn2:Tween;
    var myTweenOut2:Tween;
    var nextLoadS2:String;
    // Listen for external event dispatched from external btns
    addEventListener("contactStage", btnClickExtrnl);
    function btnClickExtrnl(e:Event):void {
    nextLoadS2 = ?????
    myTweenOut2=new Tween(gallery,"alpha",None.easeOut,gallery.alpha,0,0.2,true);
    myTweenOut2.addEventListener(TweenEvent.MOTION_FINISH,tweenOutCompleteF2);
    // Btns Universal function
    function tweenOutCompleteF2(e:TweenEvent){
    myTweenOut2.removeEventListener(TweenEvent.MOTION_FINISH,tweenOutCompleteF2);
    myTweenOut2=null;
        var newSWFRequest:URLRequest = new URLRequest("swfs/" + nextLoadS2 + ".swf");
    myTweenIn2 = new Tween(gallery, "alpha", None.easeOut, gallery.alpha, 1, 0.2, true);
        gallery.load(newSWFRequest);
        gallery.x = Xpos;
        gallery.y = Ypos;
    Thank you.

    That works – thank you!
    I'm now using this code to fade in each of the SWFs:
    function contactStage(e:MouseEvent):void {
        var newSWFRequest:URLRequest = new URLRequest("swfs/"+e.currentTarget.name+".swf");
        myTweenIn = new Tween(gallery,  "alpha", None.easeOut, 0, 1, 0.2, true);
        gallery.load(newSWFRequest);
        gallery.x = Xpos;
        gallery.y = Ypos;
    But I cannot add the fade out function. I have amended the above code to create:
    var myTweenOutX:Tween;
    var myTweenInX:Tween;
    function contactStage(e:MouseEvent):void {
    myTweenOutX=new Tween(gallery,"alpha",None.easeOut,gallery.alpha,0,0.2,true);
    myTweenOutX.addEventListener(TweenEvent.MOTION_FINISH,tweenOutCompleteFX);
    function tweenOutCompleteFX(e:TweenEvent){
    myTweenOutX.removeEventListener(TweenEvent.MOTION_FINISH,tweenOutCompleteFX);
    myTweenOutX=null;
        var newSWFRequest:URLRequest = new URLRequest("swfs/"+e.currentTarget.name+".swf");
    myTweenInX = new Tween(gallery,  "alpha", None.easeOut, 0, 1, 0.2, true);
        gallery.load(newSWFRequest);
        gallery.x = Xpos;
        gallery.y = Ypos;
    But get this error:
    ReferenceError: Error #1069: Property name not found on fl.transitions.Tween and there is no default value.
    at ACOUSTIC_fla::MainTimeline/tweenOutCompleteFX()[ACOUSTIC_fla.MainTimeline::frame1:110]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at fl.transitions::Tween/set time()
    at fl.transitions::Tween/nextFrame()
    at fl.transitions::Tween/onEnterFrame()
    Where am I going wrong?

  • Remove MovieClip with event.target.content

    Hi every one please i need your help i have this code and i want to remove baresClip but i cante removeit please helpme
    var loaderBares:Loader = new Loader();
        loaderBares.unload();
        loaderBares.load(new URLRequest("negocio/bares.swf"));
    loaderBares.contentLoaderInfo.addEventListener(Event.COMPLETE,loadBares);
    function loadBares(event:Event){
              var baresClip:MovieClip = event.target.content;
              baresClip.x= -474;
              baresClip.y= -135;
              addChild(baresClip);
    baresClip.over1.receta1.addEventListener(MouseEvent.CLICK, prueba);
              function prueba(event:MouseEvent):void{
                                  gotoAndStop("receta1");
                                  removeChild(baresClip); /*Here is working*/
    MovieClip(root).mc_negocio.menu_negocio.btn_botanas.addEventListener(MouseEvent.CLICK, goToBotanas);
    function goToBotanas(event:MouseEvent):void
      removeChild(baresClip);   /*Here is not working*/
              gotoAndPlay("botanas");

    oh, i see what you're doing.  you made baresClip local to loadBares.
    to remedy, use:
    var baresClip:MovieClip
    var loaderBares:Loader = new Loader();
        loaderBares.unload();
        loaderBares.load(new URLRequest("negocio/bares.swf"));
    loaderBares.contentLoaderInfo.addEventListener(Event.COMPLETE,loadBare s);
    function loadBares(event:Event){
              baresClip = event.target.content;
              baresClip.x= -474;
              baresClip.y= -135;
              addChild(baresClip);
    baresClip.over1.receta1.addEventListener(MouseEvent.CLICK, prueba);
              function prueba(event:MouseEvent):void{
                                  gotoAndStop("receta1");
                                  removeChild(baresClip); /*Here is working*/
    MovieClip(root).mc_negocio.menu_negocio.btn_botanas.addEventListener(M ouseEvent.CLICK, goToBotanas);
    function goToBotanas(event:MouseEvent):void
      removeChild(baresClip);   /*Here is not working*/
              gotoAndPlay("botanas");

  • Graphics using graphic API are drawn below the loaded content created using Flash authoring tool

    Here is my problem.
    I am developing a Analog Dial component. Here , I am
    extending UIComponent and loading a swf file generated using Flash
    CS3 authoring tool ( the swf basically has the circle and needle)
    and adding the loaded content as child of Dial class.
    Next I use Graphics API to draw the major and minor ticks on
    the dial.
    As mentioned in the curveTo method of flash.display.Graphics
    class documentation (
    http://livedocs.adobe.com/flex/201/langref/index.html),
    if you are using graphics api and also loading content created
    using the flash authoring environment the vector graphics will be
    drawn underneath the loaded content.
    Well , Is there any way to make the graphics appear on top of
    the loaded contents?

    It appears that this may be accomplished more easily if I do something similar to the StrobeMediaPlayback implementation. Looking at the StrobeMediaPlayback source code it looks like Adobe has done something a little different than their ControlBarPlugin, placing the controlbar and root media element inside separate MediaContainers and then adding those containers to the display list. Is this recommended over using the frameworks ParallelElements? If so, is communication between the control bar and root media element still a matter of just updating the target reference via metadata?

  • Dynamically load content by date using xml

    i would like to load content by date using xml. meaning if i
    have 5 upcoming social events listed, i want them to dynamically
    drop off from my webpage as the event date passes. i would like to
    use the built in spry xml dataset functionality, but don't have to.
    i can't seem to find a way to get the server date and then compare
    it to a date in a xml node. this seems simple, but i can't seem to
    find a tutorial that does not get crazy with all kinds of
    code.

    Have the column headings (which the user clicks to sort by
    that column) as
    links back to the main page, with the sort as a url parameter
    eg
    www.mysite.com/mypage.php?sort=name
    www.mysite.com/mypage.php?sort=date
    etc
    Then in your recordset, change the code from
    $sql = "SELECT * FROM table ";
    to
    switch($_GET['sort']){
    case "date":
    $sql = "SELECT * FROM table ORDER BY date DESC";
    break;
    case "name":
    $sql = "SELECT * FROM table ORDER BY name DESC";
    break;
    You`ll need to change the above to suit your needs obviously,
    but the above
    shows the principles that you need to use.
    So you use the same page for each sort, but the SQL to
    retrieve the records
    in the order you want changes dynamically.
    Gareth
    http://www.phploginsuite.co.uk/
    PHP Login Suite V2 - 34 Server Behaviors to build a complete
    Login system.

Maybe you are looking for

  • FCE can no longer read my project...

    So everything was all well and good and today I tried to open an FCE file and I get the message: "This project is unreadable or may be too new for this version of final cut." The project is using HDV Apple Intermediate Codec 720p30. There is no live

  • What is DispatchEvent used for ?

    Hi Everyone, What is the DispatchEvent used for? If possible, please give me an example with code. Thanks a lot in advance. May

  • My 6g audiobook icon has disappeared.  Help

    My 6g nano's audiobook icon has disappeared. My books show up in iTunes but I can't play then since I have no audiobook icon.  I did a settings reset on the nano but it did not help.  Any ideas?

  • SDPICK - picking request

    We have a Warehouse managed stock and wan't to update a delivery with actual picked quantities. Thats OK but wa wan't to manually create and confirm Transfere orders. If I try to either use this IDoc or call WS_DELIVERY_UPDATE directly a Picking Requ

  • Kernel26 compile error (trying to install Synce)

    Hi! I'm trying to patch kernel26 (using files from abs, version 2.6.21.1-8), with this patch: http://synce.svn.sourceforge.net/svnroo … -wm5.patch I'm following instructions here: http://www.synce.org/index.php/Connecti … is-lite%29 I copied the kern