ActionScript 2.0 :: Adding Fancy Border To Scotty's Image Gallery?
Feb 16, 2007
I'm encountering a weird glitch when I try to use a more complex image border: the image container and the text caption both jump into place at the last moment. A bad effect. All I've done is add two more variables, "w2" and "w3" to the code:
Code:
var w = container._width+spacing, h = container._height+spacing;
var w2 = container._width+space2, h2 = container._height+space2;
var w3 = container._width+space3, h3 = container._height+space3;
border.resizeMe(w, h, id);
border2.resizeMe(w2, h2, id);
border3.resizeMe(w3, h3, id);
The only way I can find to keep the border shapes in correct proportion is to create 3 different border clips and apply the "resizeMe" easing function to each of them.
View 3 Replies
Similar Posts:
Oct 16, 2006
I found this great thread Scotty's Image Resize Gallery and have been playing around with some of the files. The one things no-one has mentioned in all of the posts, is how you might be able to customise the border.I see where it is written in the code, but what I really need to do is create a scribbly line rather than a straight one. It seems best to create mc and then have this re-size and stretch as the images re-size.
View 1 Replies
Jan 23, 2007
Before I go and spend a number of hours trying to figure it out - has anyone made the following improvements to Scotty's "V3_with_thumbs" gallery?[url]...
1) Gallery menu is fed by the XML doc and not hardcoded in Flash.
2) Next and Previous buttons (in addition to the thumbnail buttons)
3) Icing on the cake: "Slideshow" button that loops through the chosen gallery thumbnails. Probably needs to be a toggle button to stop the loop too.
View 6 Replies
Sep 22, 2009
I followed a youtube tutorial on how to create a fancy Image Gallery but when I got to run it I keep getting the following error : interface 'flash.events.MouseEvent' could not be loaded.
Code:
stop()
btn1.addEventListener(MouseEvent.CLICK,play1);
function play1(event:MouseEvent):void{
gotoAndStop("img1");
}btn2.addEventListener(MouseEvent.CLICK,play2);
[Code] .....
View 4 Replies
Jan 26, 2010
What I want to do is add a border on the image that I load into my scroll bar via XML on the rollover. So when I rollover the image a border appears around it. I created a movie clip of the just the border and I am having trouble getting it to appear on all my images when I rollover them. I am not sure how to fix this. How can I do this?
Code:
scrollBar_mc.visible = false;
var space:int = 10;//space between cells
var w:int = 47;//width of cell
[Code].....
View 7 Replies
Jan 27, 2007
way to build a preloader for Scotty's XML multi gallery?[URL]
View 8 Replies
Jan 20, 2007
I downloaded the source file for Scotty's V3_with_thumbs and would like to know how to add another dynamic text box to it. I've tried and copied the arrangement and placement of iArray (calling it dArray), added dArray.push(gallery.childNodes[i].attributes.descrip); (with descrip being my new entry in the XML file). Given an instance name etc... but if I call descripTxt.text = id; (descripText being the instance name of the text box) I get the same Text given by the existing info/title text. dArray traces with the correct content (but all of it).adding in another dynamic text box?
View 13 Replies
Nov 13, 2009
I've found this tutorial that I've played around with and it works out fine [URL], but I would like to add some descriptive text for the big image. How would I go about loading such a text from the xml file?
ActionScript Code:
import fl.containers.UILoader;
import caurina.transitions.*;
//---------loading the external xml file-------
var urlRequest:URLRequest = new URLRequest("pics.xml");
var urlLoader:URLLoader = new URLLoader();
var myXML:XML = new XML();
[Code] .....
View 3 Replies
Aug 2, 2008
I was reading your tutorial on adding a thumbnail to an image gallery. Im trying to use your thumbnail_final.fla inside another movie and is not working for me. I made a movie, in Scene 1 of this movie i have an empty movie clip(DisplayArea) and a menu button(Gallery) so that when i hit the Gallery button it load the thumbnail)final movie into the empty movie clip DisplayArea. Everything work except for the thumbNailScroller function. It load all the thumbnails and you can click them and they load the matching big picture and all but the scrolling function is not working.
[Code]...
View 3 Replies
Dec 22, 2003
I was trying to use the photo gallery tutorial from this site the code was done by sbeener I wanted to use the same concept for adding external text for each image. So far I have only been able to figure out how to load the text but I have not figured out how to be able to change the text to correspond to the image.
[Code]....
View 6 Replies
Dec 8, 2009
I've completed my XML-driven image gallery, however upon live testing I'd realized I made a rookie mistake and not put some kind of placeholder "loading" movie clip loop while the thumbnails and subsequent full-size images are being loaded. The images will randomly appear when loaded and I would like to be able to insert a placeholder movie clip while they load, and swap them up with the thumbnails/images after it has been loaded. The placeholder movie clip is in my library (loadingLoop), but I'm having problems getting it to work correctly.
Below is the original function that processes the XML and adds the thumbnail images; this is where I'm trying to insert the placeholder movie clip per XML child node (every attempt I've made just keeps throwing more errors, so I've omitted my attempts to avoid confusion), and I've attached the XML file for testing.
[Code]...
View 19 Replies
Jun 27, 2005
Just thought I'd see if this is possible with the XML Photo Gallery.1. Is it possible to create a dynamic border for the loaded image depending on the size of the image being loaded? 2. Is it possible to move the Y position of the caption text box depending on the height of the loaded image? ie if the image is 200 pixels high, then the text box should be positioned at 220 pixels.The current code I have which loads the images then automatically scrolls through them is:
Code:
delay = 6000;
// -----------------------
[code].....
View 1 Replies
Jul 31, 2005
I 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 Replies
Feb 11, 2010
I want to add a border around my mask. I don't know if I can add the border directly to the mask or if I need to create something new and position it. I imagine if the border was part of the mask it wouldnt show up? Anyway I added lineStyle to my roomMask and I get this error that doesn't make any sense to me:1061: Call to a possibly undefined method lineStyle through a reference with static type flash.display:Sprite.
ActionScript Code:
//create a mask to cover the room container
//to hide the floor outside edges
[code]......
View 1 Replies
Oct 23, 2009
I have added 3 staggered backgrounds behind each picture that act as a tri-color border around the image, named borderOuter, borderMiddle, borderInner. When i click on the thumbnail, i would like the border to disappear. [code]...
View 2 Replies
Dec 15, 2005
Currently I am using the gallery that has been posted on a link on Kirupa.com where it uses XML and loads in my case .swfs into a border that resizes according to the size of what is loaded. The reason I am using .swfs is because I plan to somehow make it so that the artwork being loaded can be zoomed in on once they are loaded, how I am not sure quite yet. Anyway, I was wondering if anyone could please tell me why that sometimes the .swfs load once or twice and then when clicking on other artwork thumbnails they do not load at all. THis just happens for the swfs and not when I would use the jpegs instead of swfs. The swfs just do not seem to be loading as planned, sometimes one or two load sometimes none. Was wondering if someone knew why this is happening and could please give me some help if possible, maybe pertaining to actionscript?[code]
View 1 Replies
Jul 20, 2007
get a border onRollOver in my thumbnails gallery. I've tried the photo and thumbnails gallery and played with stringy's files to accomplish this but still haven't been able to get it to work.
View 14 Replies
Feb 3, 2009
I'm have set up a photo gallery using the 'Kirupa Xml and flash gallery tutorial' and I wanted to use this but implement the border resizing function featured in the galleries on in the 'Howd he do this? Resizing slideshow' thread.
Here is the code for my gallery:
Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
[Code].....
View 4 Replies
Jul 29, 2011
I've just started playing about with skinning and am finding it harder than anything else I've come across in Flex 4 Mobile. It needs to be done in actionscript as I am trying to skin a flex mobile button. Here is what I have so far: (It does very little, only changes the background color)
package skins {
import flash.display.GradientType;
import flash.geom.Matrix;
import mx.utils.ColorUtil;
import spark.components.supportClasses.StyleableTextField;
import spark.skins.mobile.ButtonSkin;
[Code] .....
There doesn't seem to be much in the way of documentation for skinning Flex mobile components purely in actionscript. How do we add a border for example?
View 1 Replies
Jan 14, 2009
I have a very simple scrolling image strip where the images are loaded via xml. I was wondering if there is a way to add a white border around the pics by way of actionscript. Here is the code that I have to load the images and make them scroll.
[Code]....
View 0 Replies
Jan 15, 2009
I have a scrolling image strip that loads images from xml. I was wondering how I could attach a border to the movie clips that the images are loaded into. I know how to use the drawing API, but I can't seem to attach a border to each movie clip. I'm posting the code below.
Code:
cliparray = [];
function loadXML(loaded) {
if (loaded) {
[Code]....
View 1 Replies
Mar 22, 2011
I'm developing an ActionScript 3 app for Blackberry PlayBook.
I'm loading an image with flash.display.Loader.
I want to show that image with a 5px black border.
How can I do that?
View 2 Replies
Mar 25, 2011
I'd like to add some functionalities to the right border of my ADG component tothe user resize and potentially do more stuff. Is there a skin for that border? For instance, how would you make it wider, or add a handle that perhaps animates when you hover over it?
View 1 Replies
Apr 7, 2007
This question has probably been asked a number of times in this forum. I searched and searched, read every reply, but there is nothing satisfactory posted till now. I tried out all solutions posted, but almost every implementation was incomplete. So, here is my question: In the xml photogallery tutorial, if I want to have a border around a thumbnail (which is dynamically loaded), how do I do that?
[Code]....
View 6 Replies
Jan 12, 2010
I am using this following code to display images using xml.Everything is working fine for me but i have to add background image or border to the displayed image using function BitmapFileMaterial.
using BitmapData or Bitmap Class but same functionality.
[Code]....
View 0 Replies
Mar 19, 2010
i am building an editor which allows you to resize images and to do this (once an image is selected) I add a visible border to the image that allows you to resize the image. so i want to have a function something like,
[Code]....
and i have to call this redrawborder function inside the MOUSE_MOVE listener that controls the resizing (so that i am constantly removing and redrawing the border). constantly removing and redrawing the frame seems very inefficient. is there some property or better why to do this? i want to have, displayobj.scaleChildren = false or something like that
View 1 Replies
Nov 6, 2006
I have been using the tutorial on the Photo Slideshow Using XML and Flash, and think it is fantastic. It is really clear and easy to follow. However I have encoutered three things with it. Firstly I would love to be able to add a border around each thumbnail accross the bottom, that would change color when the user rolls over the thumbnail.I would also like to be able to highlight which thumbnail is currently being shown as the top image.The third issue I have had is when a user moves the mouse to the right of the first image, it scrolls about 5 pixels to the right even though there is no other image before it.
View 1 Replies
Dec 31, 2009
ActionScript for Handle Image BorderLike this???
View 2 Replies
May 13, 2010
I 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]....
View 1 Replies
Oct 25, 2006
I 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]....
View 1 Replies