ActionScript 2.0 :: Flash Carousel - MCs Do Not SwapDepths Properly

Sep 26, 2007

I've just completed and have now made my own carousel, but it has one problem. The mc's do not swap depths properly which kinda kills the whole illusion...

Code:
var numOfItems:Number = 10;
var radiusX:Number = 250;
var radiusY:Number = 75;
var centerX:Number = Stage.width/2;
var centerY:Number = Stage.height/2;
[Code] .....

My stage is 1000 x 1000. The mc's flash back and forward when they overlap at the edges of the carousel.

View 2 Replies


Similar Posts:


ActionScript 1/2 :: SwapDepths With 3d Carousel?

Feb 19, 2010

I did the 3d carousel tutorial from gotoandlearn.com and I manage to create a background color that will load once you click an image with a movie clip called dim . However this movieclip dim keeps appearing atop my icons. I tried Swapdepths to change the orders but its not working.

[Code]...

View 17 Replies

ActionScript 2.0 :: Using SwapDepths With 3D Carousel

Feb 20, 2010

I did the 3d carousel tutorial from gotoandlearn site and I manage to create a background color that will load once you click an image with a movie clip called dim. However this movieclip dim keeps appearing atop my icons. I tried Swapdepths to change the orders but its not working. On function released. I want the var dim to be behind the var t:Movieclip =home. in the preview the movie clip dim with the alpha of 80 appears on top the var t that has the carousel images.

Code:
import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 75;
[Code] .....

View 0 Replies

ActionScript 3.0 :: Creating Carousel Effect And Working With Swapdepths

Oct 17, 2006

I am trying to create a carousel effect with AS3. It all works good except that I get my swapdepths to work. I have a CarouselItem class

