Mouseover move 1 of 6 buttons to front for simple gallery

OK this is crazy. I have tried so many solutions and nothing seems to work. I have six images on a frame as buttons with rollovers making them expand on the button frames. The issue is when the mouse goes over they only expand over the other buttons they are above stackingwise in that layer. I really was hoping to create just a simple bit of code, but it seems that things like containers and children are all needed?
My code is thus...
dig1.addEventListener(MouseEvent.MOUSE_OVER, over1);
function over1(event:MouseEvent):void
addChild(event.currentTarget);
dig2.addEventListener(MouseEvent.MOUSE_OVER, over1);
dig3.addEventListener(MouseEvent.MOUSE_OVER, over1);
dig4.addEventListener(MouseEvent.MOUSE_OVER, over1);
dig5.addEventListener(MouseEvent.MOUSE_OVER, over1);
dig6.addEventListener(MouseEvent.MOUSE_OVER, over1);
The little line of code was my most recent attempt but it pulled up an error about things I have no clue on (1118). Is there a simple code to move the current button on top with out having to say "forget AS3!" and just make a 5 frame webpage a 60 frame one?
P.S. what is the best format to import videos into a flash project? I went with a swf version, but I was not sure if the mov or other formats would be better.

your main timeline has dig1-dig6
your main timeline has the code:
var t = this;
t.addChild(dig1)
t is the main timeline
the main timeline adds dig1
your main timeline has a container movieclip named "container" and dig1-dig6 are inside container
your main timeline has the code:
var t = container;
t.addChild(dig1)
t is the container
the container adds dig1
if dig1 is already on the stage when you addChild(dig1), it gets moved to the top of the display list (sort of like swapping it's depth to the uppermost depth)
note to kglad:
you're right, it does not appear to be losing scope- but when running the code as is, it failed.

Similar Messages

  • Little help for simple gallery

    Hi, i use a very simple spry gallery. the xml format is this
    <photos>
    <photo pathtn="..." path="..." description="..." />
    <photo......
    <photo......
    </photos>
    Then on the thumbnails div i've got a spry:repeat and a
    spry:setrow to set the content of the spry:detailregion which shows
    the large image and the description. The gallery works very well,
    but what i'd like to do is to change the aspect of the active
    thumbnail...Nothing too complicated..just a thicker border ...how
    could i do this?
    thanks!

    I don't know if this is best way to do it, but I wrapped my
    thumbnails section in a div called "thumbnails" to which i applied
    the spry:region="dsPhotos dsGalleries dsGallery".
    From here, I entered my spry div:
    <div spry:repeat="dsPhotos"
    onclick="HandleThumbnailClick('{ds_RowID}');"
    onmouseover="Spry.Effect.AppearFade('tn{ds_RowID}',
    {duration:1000,from:100,to:20,toggle:true})"> <img
    id="tn{ds_RowID}" alt=""
    src="galleries/{dsGalleries::@base}{dsGallery::thumbnail/@base}{@thumbpath}"
    width="24" height="24" /></div>
    Then I closed the thumbnails div.
    From here, I simply created a #thumbnails rule in my css
    file, and changed my border like so:
    #thumbnails img {
    padding: 1px;
    clear: none;
    float: left;
    height: 24px;
    width: 24px;
    margin-top: 5px;
    margin-right: 5px;
    margin-bottom: 0px;
    margin-left: 0px;
    border: 2px solid #CCCCCC;
    Hope this helps!

  • How do I create a message box for a listbox, with a 'move item up' and a 'move item down' button?

    In my listbox I want to create an error message for when I click the 'move item up' button and the item is already at the top of the list, but I am not sure how to do it.
    Here is the code I have right now:
    if (ListBox. )
    MessageBox.Show("Item is already at the top of list.");
    return;
    I also want to know how I would do the same for a 'move item down' button (if it is at the bottom of the list and I click 'move item down' button).
    Thanks.

    Here is the code,
    C#
    public void button1_click(object sender, EventArgs e)
    if (ListBox1.SelectedIndex == 0) {
    //MSGBOX
    return;
    //'Your move up code
    public void button2_click(object sender, EventArgs e)
    if (ListBox1.SelectedIndex == ListBox1.Items.Count - 1) {
    //MSGBOX
    return;
    //'Your move down code
    Insert each code in their own buttons.
    VB.net
    Public Sub button1_click(sender As Object, e As EventArgs) Handles UpButton.click
    If ListBox1.SelectedIndex = 0 Then
    'MSGBOX
    Exit Sub
    End If
    ''Your move up code
    End Sub
    Public Sub button2_click(sender As Object, e As EventArgs) Handles DownButton.click
    If ListBox1.SelectedIndex = ListBox1.Items.Count - 1 Then
    'MSGBOX
    Exit Sub
    End If
    ''Your move down code
    End Sub

  • HT1657 I rented a movie and accidentally hit the menu button and now I can figure out how to go back and watch it . When I try to press rent again it says you have already downloaded this movie go to settings and check for downloads but I can find it.

    I rented a movie and accidentally hit the menu button and now I can figure out how to go back and watch it . When I try to press rent again it says you have already downloaded this movie go to settings and check for downloads but I can find it download in settings.

    I had the same issue with my apple tv 3rd generation. I rented Sinister and selected the "rent and watch now" option. Half way through the movie I accidentally pressed the menu button. When I looked for the rented movie on my apple tv I could not find it. Not even above the movie pannel where "purchased" and "top movies" comes up on the main menu. the apple tv suggests to go to settings>downloads but I don't have that option. I did go to settings> itunes store> check rentals but that didnt work either. It took too long to even check. Thank you because this SOLUTION worked great.
    SOLUTION: How to reset apple tv 3 3rd generation to view rented movies:on the apple tv remote: press and hold "menu" to go to the main menu. Select SETTINGS> GENERAL >RESET >RESET ALL SETTINGS. After the apple tv resets, input all your information again and your rented movies should be visible when you cruise above the "movies" section. THANK YOU!!
    Apple needs to solve this issue because honestly it took me 3 hours and a half to watch a movie that only lasted 2 BECAUSE I wast trying to solve the issue, reseting and all. blahh.

  • Button or Tab for Movies and Music Disappeared

    In iTunes, when I tap Apple TV, the only buttons or tabs that comes up are Summary and Photos.
    No button or tab for Music or Movies appears.
    Thus, I cannot sync either music or movies.
    My Apple TV software is up to date as is my iTunes.
    Suggestions?

    you have your appletv connected to itunes as a sharing connection only (ie not sync options).
    you need to remove the link to itunes and set it up again, this time as a primary library.

  • After updating to IO7 (Iphone 5) I had to accept the user agreement for APPSTORE all over again, the thing is after reading 54 pages of user agreement, no accept button has appeared for me to move on.

    No accept button has appeared for me to accept the APPSTORE user agreement.

    various solutions in "More like this" on right of this page

  • How to edit JVC/Panasonic/Canon .mod video in Windows Movie Maker then upload to YouTube for sharing

    Quick View:
    Part 1: How to import .mod video to Windows Movie Maker
    Part 2: How to edit the video with Windows Movie Maker
    Part 3: How to upload your video to YouTube
    Know More:
    1. Which Camcorders record video in .MOD type?
    2. What file types are supported by Windows Movie Maker?
    3. What file types are supported by YouTube? 
    Part 1: How to import .mod video to Windows Movie Maker
    Step 1: Load files
    First copy the MOD file from your video camera to your hard drive, then download, install and run MOD Converter, click the "Add Files" button to browse your computer hard disc and load the MOD/TOD video files you want to convert to the program. 
    Step 2: Output Setting
    In the bottom of the main interface, select an output format supported by Windows Movie Maker for each video file and specify a directory on your computer to save the output files. 
    Step 3: Start convert
    Click "Start" button on right bottom of the main interface, you are allowed to start conversion. 
    Step 4: Import converted video to Windows Movie Maker
    Click on "File". Then click on "Import". A window will appear. In the window, navigate to the video clip you converted just now. Then double click on the file. You'll see the icon for the file in your Windows Movie Maker "Collections". 
    Part 2: How to edit the video with Windows Movie Maker
    Step 1: Add transitions and special effects
    In the Movie Tasks pane, under Edit Movie, click View video transitions. 
     Preview transitions by double-clicking them and watching the Preview Monitor. Once you've found a transition you like, drag it from the Video Transitions pane, under Edit Movie pane to the box between two of your clips. This inserts the transition between the two clips. 
    Step 2: Add titles and credits
    If you want to add a title before, after, or on top of a clip, click the clip on the storyboard or timeline.
    In the Movie Tasks pane, under Edit Movie, click Make titles or credits. 
    Step 3: Add Music
    In the Movie Tasks pane in Movie Maker, under Capture Video, click Import audio or music. 
     In the Import File dialog box, click the name of the song you want to use in the background. Then click Import. This adds your song to your collection but does not add it to your video. Drag the song from the collection to the video clip where you want the music to start playing. 
    Step 4: Add narration
    If you have a desktop computer, connect a microphone. Microphones are available from most electronics stores. If you have a portable computer, you can use the built-in microphone. However, you will get a better-quality recording if you connect an external microphone. In Movie Maker, click the Tools menu, and then click Narrate Timeline. On the timeline, click the clip you want to narrate. You can narrate clips one at a time, or you can narrate the entire movie all at once. If you narrate individual clips, you can rearrange them later and keep your narration synchronized. If the narration is too loud or too soft in comparison to the movie, right-click the narration on your timeline, and then click Volume. 
    Step 5: To save your movie to your computer
    In the Movie Tasks pane, under Finish Movie, click Save to my computer. 
     The Save Movie Wizard appears. On the Save Movie File page, type a name for your movie. You can also choose a folder to save it in by clicking the Browse button, but My Videos (the default) is usually the best place to save your movie. Then click Next. On the Movie Setting page, click Next to accept the default setting of Best quality for playback on my computer.
    Movie Maker saves your movie, which might take several minutes. On the Completing the Save Movie Wizard page, click Finish. If Play movie when I click Finish was selected (it is selected by default), the movie will automatically play in Windows Media Player. Now you can watch your videos anytime by opening your My Videos folder and double-clicking your movie. 
    Part 3: How to upload my video to YouTube
    A video file should meet the following requirements so that it can be uploaded to YouTube site.
    1. In an acceptable format: WMV, MPEG4, MOV, AVI and MPEG.
    2. Video length is shorter 10 minutes.
    3. File size is smaller than 1GB. 
    Step 1: Sign up a YouTube account or Gmail account, then click the Upload button on any YouTube web page. See the figure below: 
    Step 2: Type in the information of your video file, including Title, Description, Category and tags. To increase the chances that your video can be easily found, you should put as much information as possible. 
    Step 3: Set this video to be public or private. 
    Step 4: Click the "Upload a video" button. When you see the next window, click the "Browse" button to select the video file you want to upload. Then click the "Upload Video" button to upload it. After the upload is finished, you will see the completion page. See the figure below: 
    Step 5: Click "My Videos" and you will see the video. 
    Know More:
    1. Which Camcorders record video in .MOD type?
    MOD is the video file type used on many digital camcorders, such as the JVC Everio, the Canon FS100 and the Panasonic D-Snap SD-card camcorders. Accompanying the MOD video file, there exists MOI file that stands for the index file for MOD. 
    2. What file types are supported by Windows Movie Maker?
    You can import files with the following file name extensions into Windows Movie Maker to use in your project:
    Video files: .avi, .wmv, .mpeg, .mpg., .asf, m1v, .mp2, .mp2v, .mpe, , .mpv2, and .wm.
    Audio files: .mp3, .wav, wma, .mp2, .aiff, .aif, .aifc,.asf, .au,.mpa, and .snd.
    Picture files:.jpeg, .jpg, .jpe, .png, .bmp, .dib, .emf, .gif, .jfif,.tif, .tiff, and .wmf 
    3. What file types are supported by YouTube?
    YouTube accepts a wide range of video file formats.The video files below are all accepted by YouTube. Some video formats work best and are most compatible with certain computers, software or devices. Windows Media Video (.WMV)
    .3GP (cell phones)
    .AVI (windows)
    .MOV (mac)
    .MP4 (ipod/psp)
    .MPEG
    .FLV (adobe flash)
    .SWF (shockwave flash)v
    .MKV (h.264) If you do not think your current video file format is recognized by YouTube, you may get the best uploading results from converting your file to MPEG4 video with MP3 audio.

    I prefer this
    iPad Manager software, with the assistance of iPad Manager, you can make iPhone ringtone, connect your PC to iPad to backup iPad files to Computer directly, import computer file or folder to iPad. 
    Furthermore, it's easy to convert DVD/video to iPad. 
    This versatile iPad Manager can help you transfer videos, songs, photos from computer to iPad and from iPad to PC in fastest speed. Have a try with this tool and manage your iPad, iPod, iPhone in a much easier way. 
    * Convert DVD/video to iPad
    * Backup iPad files to PC
    * Import computer file or folder to iPad 
    iPod Manager
    iPod Video Converter
    DVD to iPhone Converter
    iPod Mate

  • My kid just got an iPod 5th gen (today from Santa) and it won't power up or charge. The only response is when I connect the USB and press the power button or front button the Battery appears with red line and lightning symbol. No other response at all.

    Sorry about the long title.....its my first post.
    My kid just got a brand new iPod 5th generation (today from Santa) and it won't power up or charge. The only response is when I connect the USB and press the power button or front button the Battery appears with red line on left and lightning symbol below. There is no other response at all no matter what I do, including holding both buttons down for extended period.  My other kid got one and it works perfectly.....I have interchanged usb cables ports etc. but still no response....I would really appreciate any help.  

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    -  Make an appointment at the Genius Bar of an Apple store since you have a hardware problem with the iPod. This is because as you said the same cable works with another iPod.
    Apple Retail Store - Genius Bar

  • In 4.0.1, is it possible to move the Bookmarks Button on the Bookmarks Toolbar to a different position on the Bookmarks Toolbar from it default position on the far right?

    The default Bookmarks Button is on the far, upper right side of the browser window on the Bookmarks Toolbar. It's distracting there, on the edge, in Siberia. I use it a thousand times per day. It's unnatural and distracting to always be turning to the edge, away from "the action". Is there any way to slide its location on the toolbar? Or at least put it on the far left where there's more "action"? I doubt I'm the only one with this instinct, otherwise the Firefox button and items on the usual menu bar (like File, Edit) would not always be placed on the upper left, not upper right. I'm not asking about the other, optional Bookmarks Button that can be put on the Navigation Toolbar which functions differently and more cumbersomely.

    To move the bookmarks button on the Bookmarks Toolbar, you have to go into Customize first. Just drag the button palette to one side so you have full access to the bar. The only things on it should be "Bookmarks Toolbar Items" and the icon for the bookmarks drop-down list. Hopefully then you can swap their positions.
    (And it is weird that the buttons look the same when one shows a menu and other opens the Bookmarks Sidebar.)

  • I rented a movie on my iPad. It downloaded fine but would only play 36 minutes, 5 seconds worth of the movie; although the time kept running for the length of the movie. Can this be fixed or do I need to get a refund?

    I rented a movie on my iPad. It downloaded fine but would only play 36 minutes, 5 seconds worth of the movie; although the time kept running for the length of the movie. Can this be fixed or do I need to get a refund?

    You can try a rest:
    Reset iPad:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - If that does work, contact iTunes and request a redownload.  You can ask for a refund though.

  • How do I move the Home button between Back Forward and address bar?

    The way I have my firefox set up for years is to put the buttons like this:
    [Back][Forward][Stop/Reload][Home][Progress Animation][Address Bar]
    Now in FF29 I'm trying to move the Home button between the BackForward buttons and the address bar and it won't let me.
    I thought FF29 was supposed to be the most customizable Firefox yet? *confused*
    Is there a way to do this, am I missing something? Thanks

    ''' "I thought FF29 was supposed to be the most customizable Firefox yet?" ''' <br />
    Whoever told you that was incorrect, as far as I am concerned. Firefox still is more customizable that the "competition", but not as much as previous versions were.
    The Home button can be moved, but the Back / Forward combo button is attached to the Address Bar - they can't be separated.
    The combo Stop / Reload button is locked in the Address Bar.<br />
    The old "Activity Indicator" is gone. Deemed unnecessary with the loading animation on the left corner of each tab, where the Favicon appears once the page is fully loaded.
    https://support.mozilla.org/en-US/kb/how-to-make-new-firefox-look-like-old-firefox
    Many users are installing the Classic Theme Restorer extension. <br />
    https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/ <br />But I don't think that is going to turn out to be along term solution. As users start installing other extensions I think they are going to run into compatibility issues where the new extension "expects" the user to be using what Firefox came with - not the "retro" features.

  • Movie clips as buttons

    Hi all having a bit of difficulty with a project,
    Iam using movie clips as buttons, the only function they
    perform is loading in external swf files into a blank movie clip.
    The script I have used for this is as follows:
    on (release) {
    loadMovie("folio.swf", "_level0.holder");

    Hi joakimpilo, im not to sure im following your question
    correctly but here goes...
    I am assuming b1, b2, b3 and b4 are your MC buttons and you
    want these to load in information.
    This is what I do for similar situations,
    on your main timeline have an MC named holder that you will
    load external swf files into when you click a certain button. It is
    important that you take a note of the size so you can create the
    external swf at the same size, so when they load in they fit
    correctly.
    then in the buttonMC have a top layer that contains a simple
    box that covers the entire area of the MC. this kind of acts as a
    hit area so if you have animated the MC for a roll over effect make
    sure the button covers the area you need. I then apply the script
    to this button as follows (still in the buttonMC, not on main
    timeline)
    on (release) {
    loadMovie("yourexternalmovie.swf", "_level0.holder");
    "yourexternalmovie.swf" is the name of the external movie
    holding the informatiion you want loaded in to the "holder" MC.
    This is created in an entirely different flash document. Make sure
    and remember the name of these external files and just apply to
    each button.
    It is also very important to keep all the swf files in the
    same folder as the main flash file so it can see them to import.
    Hope that makes some sort of sense, and is actually what your
    looking for.

  • Can i recieve service in Guatemala? Have problem home button and front camera

    Hi guys
    I'm user of ipod touch 4th generation i bought this in may 2011
    And i paid apple care in applestore Glendale L. A CA.
    Now i live in Guatemala and my ipod have problem of home button
    And front camera(camera problem started when i bought)
    What is best solution for my ipod? And can i recieve service?
    And where can i meet service center in This country?

    Contact an Apple Authorized Service Provider. See:
    http://www.apple.com/lae/support/service/options/

  • Move next/previous buttons in a region with over 100 items

    Hi,
    Is there a way to show items in a region in chunks and then have a move next/previous buttons. I have a region on a page that has over 100 items how can I show 10 items a time and then have move next/previous buttons. I am using 10.1.2.0.2
    Thanks

    In the "what to search" tab, select the pagegroup where stands your page.
    below teh pagegroup selection you got an option named "Which pages should be searched?"
    Browse to your page.
    Leave the search criterias blank (so taht the portlet won't make any filter)
    In the "results display" tab, select the pagination.
    Now, your portlet will display all items on your page.
    The best way to use it is to put all your items on page1.
    Create a page2 with only this portlet configured to serach for all items on page1.
    In your portal, just make a link to page2.
    hope this will be helpfull.

  • Using a small quicktime movie as a button (a hyperlink)?

    Could anyone tell me if I could use a small quicktime movie as a button? iWeb seems to not let simply select the hyperlink checkbox for a quicktime movie. I would like to be able to allow my site visitor to click on an animating image (I exported from keynote) to take them to a different page.

    Insert a Shape and re-size & position it to cover the movie. In the Inspector > Graphic tab, set the Opacity of the Shape to 0%. Then hyperlink that transparent Shape.

Maybe you are looking for

  • How do i connect my mac book pro to the tv to watch videos?

    How can I connect my mac book pro to the HD TV to watch my videos on the TV?

  • Cannot copy and paste a slideshow- and what is an Album?

    I have created a slideshow in a folder called MISC. I think it is a "slideshow" because the icon looks like a 35mm slide. I want to copy this slide show and move it to a folder called 2007. No matter what I do, I cannot copy and paste it. Once a slid

  • QI stock batch assignment in Process order component

    I have stock of raw material in MMBE against different batch and stock type. Suppose I have 3 batches - B1, B2, B3 for raw material R1. Now in MMBE R1 RM has stock in unrestricted stock batch B1, B2 and QI stock B3. If I am creating a process order f

  • Bring object to front on mouseover

    Hello, Another simple question here.  I have 2 objects next to each other.  On mouseover I have them enlarge.  I would like to make it so that whatever object is being enlarged is brought to the front.  Here is my code. lowgaugefinished.addEventListe

  • PDF documents send blank on my Mac Book

    When I fill in information on a PDF and save it to my desk top. I send it as an attachment but when it arrives at end user the info is blank