Gallery wont exit when I enter a new frame

I have an external Gallery that is called within my fla file. My problem is that every time I try to go to my home page or any other page for that matter the gallery doesn't go away. I can access my other pages "frames" and everything works fine, but my gallery blocks some of the page. How can I exit out of my gallery when I go to another page??

well i have my gallery set to be removed at event, CLICK.. but when I hit one of my buttons to change frames, it doesn't register as a click and leaves the main gallery image on, PERMANENTLY.
this is my .as file
package {
import flash.display.Loader;
import flash.display.Sprite;
import flash.display.Bitmap;
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
import flash.events.MouseEvent;
import flash.events.Event;
import flash.net.URLRequest;
public class createThumb extends Sprite {
private var arraytween:Array = new Array();
private var thumb_loader:Loader;
private var photo_loader:Loader;
private var thumb_url:String;
private var photo_url:String;
private var thumb_bit:Bitmap;
private var photo_bit:Bitmap;
private var mother:Sprite;
private var thumb_btn:Sprite;
public function createThumb(childof:Sprite,thumburl:String,photourl:String) {
mother=childof;
thumb_url=thumburl;
photo_url=photourl;
loadthumb();
private function loadthumb():void {
thumb_loader = new Loader();
thumb_loader.load(new URLRequest(thumb_url));
thumb_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,displaythumb);
private function displaythumb(e:Event):void {
thumb_btn = new Sprite();
thumb_bit= new Bitmap();
thumb_btn.y=(stage.stageHeight-thumb_btn.height)/1.25;
thumb_btn.graphics.beginFill(0x000000,0);
thumb_btn.graphics.drawRect(0,0,125,125);
thumb_btn.graphics.endFill();
thumb_bit=e.target.content as Bitmap;
thumb_bit.y=(stage.stageHeight-thumb_bit.height)/1.045;
thumb_btn.width=thumb_btn.height=thumb_bit.width=thumb_bit.height=125;
thumb_bit.smoothing=true;
addChild(thumb_bit);
addChild(thumb_btn);
thumb_btn.addEventListener(MouseEvent.CLICK,loadphoto);
private function loadphoto(e:Event):void {
arraytween.push(new Tween(mother,"y",Regular.easeOut,mother.y,0,.5,true));
photo_loader = new Loader();
photo_loader.load(new URLRequest(photo_url));
photo_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,displayphoto);
private function displayphoto(e:Event):void {
stage.addEventListener(MouseEvent.CLICK,closephoto);
photo_bit= new Bitmap();
photo_bit=e.target.content as Bitmap;
photo_bit.smoothing=true;
photo_bit.x=(192);
photo_bit.y=(110);
stage.addChild(photo_bit);
private function closephoto(e:Event):void {
arraytween.push(new Tween(mother,"y",Strong.easeOut,mother.y,0,.5,true));
arraytween[arraytween.length-1].addEventListener(TweenEvent.MOTION_FINISH,cleartween);
photo_loader.unload();
if (photo_bit!=null)
stage.removeChild(photo_bit);
stage.removeEventListener(MouseEvent.CLICK,closephoto);
private function cleartween(e:TweenEvent):void
arraytween=[];

Similar Messages

  • HT1918 When I enter my new card it still shows declined why is it doing this?

    When I enter my new card it still shows my card to be declined why?

    What are you trying to use as your payment method, credit card or debit card ? If it's a debit card then I don't think that they are still accepted as a valid payment method in all countries - from this page :
    You may be able to use other payment types in your country, like debit and Maestro cards.
    which implies that they are not accepted in all countries, and there have been a number of posts about them being declined.
    For a card to have a chance of being accepted it needs to be registered to exactly the same name and address (including format and spacing etc) that you have on your iTunes account, and have been issued by a bank in the country where you and your iTunes account are. If it is then you could check with the card issuer to see if it's them that are declining it, and if not then try contacting iTunes Support (these are user-to-user forums) and see if they know why it's being declined (but you might not be able to use a debit card) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management

  • Alarm is automatically set when I enter a new appointment i n the calendar Treo 680

    When I enter a new appointment in the handheld an alarm is automatically set and I have to disable it manually.  This doesn't happen when I enter a new appointment on the computer.  I called Palm and they told me that the Treo 680 default mode was to automatically set the alarm and there was nothing I could do.  THIS IS VERY ANNOYING.  Anyway I can disable this so I am able to set alarms only when I want to?
    Post relates to: Treo 600 (Sprint)

    I've looked for a means of setting default lead times for calendar event alarms, and I've not found any. So, I don't think you can set a default of being off, either.
    When I had my old Sony Clié NR70V with the Palm O/S, under the Calendar application's (they called it Date Book) Preferences, it had an "Alarm Preset" option. You could check or uncheck it, and set a number, 0-99, and select Minutes, Hours or Days.
    Look under the "i" information Icon under the Calendar application's Preferences area. Note that it says: "When available, checking Alarm Presets sets an alarm for every new event, including....."
    You use to be able to set the number of times and how often you would be reminded for alarmed events, too, as is indicated there.
    Why have they crippled our O/S in several ways? Third party software sales? It doesn't make sense to me.
    We are going backwards.
    Good luck.
    Never, under any circumstances, take a sleeping pill and a laxative on the same night.
    Post relates to: Treo 680 (Cingular)
    Post relates to: Treo 680 (Cingular)
    Message Edited by Sick_Puppy on 08-28-2008 07:54 PM

  • I am trying to create a panorama, when I enter File New I don't get the Photomerge Panorama option, the only options that appear are Blank file and File from clipboard.  How do I get photomerge panorama

    I am trying to create a panorama.  When I enter FILE > NEW > the Photomere panorama option does not appear.  the only options are Blank file and file from clipboard.  This is in Elements 11 on Windows 8.1 OS.  How do I get Photomerge Panorama to appear.

    Since PSE11, you access the photomerge option in the 'Enhance' menu, last option. Or you can use the organizer (menu Edit / Photomerge).

  • HT1918 When I enter my new credit card information it says to contact iTunes support to complet it. How do I do that?

    When I enter my new credit card information it tells me to contact iTunes support to continue. How do i do this?

    You can contact iTunes support via this page : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • HT5622 I have re set my password and have received confirmation that the change has been made by email.....however  when I enter the new password ....the system tells me it is incorrect ????

    I have re set my password and have received confirmation that the change has been made by email.....however  when I enter the new password ....the system tells me it is incorrect ????

    Sign out of Apple ID, re-start and sign in again.

  • How to clear the stage when entering a new frame

    Dear all,
    I am making my first website in flash based on frames. When you go to an other frame the Stage fades out. When you enter the frame you see nothing at all. So how can I clear the stage when entering the frame or even better it fades into the frame with clearing the objects & code of the previous frame.
    Hope somebody can help me with this!
    /*buttons naar frames*/ homehome.mouseChildren = false; homehome.buttonMode = true; homehome.addEventListener(MouseEvent.CLICK, actie5); homehome.addEventListener(MouseEvent.ROLL_OVER, actie5); homehome.addEventListener(MouseEvent.ROLL_OUT, actie5); var fadetimer:Timer; var st:MovieClip = new MovieClip(); function actie5(event:MouseEvent):void {   //klikken if(event.type == "click"){ st.graphics.beginFill(0xFFFFFF); //Choose your color to fade.         st.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);         st.graphics.endFill();         st.alpha = 0;         stage.addChild(st);         fadetimer = new Timer(100);         fadetimer.addEventListener(TimerEvent.TIMER, fadeStage);         fadetimer.start(); }   //roll over   if(event.type == "rollOver"){     infohome.text = "je staat op de knop";   }   //roll off   if(event.type == "rollOut"){     infohome.text = "";   } } function fadeStage(te:TimerEvent):void {     if (st.alpha < 1) {         st.alpha += 0.05;     } else {         fadetimer.stop();         fadetimer.removeEventListener(TimerEvent.TIMER, fadeStage);         gotoAndStop(7);     } }
    Thanks a lot for your time

    sorry can't get the code working properly onwith the html code function. Sorry for that

  • When I enter a new contact in my Mac Book Pro, it does not show up in my new iPod touch 5.  What am I doing wrong?

    I thought my ipod touch contacts would be up loaded when I enter them in my Mac Book Pro while I am connected to the internet.  Do I have to hard wire syn to get the contacts up loaded from my Mac to my ipod touch 5?

    iTunes 11 for Mac: Sync contacts, calendars, and other info with iPod, iPhone, or iPad

  • [Help]Timeout when going to a new frame!

    Hello Community!!! so i searched for something but i can't found anything!!!
    so i have a button... and that button when you are pressing it you ar go to an another frame... but when you will press it again it will go back to the first frame!
    so cause i have an error with "FadeSymbolIn" code that when you are going to frame and pressing too early the button to go back... the Flash Player 11 show me an error.... and the Alpha on this frame is going to 2 from 1.
    so i want when you are pressing the button and going to a new frame to can't press other button so early... but for example to be freezed for 1 second!!! i want something like that!!!
    Please help me if you can! i will be very glad for your help! i am new o flash and don't know too much!!! And sorry for my bad English!!!!!

    i don't have any problem on swf...
    only on Projector i have this error...
    i think is a flash player bug!!! not any wrong code on my script! but take a look!!!
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
       at FinalVersion_fla::MainTimeline/fl_FadeSymbolIn_18()[FinalVersion_fla.MainTimeline::frame19:160]
    the frame doesn't matter... it will be to all the frames if i will press the buttons too quickly...
    and the code that gives the error is:
    OSRAM_popup.addEventListener(Event.ENTER_FRAME, fl_FadeSymbolIn_18);
    OSRAM_popup.alpha = 0;
    function fl_FadeSymbolIn_18(event:Event)
              OSRAM_popup.alpha += 0.1;
              if(OSRAM_popup.alpha >= 1)
                        OSRAM_popup.removeEventListener(Event.ENTER_FRAME, fl_FadeSymbolIn_18);
    is flash player bug cause on swf file i don't have this error when i press the button too quickly

  • XML GALLERY WONT EXIT

    I have an XML gallery that has been giving me some problems. My as3 refers to an .as file that is in itself a class. This class creates the gallery and has an event listener to exit the gallery when clicked. It works perfectly fine for exiting the main image, but my thumbnails don't budge. I fixed the thumbnail issue by adding the code removeChild, which removes the gallery completely, but freezes the main image. What I think is happening is that when I add the code removeChild it disables any communication between my swf and as files, which in turn skips over the eventListener to remove my main image.. the code is kind of long and complicated, but i was hoping for some advice.. tips.. anything.

    thanks for the help!!
    I'm still getting an error 2007 non null object, even though i declared it in same style in which i declared photo_bit.
    take the following code for example...
    stage.removeChild(stage.getChildByName("photo_bit"));
    stage.removeChild(stage.getChildByName("thumb_btn"));
    stage.removeChild(stage.getChildByName("thumb_bit"));
    and yes I added it to my .as file
    private function displaythumb(e:Event):void
         thumb_btn = new Sprite();
         thumb_bit= new Bitmap();
         thumb_btn.name="thumb_btn";
         thumb_bit.name="thumb_bit";
         thumb_btn.y=(stage.stageHeight-thumb_btn.height)/1.25;
         thumb_btn.graphics.beginFill(0x000000,0);
         thumb_btn.graphics.drawRect(0,0,125,125);
         thumb_btn.graphics.endFill();
         thumb_bit=e.target.content as Bitmap;
         thumb_bit.y=(stage.stageHeight-thumb_bit.height)/1.045;
         thumb_btn.width=thumb_btn.height=thumb_bit.width=thumb_bit.height=125;
         thumb_bit.smoothing=true;
         addChild(thumb_bit);
         addChild(thumb_btn);
         thumb_btn.addEventListener(MouseEvent.CLICK,loadphoto);

  • Foxfire is remembering a past password for a website, and the site won't accept when I enter the new password.

    I enter data on a State Health website, which requires that I change my password on a regular basis. I tried to login with the new password, and called the website's help desk for help, when I was unsuccessful. They said it was because Firefox was remembering the old password each time I tried to log on, and that I should ask you to remove the "remembering password" component.

    Thank you. I had to pull up an article on "How to Clear the Cache", and I think I got that and "Removed Cookies" from the site that I was having trouble with (although I didn't see any where to "okay" the new settings, so I just closed out). But I'm still not able to get on the site, so I have a call in to their support.

  • Keyboard wont work when setting up a new admin account

    I cant remember the admin password so I tricked the computer into thinking ir was a new setup so i could create a new admin account. I did:
    A cmd + s at startup then typed
    Mount -uw /
    Rm /var/db/.applesetupdone
    Shutdown -h now
    I did not transfer data or create a new id
    I tried to enter my wifi info and new account name but the keyboard now will not work! It makes a sound when I try to press any key. i cannot finish setup, I am stuck. The caps lock will turn on so I know the keyboard works. Please help!!

    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition &amp; use Disk Utility from there to Repair the Disk, then Repair Permissions.
    Reset Password 10.7, 10.8...
    http://reviews.cnet.com/8301-13727_7-20087723-263/how-to-run-the-password-reset- utility-in-os-x-10.7-lion/
    Then Reset your Keychain...
    http://support.apple.com/kb/TS1544
    http://www.macyourself.com/2009/08/03/how-to-reset-your-mac-os-x-password-withou t-an-installer-disc/
    Bdaqua - does this require a disk, bc I dont have any. Will it affect my other data from my prior accounts? Thank you.

  • Am trying  to instal of AFP.When I enter my new password, the little box just shivers and shakes and will not accept.  Pas

    Trying to instal Adobe Flash Player new version.  Half an hour ago I set my new password and it was accepted by Adobe.  When I get to the last stage of installation and am asked to enter the password, it will no accept.

    Hello,
    Are you both using the shim installer, downloaded from get.adobe.com/flashplayer?  If so, please try using the full installer instead.  A link to the full installer is provided at the bottom of the Installation problems | Flash Player | Mac page, in the 'Still having problems' section.
    Maria

  • When I enter a new contact it disappears

    I have been trying to add a new contact but when I do it disappears

    the basics.
    On each device - settings, i cloud, contacs on.
    settings, contacts, iclound, contacts, on.
    Sometimes it takes alittle while.  fully close the contact app, then reopen (I think that is when it checks for changes).
    fully close the app by double tapping the home button - swipe up on the apps to close them.

  • After 3 seconds nothing happens when I enter a new CD to burn

    Once I updated to iTunes 7.0.1, I can't burn CDs anymore. I create a playlist, click burn, it opens the tray and tells me to put in blank media, I do, put the tray in with the eject button on the keyboard, it says checking media for 3 seconds then just shows the Apple logo. That's it! No error message. Nada. This used to work before the upgrade. Is this known? I've tried 4 different new blank CDs, other playlists that I burned CDs from before the upgrade. I'm using the internal Pioneed DVD-RW DVR-106D that came in the device.

    Good question. It doesn't show in the Finder even if I change the CD preference, so I guess that indicates that the drive is busted. Why would it happen when updating iTunes? Coincidence?

Maybe you are looking for