ActionScript Code:
package{
import flash.display.Sprite;
public class CarouselItem extends Sprite{
private var _angle:Number;
public function CarouselItem(){
super();
[Code] .....

I get the depth of the current object and then swap it with the one with the higher index.

View 9 Replies

Can't Get Carousel To Work Properly

Nov 15, 2010

I am VERY green when it comes to flash and this is my first ever project. What Im trying to accomplish; *a website for myself that is "simple" and clean to be used as an art portfolio/gallery of my work. -three sets of buttons that go to three pages all with carousels that hold my artwork for that type (ie. press the concept art button and it loads page 2 where there is a photo carousel that containing my concept art pieces.
-clicking another button will then call for a new page with a new carousel (I have three types of art that I am showcasing: concept art, fine art, 3D game art)

I have managed to create a flash page that has my name and the buttons and upon pressing the buttons it goes to the page I need. However the pages are at the moment empty due to the fact that I cannot get the carousels to work properly. I have watched the tutorial and dl the class package on 3D carousels. I changed the .as file within the package so that my carousel will be vertical by changing imc.x = Math.cos(imc.angle) * 450; to imc.y = Math.cos(imc.angle) * 450;

[Code]...

View 1 Replies

Convert Lee 3D Carousel Tut To AS3 - How To Re-index Each Item Properly?

May 11, 2009

I've been trying yo convert Lee 3D carousel tut to AS3 and it pretty much there apart from one thing. I took Lee's as2 carousel 2 and applied what I know to convert it to AS3. I couldn't work out how to re-index each item properly. When the last item in the XML should appear under an item to it's left or right it does not due to numbers being rounded from the scaleX value being too close and causing the same number to be generated from more than one item therefore last item to be processed ending up on top. I've tried a few alternatives, but nothing has worked so far. Hopefully that makes to sense to someone.

If you download the files from Lee's tutorial http:[url].... open the fla, change the publish settings to Flash Player 9+ and AS3, remove all existing AS code, check the library item linkage as I've capitalized everything and add the following to the root timeline.The code causing the problem is this in the function mover:

Code: Select allvar index:int = Math.floor(mc.scaleX*10);
Code: Select allvar loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);[code].............

View 3 Replies

ActionScript 2.0 :: Stop Swapdepths In Flash Persisting For The Whole Scene?

Apr 2, 2010

I have a small interface at the begging of my scene (frame1) using the swapdepths command to stop background buttons being clicked beneith pressed button menus. AS on Button inside movieclip (MC):

[Code]...

The next few frames are seperate pages and do not contain this interface yet all the buttons selected from the frame1 interface are still prominant in every frame after this. How can I disable swapdepths in the frames after this?

View 2 Replies

ActionScript 3.0 :: How To Use SwapDepths()

Mar 16, 2011

how to use swapDepths(). I know the alternative way is swapChildren(), swapChildrenAt();I need to know, how to use swapDepths();

View 2 Replies

ActionScript 2.0 :: Using SwapDepths In MX?

Apr 2, 2004

I wanted to swap the depths of two movieclips one located in _level0 the other located in _level2! I can get it to work when the MC's are on the same level but not when thier in different levels.

This is the code I've tried...

Code:
_level2.buttons.swapDepths(_level0.caption);

View 1 Replies

ActionScript 2.0 :: Get These Mc's To Swapdepths When Clicked?

Jan 19, 2009

If anyone can get these mc's to swapdepths when clicked!

View 2 Replies

ActionScript 2.0 :: SwapDepths Without Using An OnClipEvent?

Jan 6, 2006

I have 2 images that I want to swap places on a certain frame in my animation. I've been messing with it for quite sometime now and I can accomplish one of two things. Either the animation goes smoothly and the images don't swap depths or the images swap depths and the animation hangs.

View 6 Replies

ActionScript 2.0 :: SwapDepths On Buttons?

Nov 14, 2007

I have a banner I'm working on and it has 28 icons that are button symbols. Each one when you mouse over, has a label animate out of it. All of these icons are in very close proximity and when you mouse over, the label usually goes behind the other icons.Now usually, with movieclips I attach this:

Code:
MC.onRollOver = function (){
_root.x += 2;

[code].....

View 2 Replies

IDE :: SwapDepths Without Movie Clips?

Jun 16, 2009

I'm filling my stage with a tile overlay (transparent .png). I want it to overlap an Embedded Video that's also on the stage. How can I get the tile overlay to be on top of the video instead of underneath?

[URL]

View 1 Replies

ActionScript 2.0 :: F8 Flash Globe Carousel

Feb 14, 2009

I am trying to develop a Flash globe carousel and I need some help in doing so.A normal carousel moves along a circle.I am trying to develop a Flash carousel that moves in every direction along the lines of a globe. You can see attached a normal carousel that I have created. I have tried to upgrade it to a globe carousel but I am having problems in doing so.It is not easy but I am sure that there are people here that understand trigonometry and can point me in the right direction.

View 1 Replies

ActionScript 2.0 :: Flash Carousel Stop?

Apr 8, 2009

1.Flash carousel changes

a.Currently each carousel rotates automatically.

change so that it is does not rotate but it only rotates when you click on individual image, it then stays on that image until you click another image.file is also attached:

// Code Credit: Lee Brimelow
stop();
var folder:String = "thumbnails/";// a folder for thumbnail files + an XML file[code]...........

View 2 Replies

ActionScript 3.0 :: Resizeing A Flash Carousel?

Mar 24, 2012

so i have the carousel already made (i didn't make it i found it online) [URL]
 
im trying to make the carousel 195 height 620 width but idk if i'm supposed to change the code or the stage size ,or both i tried changeing some of the code but that didn't work out too well i'll be honest i didn't know what i was doing i also wanted to make the images into links

View 3 Replies

Xml :: External Links From Flash Carousel?

Feb 3, 2011

I'm trying to create a Flash Carousel in AS2. I've made the Carousel itself, and have got the icon images and tooltips from an XML file using this code:

xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;

[Code].....

I have functions for 'over', 'out', and 'released', and to move the carousel automatically, left or right depending on mouse position.

I was wondering if there was a way you could make each individual icon have an external link that leads to a different place on my website when you click on an icon, where I could specify the link url itself in the XML file?

View 3 Replies

Flash 10 :: Carousel Images Are Not Rotating

Jul 16, 2011

My carousel is all setup and working fine on my site. there is one thing that it is not doing. the images should automatically rotate. the properties are all set in the xml file and look like the following[code]...

View 0 Replies

ActionScript 3.0 :: Flash 3D Carousel File

Sep 24, 2011

I found this free 3D Carousel flash file on the this website but I couldn't add a different icons into the Carousel! can someone help me with that please? what I need is just to put a different icons in the Carousel but the icons should be inside the flash file library not out.

View 9 Replies

3d Carousel - Dynamically Generated Flash

Jul 1, 2009

I wish to have a 3d carousel much like a flash one in the below link : [URL] however, i wish the images to be dynamically generated and at the same time txt 'beneath' (to be added) the picture to be dynamically updated also...through a database. I wish to get it connected to a back end and probably use a content management system.

View 1 Replies

ActionScript 1/2 :: SwapDepths And Button Rollover?

Dec 2, 2010

I'm currently working on a project (AS2 in CS5) that contains a lot of small dots that are set up as buttons with rollovers. This has been problematic since the rollovers will sometimes appear behind some of the other buttons.
 
I did a forum search and found information about the swapdepths function that can be applied to buttons by using the following code:

[Code]... 
 
This code solved the overlap problem, however... now when i roll out of the button, the "roll over" state remains visible (instead of returning to its original state)

View 4 Replies

ActionScript 2.0 :: Swapdepths On A Ui Window Component?

Oct 7, 2004

The problem i have is that i want to use the ui window component (in order to keep file size down, and it just works well) but i want to use multiple windows on the stage. It was simple to get them to open with PopUpManager.createPopUp and to intialise the close button with deletePopUp(). Now heres the big but i can't get a swapdepths function to work.I have added in an event listener for the close button and the swapdepths but only one fuction will work at a time, ie i can get the swap depth to work but you can't drag the windows or close them, or you can drag and close one window but the other will not do anything until the top one is closed.i know that it's a swapdepth problem but i can't work out where to put the swapdepth in the code to make all fuctions work at once.The code is below

var myq1:MovieClip = PopUpManager.createPopUp(_root, Window, true, {closeButton:true, title:"Question 1", contentPath:'q1'});
myq1.setSize(600,450);

[code].....

View 1 Replies

ActionScript 2.0 :: Swapdepths - Mc's Keep Popping Up On The Other Scene's

Aug 6, 2002

My movie has several scenes. In one of them I have to swapdepths of some mc's. The weird thing is that when I go on to the next scene, the mc's that were on top of the stackingorder are showing up on top of the next scene. I've tried about everything I could think of, but the mc's keep popping up on the other scene's.

View 1 Replies

ActionScript 2.0 :: Create Tabs With SwapDepths()?

Jun 2, 2005

I am having a problem and hope someone can help. I've created two mc's. One called "mcSkinned" and the other called "mcSkeleton". Each of these mc's has an mc inside of it that acts as the tab (so when the tab is clicked, the focus changes for either mcSkinned or mcSkeleton). The names of the tab mc's are:

mcSkeletonTabBackground
mcSkinnedTabBackground

So this means that mcSkeleton has mcSkeletonTabBackground in it and mcSkinned has mcSkinnedTabBackground in it.I've placed each main mc (mcSkinned and mcSkeleton) on the main scene and added the following code to an "Actions" layer on the timeline:

mcSkeleton.mcSkeletonTabBackground.onPress = function():Void {
mcSkeleton.swapDepths(this.mcSkinned);
};
mcSkinned.mcSkinnedTabBackground.onPress = function():Void {
mcSkinned.swapDepths(this.mcSkeleton);
};

Now, I know that I've done something wrong. Because if it worked, I would not be on here begging for help. Can anyone please let me know how I am screwing this up? have two tabs change depths when clicked on their tabs. I do not want these mc's to be draggable on to change z-depths.

View 6 Replies

ActionScript 2.0 :: [FMX]swapDepths Inside Function?

May 13, 2004

I have a function to fade in and out four movie clips. This is the code:

Code:
function fadeSub(l) {
for (k=0; k<but.length; k++) {[code]....

I have buttons inside the sub_mc's that aren't working because of the depths. How doI integrate a swapDepth in the fadeSub function?

View 6 Replies

ActionScript 2.0 :: Swapdepths On A Ui Window Component

Oct 7, 2004

i have been trying to work this out for some time and i can't find any info about this on the web.The problem i have is that i want to use the ui window component (in order to keep file size down, and it just works well) but i want to use multiple windows on the stage. It was simple to get them to open with PopUpManager.createPopUp and to intialise the close button with deletePopUp(). Now heres the big but i can't get a swapdepths function to work.I have added in an event listener for the close button and the swapdepths but only one fuction will work at a time, ie i can get the swap depth to work but you can't drag the windows or close them, or you can drag and close one window but the other will not do anything until the top one is closed.i know that it's a swapdepth problem but i can't work out where to put the swapdepth in the code to make all fuctions work at once.[code]

View 1 Replies

ActionScript 1/2 :: How To Stop Carousel From Playing Throughout Flash Doc

Dec 28, 2010

Basically I've included actionscript which produces a 3d carousel through an xml file. everything has worked out well except I dont know how to stop the carousel from playing throughout my flash document. I have included button and frame labels which allow you to go to different pages, but on every page the carousel is playing throughout. I've tried the stop();. What I would like is for the actionscript to disappear after frame 19 and beyond. Is there anyway I could do that through actionscript maybe? I am using Flash CS5 and Actionscript 2.0.

View 11 Replies

Xml :: Flash - Carousel Showing Different Images In Different Browsers?

Apr 4, 2011

I have a Flash carousel on my website, and I wanted to change one of the images, and delete another icon altogether. I have uploaded the revised XML file, published the new .swf (just in case), and uploaded to my Joomla site.For some strange reason, its still showing the old icons in Firefox (even though I've deleted these images from the referenced folder), and its showing the new icons in IE, only without the one image I added. Very strange.I've refreshed, created a new .swf, made sure I've saved the XML file etc but no changeThis is probably one of those amateur mistakes I think, I've thought of everything but drawing a blank at the moment.Oh i should probably mentioned that the revised carousel has 4 icons, and the old one has 5. The new image I put in has an icon of a jigsaw.XML File is as follows

<icons>
<icon image="icon3.jpg" tooltip="Ramis Software" link="/index.php?option=com_content&view=article&id=57&Itemid=67"/>

[code].....

View 3 Replies

ActionScript 3.0 :: Adding Links To Flash Carousel Through XML?

Aug 2, 2009

I have a nice Flash Carousel gallery and it fed from a n xml file. I am trying insert links to give an option to a reader to go an external website to read more about the given subject. I am new to actionscript, and all my trying and all my trying failed so far.Here is the script for this section:

xml.onLoad = function() {
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
//this counts the amunt of items listed in the xml document (numOfItems);

[code]....

View 0 Replies

ActionScript 2.0 :: 3D Carousel - Flash And Greybox Integration

Aug 9, 2009

I'm using the Oxylusflash 3d Carousel which uses AS2.0. I've got it installed and working, however I want to trigger a Greybox javascript popup by clicking on an image in the carousel menu. The Greybox popup is initiated in HTML by simply including arguments in the <a href..> tag like this:
Code:
<a href="[URL]" title="Google" rel="gb_page_center[640, 480]">Launch google.com in a 640x480 window</a>

The carousel .fla file (which for commercial reasons I am unable to upload) uses a file called pictureClick.as to handle the onClick events (I think this is the right way to describe it). The pictureClick.as file contains the following:
//function called by onPress event and return "name" variables from xml (if action is other that "_blank")
function pictureClick(par){
//this is the the name of current holder that keeps all images
var father=_root.slideshow.poze;
[Code] .....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved