ActionScript 2.0 :: Positioning Image With Sliding Grid
Feb 17, 2005
Scene: 450 px width. and the boxes (instance name:dot) are 50 px each.
The AS on the timeline:
// IMAGE
PHP Code:
gridx = 60; gridy = 60;
num = 0; mcArray = [];
dot._visible = 0;
for (var i = 0; i<21; i++) {
for (var j = 0; j<1; j++) {
var mc = dot.duplicateMovieClip("dot"+num, num);
[Code] .....
And when It start to slide after a little time the images start to stack on top of each other. How can I solve this ?
View 3 Replies
Similar Posts:
Mar 16, 2008
Does anyone out there have code for an XML gallery that arranges the sliding thumbs in a grid of many rows and columns instead of a single row?
View 6 Replies
Jan 24, 2007
Here's a chunk of my code:
Code:
//This function uses loops to generate the grid from the array below.
function drawIt(theMap)
{
[Code]....
Basically, it generates a grid from two movie clips which are just different coloured squares. It reads in generateMap function to decide whether it will be a red square or a white square. 0 = white 1 = red. (the reds are going to prevent a sprite from travelling on them)
Anyway, at the moment the starting point for generating this grid is at 0,0 of the movie clip. I want it to generate at say 150,0 so i can add a console on the left which can control a sprite around this grid.
View 2 Replies
Jan 2, 2006
I am working on my very first flash application and have found these forums very helpful so I have decided to post here since I'm stuck. I have taken the thumbnail gallery ikim posted on this thread and im trying to tweak it to my needs. When the thumbnails are loaded i would like to implement an onrelease function to tween the image to the middle of the screen, then slide to the right and increase the size. I have written the actionscript that will move the image. However, my problem is, i need to have the thumbnail slide from its original position to the middle of the screen. I thought i could do this by passing the parameters of _x, _y in the function and setting the motion accordingly. Being a newbie to AS, I am having trouble with getting ikim's gallery to accomodate this functionality. I tried using getproperty to get the _x, _y coordinates but this only returns the coordinates for the beginning position of the image and i need the ending position coordinates. I assumed I need to call getproperty at a later time, but I am not sure how to reference the thumbnails since it appears to me that they are being dynamically named and created the same.
View 1 Replies
Aug 12, 2010
This is my first action script project and I'm having trouble with some positioning of movie clips that I can't work out. I'll post in the parts of the code that I think are relevant in hopes that someone may be able to see what I am missing. The problem is that according to my traces my gridSnap function should be working. The trace shows mc.y to have the correct value while the movie is running yet the mc's in question are appearing in the wrong spot (they appear at GRIDSIZE*gridNumber) in the movie. The problem only manifests itself in case one and case three, both of which should have the same code but I was only testing different approaches in case one. On with the code:
[Code]...
View 3 Replies
Sep 14, 2009
I'm looking to do a sliding image menu like this one: [URL]. I can do this using tweening but it is not as smooth as using actionscript. Does anyone know what the name of this is as when I do a search as I can't find any solutions? I've tried 'thumbnail expand' and 'image easing' but am not getting any hits.
View 2 Replies
Nov 24, 2004
I'm using MX 2004 for a photographic portfolio project. The site seems to work fine on 99% percent of systems. Unfortunatley a strange error occus when viewing the site with IE on Mac OSX.I a dynamically loading images using LoadMovie and repostioning them so that they are centred. Sometimes with Mac IE the image doesn't get centred and is loaded with the top left corner in the centre of the screen as it would had the repositioning not happened.
This only happens sometimes and only with some images and with different images each time. I can reproduce the effect on my Mac but am stumped as to why it happens. I have ruled out the flash player version (it happens with them all) and have tried numerous export settings.Here's the code for the loading and repositioning and the link,
if (_root.image1loaded == false) {
//load image to empty movie clip
_root.images.createEmptyMovieClip("holder1", 1001);[code]...
View 5 Replies
Dec 29, 2006
I'm quite new in ActionScript (but I know the basics). Well anyway, I have a small problem. I'm doing this fake panorama to my site and I've used this Interactive Image Panning code I found here at kirupa.com. Now I have added some buttons into it and by pressing those I would like the image to move to a specific position (with ease if it's possible) and stop. And by pressing another button the panning starts again. Is it possible to add to this code? (I have made some little modifications to the code. There is a mask area where the panning works and if your mouse is outside the area the panning doesn't work)
View 13 Replies
Apr 1, 2007
How can I take a loded image and with actionscript position it at say 45 degrees (3d, not 2d) so that it looks like I'm looking from one side. It would have a 3d look.
View 1 Replies
Nov 24, 2004
I'm using MX 2004 for a photographic portfolio project. The site seems to work fine on 99% percent of systems. Unfortunatley a strange error occus when viewing the site with IE on Mac OSX.I a dynamically loading images using LoadMovie and repostioning them so that they are centred. Sometimes with Mac IE the image doesn't get centred and is loaded with the top left corner in the centre of the screen as it would had the repositioning not happened.
This only happens sometimes and only with some images and with different images each time.I can reproduce the effect on my Mac but am stumped as to why it happens.I have ruled out the flash player version (it happens with them all) and have tried numerous export settings.Here's the code for the loading and repositioning and the link,
_root.images.createEmptyMovieClip("holder1", 1001);
_root.images.holder1.loadMovie("flashimagesmac/mike.jpg");
//loader[code]....
View 5 Replies
May 18, 2008
This is probably a beaten subject but even after reading many post a couldn't understand how to go about it.After doing the following:
PHP Code:
this.crateEmptyMovieClip("myMC",this.getNextHighestDepth());myMC.loadMovie("image.jpg");
-would it be possible to set the _x and _y of image.jpg relative to myMC?You see moving myMC and then loading the picture into it will not me because myMC is to be scaled and manipulated, so its axis must be in the center of the loaded image.
View 8 Replies
Jan 22, 2010
I am looking for the Action Script that will allow me to set up a horiz. set of images and use the mouse movement to move the band of images left or right. Upon clickin on the image I will have a link to other views.
View 3 Replies
Feb 7, 2010
I'm looking to produce an image gallery exactly like the sliding panels here [URL]
The total length of the images are greater than 2880px (Flash's max stage width).
View 3 Replies
Apr 4, 2006
I am trying to develop a dynamic image sliding component.Although i tried to implement v2 framework but finds it difficult to handle.yet what i have created is attached.Please guys test it and give me few thoughts about it. This is the forum i like most and i learnt lot from it and thats where i wanna load my first independent work.
View 1 Replies
Jul 24, 2008
1. He wants the image slider device to scroll from left to right, instead of the default right to left.2. He wants to make it so that when you click on one of the photos (which are all buttons) the scrolling stops, and when you click "close" the scrolling starts again.Here is the actionscript for the sliding mechanism:
_quality = "BEST";
moview = 770;
w = slider._width;
[code].....
View 2 Replies
Aug 29, 2006
im trying to achieve a Full Browser Flash and i want my bgimage to remain in the centre of the stage whilst other objects move round it depending on mouse movements but how would i go about centering the bgimage through AS?
View 2 Replies
Jun 12, 2009
I'm trying to do a transition that you've probably seen many times. Transitioning one image to another using a grid of squares where each square fades at a slightly different time.I've made a complex movie clip made up of several other movie clips with all the squares fading at the rate I'm looking at. When I just play the color squares it works fine, but the minute I turn that master movie clip into a mask for the image I loose the transition/fade completely--just an on off thing.
View 3 Replies
Oct 22, 2005
I'm working on a website that is going to have images fading in and out of eachother. Instead of a plain fade, I would like to use the fade grid that I found on this site. I have it working with 1 image, but can't get it to work with more. I'm not great with action scripts and there is only 1 frame in the timeline so I can't put a go to action at the end of the animation. I tried adding a second scene but then it just gave me a white screen when I tested the movie.I would like to have 6 images fading with the grid. How to get it to work? Using Flash MX. Actionscript is here: [URl].
View 3 Replies
Sep 14, 2009
I have an image of a human body which needs to divided into Hexagonal Grid pattern and the hexagons should be highlighted on mouse rollover and also clicks. It will be time consuming if I make these hexagons manually coz they will around 1000 in numbers.
Also, I need to zoom the hexagons on clicks.
View 5 Replies
Feb 7, 2012
[url]...Now I have a problem, I would like to add DOWNLOAD button for every image, or to add ''Back'' button, and clicking on the image would open it in new window for downlading. I tried to modify code on my own but I didn't succeed a lot. I dont know if I have to put links in XML file and then create new var like ''picUrl'' or something? My main problem is creating function for that.
View 7 Replies
Apr 5, 2010
Is there an easy way to embed an image into a flex grid column? Something similar to[url]...
View 1 Replies
Jun 8, 2011
here is the existing chunk of code:
if (status != FlexFieldInfo.EDITABLE) {
setToolTip(uiComponent, status, entityForm);
graphics.beginFill(0xFFABC0);
graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
graphics.endFill();
i would like to replace the background color with a tiling background-image. i understand that "graphics." can only fill or draw. i understand the chunk of "graphics." in the code above needs to change to something else, but i am at a loss of how to call the following image: background-image: Embed("images/bg-uneditableField.jpg");
I have searched high and low unsuccessfully. I am a front-end developer just stepping in to our Flex 3 environment and am not a strong javascript/.as person. Note: our application needs to stay in Flex 3, upgrading is not an option at this time.
View 1 Replies
Feb 5, 2009
looking for a script that loads 6 logo image thumbs into a grid (randomly from folder), with each thumb having a rollover image and link.. Basically the logo area on this page : I have about 30 client logos in greyscale ( and colour version for rollover), and need to randomly load 6 logos at a time (or random individually) on a timer. oN RollOver. loads colour version of logo with link node in XML Something like...
[Code]...
View 3 Replies
Jul 22, 2009
Is it possible to export the image on the stage with the interface's grid included?
View 1 Replies
Oct 7, 2009
How would I go about creating a gallery that displays images in a grid format that are both portrait and landscape without any cropping or spacing. I cant figure how to go about scripting the arrangement/scaling functions?
View 1 Replies
Jul 7, 2010
I'm attempting to add an image to a datagrid item render dynamically in flex. Here is my DataGrid code The value of "str" in the getImagePath function is correct.
[Code]....
View 1 Replies
Jun 19, 2011
I want to create a page with art work where images are pulled externally and the items in the grid also have text and are clickable (all taken from XML).I succesfully extracted information from XML and am using a for loop to create my image gird but not sure this is the best method? I have used an XML gallery tutorial from Republic of Code to get me started. Below is the for loop what I am struggling with at the moment is that the product images are not loading into the individual movie clips.Im new to AS3 so sorry if I am doing this all wrong.
Code:
function callProductThumbs():void {
//Loops through the XML Lists as defined by external Web Service
[code]........
View 2 Replies
Apr 7, 2009
I've been working on Todd's Image grid viewer that can be seen here viewtopic.php?f=9&t=16158&p=82039
I wanted to add some category buttons so far its going well with the new xml.
Only I can't figure out the switch between the category button.
When i click on cat 1 Btn everything loads fine then when i click on cat btn 2 instead of reloading and "throwing" cat1 content away cat 2 content loads behind cat1 content...I hope that made sense.....
I have added the files, it's basically the same just a different XML and some tweaking on the XML load function. I didn't add the images since the file was to big, you can get the images from Todd's post. viewtopic.php?f=9&t=16158&p=82039
View 2 Replies
Jun 13, 2009
Is there a way to break up an image and spread each piece over a grid. each pice will have to be independent so it can move freely,
Is there a different answer from attaching all of the movieclips with different parts inside over a mask,
View 3 Replies
Jun 19, 2011
I want to create a page with art work where images are pulled externally and the items in the grid also have text and are clickable (all taken from XML).I succesfully extracted information from XML and am using a for loop to create my image gird but not sure this is the best method? I have used an XML gallery tutorial from Republic of Code to get me started. Below is the for loop what I am struggling with at the moment is that the product images are not loading into the individual movie clips.
Code:
function callProductThumbs():void {
//Loops through the XML Lists as defined by external Web Service
for (var i:Number = 0; i < product_total; i++) {[code].....
View 1 Replies