ActionScript 2.0 :: Border Around Thumbnail On MouseOver
Apr 7, 2004What would the AS be to put a border around a Thumbnail on Mouse over? The thumbnail will be dynamic as it is being loaded via XML...
View 4 RepliesWhat would the AS be to put a border around a Thumbnail on Mouse over? The thumbnail will be dynamic as it is being loaded via XML...
View 4 RepliesI have a cool xml gallery designed by Scotty. I was wondering what actionscript could I use to add a gray border around each thumbnail and whenever the user rolls over the thumbnail, the border turns to white? Has anyone done this sort of thing before with an XML gallery? [code]...
View 1 RepliesWhat I am trying to do is the old thumbnail scroller that scrolles up and down or side ways using the mouse over. And Unlike AS2 where I used the tween and "gotoNext" to play the animation. Wanted to try full actionscript.
So what I have is a movieclip with all the thumnails loaded and I can animate it using the ENTER_FRAME, but what I wanted to do was run the animation only when you mouse over it.
The ENTER_FRAME method:
addEventListener(Event.ENTER_FRAME, loop);
function loop(e:Event):void
{
[Code]....
But this will only move the thumbnails and once doesn't loop.
I have a rectangle and I want to change its border colour on mouse over, I have found a way to make it work but that redraws the whole rectangle, i am wandering is it possible to only manipulate border colour without redrawing rectangle?
PHP Code:
import flash.display.Sprite;var rect:Shape = new Shape();rect.graphics.lineStyle(3, uint("0x666633"));
rect.graphics.beginFill(uint("231f1c"), 1);
rect.graphics.drawRect(0 , 0 , 60 ,10 );
rect.graphics.endFill();
[Code] .....
I'm trying to make a picture gallery which has over 100 images, I want to be able to scroll through the thumbnails left and right on mouse over, but I can't figure out what code to use. I tried following this tutorial on youtube, but the person working on it is using AS 2.0. I'm working with AS 3.0
View 3 RepliesI try to create a function to change border property of border container.To do that I create a function for each border container on my MXML.But I'd to code better and to do a generic function.Today my function is:
protected function bcContact_mouseOverHandler(event:MouseEvent):void
{
// TODO Auto-generated method stub
bcContact.setStyle("borderVisible",true);
[code]....
bcContact is one border container Id.I try to replace bcContact by this but it doesn't work.
I have a basic mouseover in my flex application which changes an image onmouseover and changes it back onmouseout using the code mouse Over "functionToChangeImageSource()" and another one to mouseout.It works fine when you slowly mouse over and out, however if I quickly move the mouse over it, it occasionally stays on the mouseover image and the mouseout function doesnt appear to kick in. Is there anything I can do to fix this, or does anyone have any ideas why its happening?Also, I've tried the rollOver and rollOut instead but it has the same problem.[code]I'd imagine you're correct about the mouseover event not completing before mouseout is but how to I fix this?
View 3 RepliesI have a simple movie clip for which i bind two events 1-MouseOver and MouseOut
in these events i am just tracing simple text
But the Problem is when i take my mouse over the movie clip both events called tracing the string in the output panel
Infact, things should be done like that on mouse over, its text is printed and when i take my mouse away[out] from the movieClip MouseOut event should be called.
ActionScript Code:
import fl.motion.Color;
import flash.display.MovieClip;
[Code]....
I have made a image-viewer. I've this AS for the viewer:
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
function loadXML(loaded) {[code].....
Now i would like to make a loop for the thumbnails so they don't have a beginning or end(Now when i scroll to the right the thumbnails stop at the last thumbnail, i want it to begin at the first thumb again).I'm also trying to make that the middle thumbnail represents the photo in target_mc.
I am making a gallery, which you can view here:[URL]ok, firstly, when you click a thumbnail, you cannot scroll them until you roll off the click thumbnail, and I'm not sure why. is it just a movieclip thing? or can I put some code in to re-get focus of something? ok, now for the two general questions:
1. When you roll over the thumbs, they go up, sometimes they flick back down though, even though you are rolled over them still. is this just because they are moving?
2. Does anyone know why when I add this:
[Code]...
Im trying to create via xml and a for() loop a thumbnails wiewer and each thumbnail have a simple onrelease function.....but my probleme is that my 'container' movieClip and 'BT' movieClip dont show when I export the movie...also when i trace()them the output is empty. maybe is because they are inside x.onLoad(xml){} function ? At the end of the script you can remove // before the trace() function for ckecking in the output panel. here is my code:
xml file: TumbLoader.xml
<?xml version="1.0" encoding="ISO-8859-1"?><slideshow><photos thumbnail="thumbnail/1.jpg" /><photos thumbnail="thumbnail/2.jpg" /><photos thumbnail="thumbnail/3.jpg" /><photos[code]...
Yes, I'm making a photo gallery like everyone else. I'm making it so people can order pics from the site. There are going to be about 500 photos per album in 5 different categories. The photos can be shrunk down to about 60kb a piece. If I use the actual pictures as thumbnails, just scaled down, the total size of all the pics will be about 30mb. I know this is a lot.
Either way, the people looking at the album will most likely look at nearly all the pics so they will be using up bandwidth either way. Plus, if I use the actual pics as thumbs the user will not have to wait to see actual pic when it's clicked on because it's already loaded. A preloader is annoying to me. I do realize a preloader would be wise when loading the thumbs. Just dislike them after you click one for the big picture.
So is using shrunken thumbs a necessity or if the big pic is under a certain size it shouldn't matter if I use it for a thumb also?
i have a bit of an odd problem, when i view my swf clip online there is a large white border accross the top of the screen, i don't really know why as when i made the file there is no border, obviously there is a setting or something that i need to change
View 1 RepliesI have a png file dropping into a flash background and I am getting a black line around the png. Anyone thoughts on how to get rid of it. I also made the png bg to 1111111 the same as the fla file background
View 12 RepliesI've been working on my website - [URL] - and whenever I load the page up in firefox there's this annoying border that goes around the swf when you click on it.
View 17 RepliesNo matter what I do though, when I publish the fla file, a small margin appears around the edges.Now, without adjusting the html, can I get the fla file to publish without a border so that it appears naturally as 'full' within the browser?
View 11 RepliesActionScript for Handle Image BorderLike this???
View 2 Repliesget rid of active border of the default scrollpane component in flash CS5. I am working in Actionscript 2.0.
View 1 RepliesI have a linechart and dots showing the places where a datatip pops up. I can change the line to any color I want and I can set the inside color of the dot. But the border color still stays orange (from the default color). [code]...
View 1 RepliesI am working on an custom container and I need a border for this container. I have a 15x15 image that I am creating a 9-slice border skin with. The issue that I am having is that the border skin does not appear the way that I had hoped it would.
Here is a ss of the skin in place.
Ideally I should have a transparent box with a 5 pixel border around it.
Here is my current testing code:
CSS Code:
Box
{
borderSkin: Embed(source="15x15.png",
scaleGridLeft="5",
[Code]....
I know how to draw a rectangle and add it to a DisplayObjectContainer,but do you see a simpler method to directly add a border to a DisplayObject? DisplayObject don't seem to have addChild(), so I would have to add it on the parent, which is not perfect in my opinion...
View 3 RepliesIn Flex 4, I have a canvas that I'd like to set border-width on via css. I can set the border color and border style, but the border width remains 1 pixel wide no matter what.
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
[Code]....
I've been doing some simple text fades by keyframing the alpha values. Everything is fine on the stage, but when I publish it I can see a slightly translucent bounding box around the text. It's even visible on text I haven't animated. I've done fades before, but never ran into this problem. [URL]
View 14 RepliesI load my images using XML and tween them + putting a border with this script (not including the xml loading code, dont know if I need to change this?) Everything works fine with doing the same thing with all images. What I want to try to accomplish is putting no border on the first image?
Code:
MovieClip.prototype.loadPic = function(pic) {
this.loadMovie(pArray[pic]);
this._parent.onEnterFrame = function() {
[Code]....
I have a template which loads thums form XML file, i want to modify the thumbs to have a border around each one and alfa rollover effect.
Code:
function createThubmnail(thumbURL) {
thumbsHolder.attachMovie("itemPhoto", "itemPhoto"+photoN, photoN);
eval("thumbsHolder.itemPhoto"+photoN).picture.picture.loadMovie(thumbURL);
eval("thumbsHolder.itemPhoto"+photoN).d_w = widthThumb;
[code]....
How to do the movement like at the following site [URL]
View 7 RepliesHow did they make that border to wrap around any resolution? make my images from my XML gallery to not become pixelated when it loads in full-screen.
View 3 RepliesI would like to create a html that would embed my swf without any borders in the browser.
I've tested embedding my swf but the excess graphics in the swf were shown at the side. Is there anyway i can solve it?
How do you put a neat little border around the stage so you can see precisely where the stage is at when working with a large graphic?
View 2 RepliesI have a very simple player which connects to a shoutcast stream. All it has is a play/stop button, and a volume control, which control a mp3 Playback Component.However, everytime I click anything within the flash movie, a little focus border appears around my flash movie. You know how when you press tab on the keyboard to switch between different elements in a program, such as different buttons, and that little dotted border appears on the button you are on? Well, that happens to me, and I am not sure why or how to get rid of it.
View 3 Replies