ActionScript 2.0 :: Scrollbar Gallery - Gaps Are Created Between Photos?
Feb 8, 2009
I have made an XML Gallery in Flash but there is a problem, it works very well however some of the photos are portrait and this causes a problem as gaps are created between photos.Here's the code:
ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;[code]...
View 9 Replies
Similar Posts:
Nov 13, 2010
I'd like to build a gallery of photos which has selected thumbnail on each of them before displaying their photos.
Ex: photo.xml
Code:
<gallery>
<photo id="1">
<thumb>pics/thumbnail/img_001.jpg</thumb>
[code]....
View 9 Replies
Jun 14, 2009
I'm trying to create a simple photos gallery.I load a new picture into the scene using loadMovie function. X and Y coordinates are custom for each photo so it would be centered nicely. The size of the picture is different too. It means, we have 4 variable distances here (question marks in the graph).Now the hard part.I want to divide a loaded picture into two sides and convert them into two different hotspots. I'll be using these hotspots for prev/next buttons.
View 1 Replies
Feb 15, 2010
I have made a photogallery in actionscript 3 which uses an .XML file to import pictures. As the user clicks on the displayed image the code loads the next image in the cycle into the display. Now, I would like to add a preloader which displays the loading progress of each image as the user clicks (otherwise there is just a blank area as the image loads). I have made a pre-loader for the main .SWF but I can't figure out how to make it work for the images or how to make a seperate one for the images. The fact is that I am a bit of a muppet when it comes to AS3, and am finding myself getting lost an confused quite easily.
I have attatched the .FLA if that helps any! If not then...
here is the link to the .HTML page that contains the .swf:
[Code]...
View 2 Replies
Jan 1, 2006
I'm trying to make an image gallery that loads 3 photos at a time (look at .SWF). I have also built a function that resizes the photos to fit into its respective box once they're loaded (a maximum of 120x120 pixels). The images aren't getting resized, and they aren't getting re-loaded after the "forward" button is pressed the second (,third,fourth,etc...) time.
View 13 Replies
Feb 16, 2006
I have decided to build my own XML gallery. The flash loops through, checks how many images there are and duplicates a movie clip to match the amount of photos on that page. The duplicated mc's are given the names "hello"+z, but when trying to load the images they don't want to load (I have taken the code that loads the dynamic images out). When I trace "hello"+z, it gives me an undefined.
Here is the code:
//builds an array for the amount of XML nodes
function loadXML(loaded) {
vararPhoto =[]
if (loaded) {
xmlNode = this.firstChild;
[Code] .....
View 4 Replies
Dec 7, 2010
I'm following a tutorial for a gallery but it's in AS2 and I'm working in AS3. so I've had to use an event listener.As I am in AS3 i still need to add _mc at the end of the each instance name ?
Description : Once the mouse rolls over the thumb, the alpha should increase from .50-1
thumb1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayAtImg1);
function fl_ClickToGoToAndPlayAtImg1(event:MouseEvent):void
{ photos.gotoAndPlay("img1");[code].....
these are the errors
1120: Access of undefined property photos.
1119: Access of possibly undefined property onRollOver through a reference with static type flash.display:SimpleButton.
1119: Access of possibly undefined property onRollout through a reference with static type flash.display:SimpleButton.
Warning: 1090: Migration issue:The onRollOver event handler is not triggered automatically by Flash Player at run time in ActionScript 3.0. You must first register this handler for the event using addEventListener ( 'mouseOver', callback_handler).
View 2 Replies
Apr 17, 2010
it has interactive picture gallery where you roll over with the mouse and click on the desired photo to see it on bigger size. I would like to replace the big photos with videos of my showreel. you can go and check it out: [URL]. Flash only allows me to exchange for the same file this case pictures.
View 6 Replies
Aug 14, 2010
I have a small issue going on. I created a dynamic scrollbar which scrolls dynamically loaded XML text. But it's not scrolling..You can view it here:(Click Start, 2 times the right arrow, then the book, to the righthand side there is a scrollbarI have divided my Scrollbar into 3 classes, the actual scrollbar, the scrollbar custom event and the scrollbar including content and mask.This is the actual scrollbar:
Code: Select allpackage com.own.ui
{
import flash.display.*;
[code]......
View 5 Replies
Jan 23, 2008
[URL]Basically, I would like to have an xml gallery, grid alignment... and to be able to use an actual scrollbar to look through the thumbnails.I tried to do this at home but got weird results, IE when scrolling down the thumbnails would actually scroll up etc.
View 6 Replies
Jun 16, 2005
Now, I've seen Scotty's image resizing gallery thread and love the gallery with scrolling thumbnails. Unfortunately, on my site, I have a lot of wide images that can not be shrunk down without losing valuable details. So my question is, is there ANY way to make an XML image gallery that will apply a scrollbar to an image if it exceeds a certain width?? My images are wider then the website so I will need to apply a scrollbar or scroll pane no matter what but it would be ideal to have it done where I can load the images via XML
View 1 Replies
Nov 18, 2008
Alright, I know how to make a scrollbar but how do I tell "him" to scroll on his own?m using this code:
scrolling = function () {
var scrollHeight:Number = scrollTrack._height;
var contentHeight:Number = contentMain._height;
[code].....
View 1 Replies
Sep 30, 2009
I bet you can't solve this one! I am using AS2 to make a full screen gallery like this: [URL].. and I'm having some problems:
1) MOST IMPORTANT: When the gallery is loaded in a smaller browser window, then the browser window is maximized, the scroll bar doesn't work properly when clicked. The scroller moves, but not to the position at which the user clicks.
2) LESS IMPORTANT: When the user mouses over the scroller and scroll bar, I would like their alpha/colour to change (preferably fade in and fade out).
3) LEAST IMPORTANT: Is it possible to use a graphic for the scroller?
[Code]...
View 1 Replies
Nov 2, 2011
i followed a tutorial on line that showed me how to create a scrollbar gallery with the use of only action script and xml, i also looked at another tutorial that allowed me to be able to use thumb nails to change the images been displayed. now i'm trying to modify the former tutorial gallery i made to include this function by using my already set images as the thumbnail and when this images are clicked i go to the next page or frame and display the corresponding image. i have been able to get the images clickable but i can't seem to get the image to be displayed. here is my code and my xml file here. even if its an idea i wouldn't mind. been at it for 2weeks now and i can't seem to find a solution.
PHP Code:
stop();import mx.transitions.Tween;import mx.transitions.easing.*;//maincodevar myGalleryXML = new XML();myGalleryXML.ignoreWhite true;myGalleryXML.load("test/gallery.xml");m
[code].....
View 1 Replies
Oct 22, 2008
I want to put together a flash gallery of photography for my photography business. I am very good at Photoshop design, html, css, javascript but I am a novice with flash. I can use it and use some actionscripting but my knowledge is limited.
I see galleries like this one: [URL]
The images expand and contract perfectly as the browser is resized. I am used to having to size pics for the lowest res screens (I design for 1024 width resos's usually).
What size should I make pictures to work like this... Does flash scale them down / up / either... are there quality issues with letting flash manage the sizing.
View 0 Replies
Aug 1, 2009
how to make image gallery with thumbs and horizontal scrollbar. if images are more that three scrollbar is shown otherwise it will hide.
View 2 Replies
Dec 9, 2008
I�m trying to get my horizontal scrollbar gallery images to link to different url�s, but having some trouble getting more than one url to open, they all link to the same site.
View 5 Replies
Feb 19, 2009
So i have created an XML Picture gallery in AS3. Everything is made in two files:
1) The main file Gallery.fla that has only one layer and has just a stage color applied to it
2) and Gallery.as taht contains all the code and functions.
And now that it all is created i would like to create a preloader, but i am having problems doing it. Have been solving this issue for a week, reading lots of tutorials etc. no luck so far. I even tried creating a seperate .fla file that contained only a preloader, that simply loads an .swf movie - which was my Gallery.swf but no good - it is not working like that because i am using an XML file in that Gallery.swf .
[Code]...
View 4 Replies
Nov 17, 2009
That said, I would like to alter some of the code to allow the thumbnail scrollbar to begin scrolling once the page has loaded. Here is what the code looks like as it is right now.
[Code]....
View 1 Replies
Sep 30, 2010
I have created an example in wix of the flash file I want to create or, if it is possilbe to get ahold of this file, edit it.[url]...
View 1 Replies
Oct 6, 2010
I have created an image gallery that has company logos loaded into a movieclip at the bottom and scrolls based on the user's mouse location. When the user clicks on one of the logos it should load the corresponding screenshot. The function for loading the screenshot is this:
[Code]...
I get an error: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
View 4 Replies
Apr 19, 2009
I am building an 8 track Flash audio mixer where the sounds for each track are selected by the user from a list component and then loaded into a Sound variable at runtime.This can be done while the mixer is playing or stopped, and of course, it adds a lot of flexibility for making music.All actionscript is in external .as files and sounds are looped using the SOUND_COMPLETE event.So far, all loading/playing functions work perfect, but I`m having problems with gaps at the beginning/end of my mp3 files.I was told this was an inherent problem with mp3 files, so I tried using MPTrim to clean the silence up.I also tried starting the loop a bit late - sound.play (80, 1) - but the results are usually inaccurate and unpredictable.
When I import a wav file into the library and then export it as an mp3 file embedded in the .swf file, it sitll has a short gap.When I built a previous mixer in Flash MX (actionscript 1) there was no gap and all sounds looped perfectly! Of course, in this later case, all sounds were embedded inside movie clips on the stage and scripting was done on the timeline, so maybe that made a difference.I have spent long nights trying to find a solution to this, but to no avail.I read a blog where the writer went through all the steps I have and just gave up, but I know there is a solution.I have seen this sort of thing done on Flash mixer sites before (even sites with full-on audio sequencers) so I know it can be done.
View 3 Replies
Oct 13, 2005
if i have the following array
myArray[0] = "value 0";
myArray[1] = "value 1";
myArray[2] = "value 2";
myArray[3] = "value 3";
and i delete the second the value. is there anyway to stop it looking like this:
myArray[0] = "value 0";
myArray[1] = undefined;
myArray[2] = "value 2";
[Code]....
View 2 Replies
Feb 6, 2010
I'm creating a scrollbar gallery from a tutorial on this site. Though I've completed the tutorial, and customised the gallery to my own needs, however I'm trying to make a very small change to it - and no matter what I do, keep running into problems. I'm trying to replace the rectangular handle with my own customised handle - a (20 x 20) 'circular' png image that I've imported into Flash, made a graphic and stored in the library (though I understand it can be imported using actionscript, like the other images in the gallery).
[Code]....
View 7 Replies
Jul 14, 2010
Does anyone know of a way to specify different vertical gaps between siblings in a Tree? I want to child nodes spaced tighter together (maybe 10px) while the top level parents remain spaced further apart (20px). Essentially, I need to change the gap dynamically based upon the depth of the node, but I'm not sure if the Tree class (or the List class, which Tree extends) offers this type of functionality.
View 2 Replies
Dec 6, 2010
I have a Flex line chart where I allow the user to change the y axis ranges. When a data point falls outside the ranges, the chart drops the line segments on either side of the out of range point leaving a gap in the data line. I'm currently using the data function to clamp the values out of range to the y axis min/max, but this displays misleading data.
View 1 Replies
Jun 20, 2011
I have created a tile list with custom item renderer and in terms of functionality it works as it should. I reduced the width and height of the item renderer to 95% which then shows the tile lists background in the remaining 5% of that item. The problem is that only when I hover over the item, the background is covered up and I cant get a gap to appear between items. Is it possible to change the height and width of the hover over?
<mx:Canvas id="Card2" label="Card2" width="100%" height="100%" backgroundColor="#FFFFFF">
<mx:TileList id="tlCard2" x="10" y="10" dataProvider="{acCard2}" width="580" height="340" dropEnabled="true" borderThickness="0" maxColumns="4" maxRows="4" rowHeight="85" columnWidth="145" borderColor="#000000" horizontalScrollPolicy="off" verticalScrollPolicy="off" borderStyle="solid" dragMoveEnabled="true" dragEnabled="true" backgroundImage="{imgGuide}" themeColor="#BCBCBC">
[Code] .....
View 3 Replies
Sep 4, 2009
I need a bit of help with an issue I am experiencing. I am trying to load external swfs on menu link clicks, inside my main movie. However, the external swfs are taking 8-10 secs gap in loading inside main swf.
The external swfs fetch data from a mysql database. My question is - Should I load the external swfs at the time of loading the main menu to override this problem? The concern here is that it might take longer for the main movie to load then.
View 6 Replies
Nov 21, 2009
How can I modify the following code to add 26px space between the 2nd and 3rd item in a vertical menu, and the same added space between the 5th and 6th items?
[Code]...
View 4 Replies
Mar 2, 2010
I'm trying to make a nice trail effect for a drawing/particle thing. I've got it working pretty nicely except that when you draw/move the mouse too quickly gaps appear between the particles. Increasing the frame rate doesn't help. so I'm not really sure what the best way to go about this is?
PHP Code:
private function enterFrame(e:Event):void
{
particle.x = mouseX;[code]..........
View 2 Replies