Image preview on mouse over

I have found a nice free flash template to use for a portfolio site but I want to add something small to it but could not figure it out myself. I hope that somehow could help me out. The free templates creates a thumbnail preview of the image and I want to be able to create a full size preview off in another area. I will post the AC3.0 and an image to help explain.
import caurina.transitions.Tweener;
slider_info.text = "loading data...";
link_title.text = "";
link_description.text = "";
var folder:String = "thumbnails/";
var start_from:Number = 0;
var no_of_tn:Number = 5;
var i:Number;
var tn:Number = 0;
var current_no:Number = 0;
var tween_duration:Number = 0.8; // seconds
var total:Number;
var flashmo_xml:XML;
var flashmo_tn_list = new Array();
var thumbnail_group:MovieClip = new MovieClip();
this.addChild(thumbnail_group);
thumbnail_group.mask = slider_mask;
function load_gallery(xml_file:String):void
var xml_loader:URLLoader = new URLLoader();
xml_loader.load( new URLRequest( xml_file ) );
xml_loader.addEventListener(Event.COMPLETE, create_thunbnail_slider);
function create_thunbnail_slider(e:Event):void
flashmo_xml = new XML(e.target.data);
total = flashmo_xml.thumbnail.length();
for( i = 0; i < total; i++ )
flashmo_tn_list.push( {
filename: flashmo_xml.thumbnail[i].filename.toString(),
title: flashmo_xml.thumbnail[i].title.toString(),
description: flashmo_xml.thumbnail[i].description.toString(),
url: flashmo_xml.thumbnail[i].url.toString(),
target: flashmo_xml.thumbnail[i].target.toString()
load_tn();
function load_tn():void
var pic_request:URLRequest = new URLRequest( folder + flashmo_tn_list[tn].filename );
var pic_loader:Loader = new Loader();
pic_loader.load(pic_request);
pic_loader.contentLoaderInfo.addEventListener(Prog ressEvent.PROGRESS, tn_progress);
pic_loader.contentLoaderInfo.addEventListener(Even t.COMPLETE, tn_loaded);
tn++;
function tn_progress(e:ProgressEvent):void
slider_info.text = "loading thumbnail... " + tn + " of " + total;
function tn_loaded(e:Event):void
if( tn < total )
load_tn();
else
slider_info.text = "";
var flashmo_tn_bm:Bitmap = new Bitmap();
var flashmo_tn_mc:MovieClip = new MovieClip();
flashmo_tn_bm = Bitmap(e.target.content);
flashmo_tn_bm.smoothing = true;
flashmo_tn_mc.addChild(flashmo_tn_bm);
flashmo_tn_mc.name = "flashmo_tn_" + thumbnail_group.numChildren;
flashmo_tn_mc.buttonMode = true;
flashmo_tn_mc.addEventListener( MouseEvent.MOUSE_OVER, tn_over );
flashmo_tn_mc.addEventListener( MouseEvent.MOUSE_OUT, tn_out );
flashmo_tn_mc.addEventListener( MouseEvent.CLICK, tn_click );
flashmo_tn_mc.x = thumbnail_group.numChildren * 150;
thumbnail_group.addChild( flashmo_tn_mc );
function previewLoaded(e:Event):void
var previewArea:MovieClip;
while(previewArea.numChildren){ previewArea.removeChildAt(0) };
var flashmo_tn_bm:Bitmap = Bitmap(e.target.content);
flashmo_tn_bm.smoothing = true;
previewArea.addChild(flashmo_tn_bm);
function tn_over(e:MouseEvent):void
var mc:MovieClip = MovieClip(e.target);
current_no = parseInt(mc.name.slice(11,13));
Tweener.addTween( mc, { alpha: 0.5, time: tween_duration, transition: "easeIn" } );
link_title.text = flashmo_tn_list[current_no].title;
link_description.text = flashmo_tn_list[current_no].description;
var pic_request:URLRequest = new URLRequest('fullpreviewimages/' + flashmo_tn_list[current_no].filename );
var pic_loader:Loader = new Loader();
pic_loader.contentLoaderInfo.addEventListener(Even t.COMPLETE, previewLoaded);
pic_loader.load(pic_request);
function tn_out(e:MouseEvent):void
var mc:MovieClip = MovieClip(e.target);
current_no = parseInt(mc.name.slice(11,13));
Tweener.addTween( mc, { alpha: 1, time: tween_duration, transition: "easeOut" } );
link_title.text = "";
link_description.text = "";
function tn_click(e:MouseEvent):void
var mc:MovieClip = MovieClip(e.target);
current_no = parseInt(mc.name.slice(11,13));
navigateToURL( new URLRequest( flashmo_tn_list[current_no].url ),
flashmo_tn_list[current_no].target );
function move_slider():void
if( total - start_from < no_of_tn )
start_from = total - no_of_tn;
if( start_from < 0 )
start_from = 0;
Tweener.addTween( thumbnail_group, { x: - start_from * 150,
time: tween_duration, transition: "easeInOutQuart" } );
flashmo_previous.addEventListener( MouseEvent.CLICK, move_left );
flashmo_next.addEventListener( MouseEvent.CLICK, move_right );
function move_left(e:MouseEvent):void
start_from -= no_of_tn;
move_slider();
function move_right(e:MouseEvent):void
start_from += no_of_tn;
move_slider();
I thank anyone in advance for even the shred of help as I have been struggling with this the last two days.

Is it because previewArea is not being declared as a valid moveclip?

Similar Messages

  • Large image popup on mouse over

    Does any one know of an extension which creates a large image
    popup on mouse over and it works with images from a database too?

    Does any one know of an extension which creates a large image
    popup on mouse over and it works with images from a database too?

  • Image question for mouse over.

    I hope this is a simple question.  Can I place a 150px wide image on my page and when you mouse over have the same photo pop up that is 300 px wide?  I know I can swap the images if they are both 150 px.  But I want to see the larger photo with the mouseover can someone explain or show me where to learn how to do this if I can even do it? Maybe it is not mouseover image swap and it is called something else? Thanks in advance.

    tl1_mc.visible=tl2_mc.visible=tl3_mc.visible=false;
    for(var i:int=1;i<4;i++){
       this["tl"+i+"_mc"].addEventListener(MouseEvent.MOUSE_OVER,overtl);
       this["tl"+i+"_mc"].addEventListener(MouseEvent.MOUSE_OUT,offtl);
    function overtl(e:MouseEvent=null):void{
       var n:int=int(e.currentTarget.name.substr(2,1));
       this["tl"+n+"_mc"].visible=true;
    function offtl(e:MouseEvent=null):void{
       var n:int=int(e.currentTarget.name.substr(2,1));
       this["tl"+n+"_mc"].visible=false;

  • Anyone know how to make an image appear during mouse over of a hyperlink?

    I have a list of hyperlinks here: http://web.mac.com/phelpssculpture/Site/movieroyal_davidphelps.html
    I would like a small image associated with each link to appear close to the link during mouse over.
    These links are the titles of individual artwork, but that isn't as meaningful as it would be if an image could appear upon mouse over. I tried doing an image of text swap with an image of the piece during mouse over, but that took up too much space on the page.
    Thanks, David

    You could use a tooltip. Here's one....
    http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm
    A few more....
    http://www.dynamicdrive.com/dynamicindex5/

  • Mouse over to show a small flv preview clip

    Hi,
    I am hoping you can help.
    I simply would like to be able to roll over an image and on mouse over, a small 10 sec FLV preview clip appears and loops until I mouse out.
    I see it everywhere but I cannot seem to replicate it.
    Regards

    Macnimation wrote:
    Hi,
    I found what I was looking for but cannot seem to replicate it:
    http://www.videocopilot.net
    At the bottom are four images for tutorials that when you roll over them they display a short video clip
    The code:
    <a href="tutorials/blast_wave/index.html"><img border="0" src='../img.videocopilot.net/assets/public/images/vc_cool/tutorialpic s/popular/111.jpg' onmouseover="showtrail('assets/public/flash/tutorialvids/111.flv', 'video','Blast Wave',266,150,0,'hqmedia','&bull; Build a realistic explosion using&#8230;<br />&bull; Create a powerful shockwave and&#8230;<br />');" onmouseout="hidetrail();"  /></a>
    But I cannot replicate it when replacing with my own images and footage.
    Regards
    showtrail and hidetrail are javascript functions that you did not insert into your replicated page.

  • I had an add on for years but how to get my pc worked on and now its gone..it was a mouse over link to preview that page in a new tab .it had a little blue mark

    it was like a preview any page in new tab when you mouse over the link it would open that page and i cant remember what it was called

    '''[https://addons.mozilla.org/en-US/firefox/addon/coolpreviews/ CoolPreviews]''' {web link}
    Browse faster—Preview links and images without leaving your current page or tab.
    Just mouse over any link and a preview window appears to display the content.

  • Why does moving the mouse over an IMAQ image display slow the GUI down so much?

    I have a large application with several vi's running simultaneously under labview 8.6.1.  When I mouse over an image display control in one of the vi's, everything slows down a shocking amount in all the other vi's.  The windows task manager does not show a large increase in CPU use.  My pc is has a quad cpu with 4GB of RAM, and the CPU and memory loads do not appear to be terribly taxing to the system.  However, many of my vi's apparently come almost to a standstill if I just move the mouse in a circle around my image control.
    This looks like it is largely a GUI display issue.  If I make a new vi and put a while loop in it that only displays the iteration loop number to an indicator, I can see the iterating occurring, then stopping totally when I mouse inside the image display control.  When I stop moving the mouse inside the control, or when I move it outside the control, the interation loop number jumps up, as if it had been incrementing behind the scenes the whole time.  So only display of the interating was halted.
    This problem occurs even if the vi with the image control is not executing.  If the vi with the image control is open but not running, and I mouse over the image on it, the other guis all come to a screeching halt.
    Does mousing in the image display control really utterly crush all other guis in all other labview windows?  Is this an issue inherent to the image display control?  If so, is there anything I can do about this? 
    Also, this issue is not entirely limited to display.  I started looking at it in greater detail because this issue also exposed what I think is a race condition in my code.  I have a vi that acquires an image from a ccd and puts it into an IMAQ image.ctl.  This image then gets passed up to a vi up the call chain, and is put on a queue and sent over to be de-queued by a vi that has the image display control.  Here's the kicker:  when I mouse over the image display control, the image successfully gets acquired inside the subvi, and if I probe the wire leading to the output IMAQ image display.ctl, I see the image.  If I simultaneously probe the wire coming out of the subvi one level up the call chain, the image gets lost about half the time.  This only happens if I am mousing in the image display control IN A TOTALLY DIFFERENT AND SEPARATE VI.  If I bump up the priority of the ccd image acquisition vi to 'highest priority', the problem only happens about 1% of the time, and I really have to mouse around to make it happen.  Still, it's disturbing that mousing in the GUI in one window results in a failure of a separate subvi to simply pass an image up the call chain.  I understand that IMAQ images are referenced rather than passed by value, but I don't see why there should be a failure to pass the image up the call chain.  I've looked for a race condition, but can't find one.
    Eric

    I have finally been able to replicate the behavior that you are seeing on another computer once the image was large enough.  Here are a few notes about this behavior:
    First. The UI only slows down when the images are large, 16 bit images.  The reason why this is unique to 16 bit images is that they can only be displayed on the front panel as 8 bit images.  The workaround that Weiyuan suggested to change the 16 bit display mapping hints towards the root of the problem...that any time a mouse runs over the indicator, Windows asks the entire image to re-draw (having a separate indicator overlapping the image will create the same behavior).  With a 16 bit image, not only does the image have to re-draw on the screen but the 16 bit pixels need to be mapped to 8 bits.  When setting the 16 bit display mapping to Full Dynamic, this requires mor computation/pixel than 90% dynamic or one of the other mapping schemes.
    This is expected behavior if your program is running and you're trying to display a large 16 bit image.  To fix this behavior there are a couple options:
    Change the 16 bit display mapping to something other than full dynamic.  You can choose which 8 bits to display or if you want to map the bits. 
    Resize the image just for viewing purposes on your front panel (since you aren't going to view every single pixel of you image on the screen). You can use the IMAQ Resample.vi to do this.  This will allow you to take your 1500x1500 pixel image and only display a 500x500 pixel version.
    If you are interested in viewing small details of the large image, consider just displaying a smaller region of interest at a time.
    Let me know if any of these solutions work for you.  Good luck on your application.
    Zach C.
    Field Engineer
    Greater Los Angeles

  • Mouse-over image resizing in CS4

    on my website (www.kogamusic.us) i have an image that changes to another image when mousing over it. the two images are different sizes, so as it is now the second image distorts because it is constrained to the aspect ratio of the first image. My question is, how do i make it so that both images auto-resize depending on the size of the window while keeping the second image constrained and distorting to the size of the first image. I am able to auto resize the first image with with=#% and hight=#%, but i can't figure out where to put html in the correct place to auto-resize (while constrained and distorted) the second image.
    this is the code i am looking at:
      <a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','DSC03696.jpg',1)"> <br />
    <img src="fish pencil.jpeg" name="Image2" width="538" height="830" border="0" id="Image2" /></a><a href="mailto:[email protected]">[email protected]</a></p>
    <p> </p>
    THANKS!

    Hard to say. Just maybe a hickup in the system. The popping up is slightly delayed on about every system but I have never had them not pop up at all.
    Anyways, here is a link that pretty much fixes weird stuff happening in Photoshop that is called resetting the Prefs.
    http://forums.adobe.com/thread/375776?tstart=0

  • How to get text when mousing over image?

    Hey there, I am extremely new to Flash, but know other Adobe programs so tend to learn quickly.
    I desperately need to find out how to get text to pop up when i mouse over PART of the image and i havent been able to find any help online in the last two days (pulling my hair out in stress).
    Now i uploaded a rough mock up i did on Photoshop, so you can see when i mouseover the top layer of the cake i need a line to stretch out and the text to pop up at the end of it. Similarly if i moused over the cherry another piece of text needs to come up in the same manor.
    Also since i need it to be a website link so what format do i open it with when i go to FILE- NEW?
    Honestly thank you so much in advance to anyone that helps

    First you have to choose if you want to handle devices. If not and you want to stay in Flash I'll stick on topic.
    In the HTML version you could either use a good old fashioned image map (they're still fine in the HTML5 era) or you could use a layering technique (here's a random layering example).
    In Flash you can do it a few different ways. If you intend on keeping the image intact as a single object then you'll be essentially doing the same as an image map. You can draw invisible hitareas on the various parts of the object and have those areas trigger a specific function that will display your text. If you break up the image into the separate parts then you can directly assign those parts to fire off a function themselves.
    First I'd like to know your desired direction.

  • Images in Table move on Mouse Over

    I made a simple table-based photo gallery.  
    On mouse-over, a coloured bar appears at the bottom of the selected image.  At the same time the image moves upwards slightly, presumably the same distance as the width of the coloured bar.  
    Depending on the position of the image within the table, either one or more rows within the table move at the same time.
    I received some feedback from a viewer that they do not like this movement of the table
    Can you suggest any way to make the table more stable, i.e. remain still during mouse-over.
    See: http://www.eyta.org.uk/photos.html

    First, I don't like table-layouts.  They're last century's layout approach.  Nobody uses table-layouts anymore.  We use CSS floats now.
    Photo Layout example:
    Alt-Web Templates :: CSS Semi-Liquid, Photo Proof Sheet
    Secondly, if you're adding a border on hover, you need to add similar same sized border for the non-hover state.  Otherwise the jumping is inevitable owing to how the CSS box-model works.
    Example CSS:
    a {text-decoration:none; border-bottom: 1px solid #FFF}
    a:hover {border-bottom: 1px solid #000}
    Nancy O.

  • Hover mouse over a group photo & individual image pops up?

    My project is to do a mouse hover over individual faces on a group photo and display an image of what that person looked like back in high school.
    So far I am able to display the persons name as I hover over their face but don't know how to also display their individual image.
    I set up an image map with circular hotspots for each face.
    Please visit www.phsclassof1956.com/50th_group.html
    Any help would be appreciated.

    You could do this very easily with Tooltips on an Image Map.  See example below and mouse over Image Map of South America.
    http://alt-web.com/testing.html
    Scripts and documentation here:
    http://www.walterzorn.com/tooltip/tooltip_e.htm
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Mouse over images not resizing correctly in Safari

    I have a series of thumbnail images of different sizes that, by using MouseOver, cause a larger image to appear. Safari only seems to resize "larger" and doesn't resize "smaller" resulting in distorted images. This site works fine in every other browser I can lay my hands on. I have managed to get a similar site to work fine but I don't really see the difference between the two. Any ideas on what I need to do? Site that doesn't work www.IllustriousPlay.com/test/Portfolio.html Site that does work www.IllustriousPlay.com/Page1.html Run your mouse over the various images. (Be warned I'm tinkering with the site, so it may have other things wrong with it.)

    Kowhai,
    Welcome to Apple Discussions.
    I see the distortions.
    I am not involved in Web Site design, but will W3C Markup Validation Service help answer your question?
    I see Failed validation, 16 errors when I enter your URL.
    BTW, I like your colorful illustrations.
    ;~)

  • [SOLVED] Mouse Over File Preview in KDEMOD3

    Hi there.
    Today i have noticed that when i mouse over an icon in KDEMOD3 it does'n show the preview. I have already checked "Show file tips" and "Show Previews in file tips" on Control Center (KDE Components->File Manager->Behavior) but it doesn't work. It's not from the kde style since i have change it and the issue persists.
    Is someone having this issue to? If yes, how to fix it?
    Thanks in advance.
    Last edited by eldarion (2008-12-31 16:38:47)

    ok, i have fixed it. Edit the ~/.kde/share/config/kdeglobals and remove the section [KDE].

  • Mouse-Over/Click to change content of Text/Images

    Hey,
    In the past i have seen website which have the ability for the user to select from images of news stories which would then change the content of the main frame depending on which one was moused over/clicked. I've checked for any way to do this outside of doing it with flash and embedding it and come up with nothing.
    Any suggestions or methods for doing this?
    Thanks.

    You could use the behavior "set text of layer"

  • Mouse Over Image

    Example Here
    On this website there is a list of different items. Picture
    of it and then the name. When you put your mouse over it, an image
    shows up where the mouse is, that follows the mouse. Is this
    possible to do in Dreamweaver?

    Ok, the code attached is the entire source on a page I found.
    It was the perfect page for showing me what I want.
    Here is a link to
    the page.
    I copied the entire source and pasted it in a separate .html
    on Dreamweaver to look at and mess around with. When I view it in a
    browser it looks the same (minus the images) but when I mouse over,
    it does show the text it should, but it is surrounded by code, as
    if Dreamweaver is not supporting it or something. I think what it
    is using is DHTML, is that the reason why it is not working
    properly? This was the best I could find on source for what I am
    looking for, but I will continue to search.

Maybe you are looking for

  • Change 220v 110v

    Hi!!! I'm in USA for one year, and i've brought with me my european mac book pro. Is there any problem for using the european adaptator for charge (220v) in the USA (110v) It's going to destroy my battery in te end? Thank you!!!

  • How to Show preview of adobe illustrator file on web browser

    Hi All.... Is there any possibility to showing preview of adobe illustrator file on web browser through Flex or Flash or any other application. If any kindly suggest me.

  • Should I wait to get one?

    I have the opportunity to buy a wi-fi ipad but don't know if I should wait. I keep reading rumors of iphone going to T-mobile or the iPad getting a camera. I'd love for either of those two options to happen. However, since they're just rumors I don't

  • Master Enable User to enable only OIM account and not the resoruce accounts

    Hi Experts - I have a requirement wherein when the user is rehired, only the OIM profile has to be enabled and not the resource accounts on the user profile. How can we acheive this? Thanks Kunal Jain

  • HP3520 will not scan to new computer with windows 8.1

    Downloaded and ran hpp1W.exe but still no connection.   Printer connected just fine.... just can't scan