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


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 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

ActionScript 2.0 :: SwapDepths In Array Stops Working

Mar 12, 2009

I'm trying to set up an app that moves one movie clip to the top of the screen, regardless of where it is or how deeply it is nested. To do this, I take the full path of the movie clip and go in, movie clip by movie clip, putting the depth of each nested clip on top. This part works perfectly. Afterwards, I want to move everything back to where it was. In the first step, I store the current depths of everything in an array before changing depths. In the second step, I'm trying to change everything back to its original depth, as shown in the array.

The code is below:
_global.videoPath = _root.clip1.clip2;
var pathString = String(_global.videoPath);
var videoPathArray = pathString.split(".");
var depthArray:Array = new Array();
[Code] .....

View 1 Replies

ActionScript 2.0 :: Tabbed Content With SwapDepths Not Working Right?

Apr 2, 2009

I followed this tutorial on making Tabbed Content with swapDepths, but mine isn't working quite right. When you click a tab the text and icon disappear behind the tab. So each tabbed page is an mc and there is a button for each tab that has this AS on it:

on (release) {
_root.btn1.swapDepths(3) ;
_root.tab1.swapDepths(2) ;
}

View 3 Replies

ActionScript 1/2 :: Swapdepths With New Mc From Dynamic Text Still Not Working

Feb 21, 2011

difference but Im using Flas cs5 with AS2. but my clock timer is still behind. Ned, I used your suggestion of putting my dynamic text into a new mc (create sybol method, the only one I know) then I made a new movieclilp named time_mc. I then pasted the actionscript with the 30 minute countdown timer on it. It is still behind. The clouds have to stay on the last depth and the timer has to stay on the top. The rest can go whereever. Not sure what i am doing wrong. I bet Im doing something incorrect but cant figure it out. I kept playing around with codes, but nothing worked. Here is the final non-working code. Working on this issue three days. The timer works if I remove all other layers but it stays hidden once I put them back,

[Code]...

View 4 Replies

ActionScript 2.0 :: .swapDepths Not Working - How To Make It Work

Sep 7, 2003

I have a movie clip I am using to display a group of logos i created which are also movie clips. when the user clicks on each logo the logos are supposed to enlarge except, that because of the way the layers are stacked, one of the enlarged logos displays underneath the smaller one. so, someone suggested i use swapDepths. But nothing happens. it won't even enlarge. here's the script:

on (release) {
this.swapDepths("manard");
gotoAndPlay("oataup");
}

"oataup" is a frame label, obviously and "manard" is the name of the movie clip instance I'm trying to swap with. I've never used the swapDepths method before so I'm hoping I screwed something simple up.

View 4 Replies

ActionScript 2.0 :: SwapDepths On Duplicate Movie Clip Not Working

Jul 18, 2010

I have been battling this for 2 days now and can't seem to find any solutions. I am making a flash Statistics chart for my website which pulls the stats from the database and loads them into corresponding arrays in the actionscript. Once all the information is pulled, it goes to the next frame and duplicates the existing stat bars on the flash document depending on how many stats were retrieved. The loaded stats are then calculated to adjust the stat bar heights to fit the grid. So far, everything is working up to this point.Now for the problem... Directly above each stat bar, I have a text field which I want to fill with the value of the specified stat. The stat text fields are duplicated by the duplicateMovieClip function. For some reason, stat text fields are not visible at all even when using the depthManager function I found in my research.[code]

View 2 Replies

CS3 - Make Carousel Effect?

Mar 22, 2010

how can I make a carousel effect similar to this website? Is there an easy program to assist? Is it flash?

View 1 Replies

ActionScript 3.0 :: Scroll Code With The Carousel Effect

Jul 13, 2009

how this is accomplished?[URL] In this site, if you drag the "sun" back and forth, you spin the tickets. I've done something similar in as2, with the carousel effect. What I'm really interested in is how, when you release the "sun", the tickets don't stop spinning until the one closest to the middle of the stage is directly in the middle of the stage. I've been trying to accomplish this with a some scrollable thumbnails. But when you release the arrow keys, it stops where ever it was on MOUSE_UP.

View 0 Replies

ActionScript 2.0 :: Images To Rotate Like The Carousel Effect?

Jun 13, 2008

I am working on a code where there are images with reflection..they are arranged one after other facing the viewer...and i want the images to rotate....like the Carousel Effect....I have checked on Net different Carousel Effect codes but nothing is going well for me....

View 2 Replies

ActionScript 2.0 :: Carousel - Getting Blur Effect And Left / Right Button

Apr 9, 2009

I'm trying to achieve the same effect as the carousel on this site: [URL]. Only different thing I'm trying to do is not have it auto scroll, but to have a left and right button. I have tried using the Carousel 3 tutorial and modifying the code but I keep running into problems and I am a little lost getting the blur effect going and getting the z-index (ie items get smaller as they rotate to the back similar to the example above).

View 2 Replies

Creating A 3D Stacked Carousel?

Jul 1, 2011

The tutorials on the site are fantastic kudos to the developers of the site and the tutorials. On Creating 3D Carousels would anyone know a way to stack the rings? Also additional images to be called in each new ring via the XML file.

View 1 Replies

ActionScript 2.0 :: Text Effect Pom Used In The Footer Contest, Use The Same Grid-type Method Of Creating Mc Letters But With A Different Effect?

Jun 16, 2003

I really like the text effect Pom used in the footer contest, and would like to use the same grid-type method of creating mc letters but with a different effect. i understand how to change the parameters and shapes of the letters, but can't seem to figure out which piece of code is purely for the explosion effect. basically, i want the letters but with the 'Repel' effect from[URL] here is Pom's AS:

[AS]
cellSize=3;
radius=10;
damp=.85;

[code]....

and here is the .fla using the repel effect using pre-made mc:

View 6 Replies

Professional :: Creating A Xml File To Work For A 3D Carousel?

May 7, 2010

I'm using Flash CS4,i'm having problems creating a xml file to work with the action script for a 3D carousel. I've created folder for image png file and icons xml using a normal notepad in windows for file to work with the flash action script 2.0, but in output menu the msg says Error opening URL 'file:///C|/Users/User/Documents/caroselFile/icons.xml'.They're no compiler errors. Should the notepad be xml editor? I have been told i can use a normal notepad.Maybe i should of saved it in the fla directry but don't know where it is.

View 7 Replies

ActionScript 3.0 :: Creating Carousel Gallery - Each Image Accompanied By URL

Mar 22, 2009

Here is the scenario... I am attempting to create a carousel image gallery each image is accompanied by a url that when pressed will take the viewer to an external website. I am pulling this information from an xml document "images.xml". I am using a dynamic textfield with an instance name "links" to hold the urls. The problem is the URLs are not changing when I selected a new image. How can I make it so that when a user clicks on image1 for example they'll get "View Google" and when they click on image2 they'll get "View YouTube" etc?

Here is my XML:
<?xml version="1.0" encoding="UTF-8"?>
<images><image src="img/Layer-1.png" />
<urltxt><a href="[URL]">Cops</a></urltxt>
<image src="img/Layer-2.png" />
<urltxt><a href="[URL]">Dogs</a></urltxt>
[Code] .....

View 3 Replies

3D Carousel - Reflection Not Working Correctly

May 24, 2009

So I followed the 3D Carousel tutorial, the first part of it and the coding worked fine, but the reflection is not working properly. I used a .PSD file and followed the instructions step by step. I added the action script code in the end, but when I take a look at the preview, the reflection image is displayed just like the original picture. Is the .PSD format a problem?

View 1 Replies

Actionscript 2.0 :: Carousel Not Working When Upload On Server?

Jan 21, 2011

I made my carousel,everything worked fine on my pc.but when i uploaded it on server it show stage but no pictures.i tried all.to change path's in xml to [URL] and all other versions of absolute paths.than i tought something is not ok in my fla.so i tried to change path to xml.not working also. and after 4 days of trying i am freaked out.i cant make it work.i know it has stupid solution but i can't make it work.i read forum and there is no answer to this.or i didnt find it.i read almost 100 topics related to carousel.my carousel is coded in AS2.

on server swf,xml and pics are here /www/Novi/flash/ page that swf was embeded is [URL]

View 1 Replies

Creating A Roll-over Effect?

Oct 13, 2009

creating a roll-over effect where he sprinkles dust from his fingers (As in, he actually moves his fingers and dust falls)?

View 1 Replies

Creating An Effect Using A Mask?

Sep 18, 2009

im trying to create a flash effect using a mask layer.i want to have a text box which is invisible, and throu the timeline small peices of a mask layer will move over the text box, revealing the text. My problem is this, if i create a mask layer with more than 1 object, when i try to move the objects (for example in different directions so the text will reveal from both sides) then i get a weird movement from the objects (like the sum of both movements i wanted) so i was think maybe a layer can contain only one moving object.So i just cant figure how can i get the effect i want.

View 4 Replies

IDE :: Creating Slideshow Effect?

May 26, 2009

I am trying to create a full-frame photo slideshow/photo transition like the one on this site-It shows a random background photo each time a link is clicked and has a nice diagonal "wipe" effect for a transition. Then photos of their work are shown when exploring that section. How would I generate the random photos and transition effect upon clicking a link?

View 2 Replies

ActionScript 3.0 :: Creating A DragMask Effect?

Apr 16, 2010

Many years ago, I got this file to teach me how to make a mask.Its a magnifying glass and inside where the glass is, there is a circle that makes the mask.The two layers below it show type going from small, to larger, where the magnifying glass mask resides.The demo uses a motion tween, where the magnifying glass and the cirlce move together.I am trying to create a drag mask to do this, is this possible? am not sure how to keep the magnifying glass and the circle for the glass together?I can't put the magnifying glass on the mask layer, or it won't show in the movie?Here is what the Original file looked like:This is what needs to stay together to work, and I can't figure it out?I have a script tome write the start and stop drag, but I don't know how I can put both the magnifying glass, which needs to be visible to the user, and the circle, which needs to be on the mask layer to show visibility of the masked layer below, together for 1 stop and start drag action.

View 7 Replies

ActionScript 3.0 :: Creating Wash-out Effect?

Jul 23, 2009

I'm looking to create this styled effect for transition between multiple mc's.This site is an example of the effect I'm looking to create featured in the intro.The 'wash-out' effect is used as a transition and I'm wondering the best way to accomplish this effect. Is is code or tween animation of the timeline and some sort of filter?

View 5 Replies

ActionScript 1/2 :: Creating Page Curl Effect?

Mar 8, 2011

I am trying to create an interative catalog for my small business.( I would like to do something similar to the online catalog that Kohls department store has [URL]... When the user goes to the corner, I would like the page to curl and give them the ability to turn it like a book.  I would also like to keep all of my interactive scripting on each page (ie small popup box when the user rolls over an item, larger popup box when they click on an item) I am currently using Flash Pro CS5 to create the rollover/popup boxes, but do not know how to create the page curl effect. I  know that InDesign can apply this effect to my pages, but am having issues with this working completely. 

I have placed my flash pro cs5 .swf file (which contains my invisible buttons and scripting.) into my InDesign doc.  I then export this InDesign doc as a .swf  and also generate an html file.  When I open the swf or html file, there is a big grey flash logo on the page.   If I click on it, the page loads and I am able to interact as I would like and also turn the page with the curl effect.  The problem is that every time I turn the page it loads the gray flash logo and I have to click on it again to load the page. An even bigger problem is when I embed the InDesign swf file to my webpage the gray flash logo is still there and even when I click on it,  it doesnt load the page.  Is there a way to get both interactivity (ie rollover/popupboxes) and the page curl effect I want? Is there a program that will make it easy for me to do both? 

View 1 Replies

Professional :: Creating A Fade Up Effect From Bottom To Top?

Mar 27, 2011

I'm struggling to create an effect that I thought wouldn't be to complex to complete, however several hours latter...still can not make it work.
 
Using Motion tween Im attempting to make an image fade up! Meaning the image slowly fades up from the bottom of the image until the whole image can be seen.
 
I've tried using the fade effect and adding a masked layer that's tweened, however it fades in very harshly indeed, with the line of the mask very obvious.
 
Is there any way that I can do this so that it looks smoother and the line is less distinctive.

View 16 Replies

ActionScript 2.0 :: Creating A Color Fade Effect?

Oct 16, 2003

I am looking to create a COLOR FADE effect similar to the one on the Diesel site

[URL]

View 2 Replies

ActionScript 2.0 :: Creating The DNA Effect Like In The FlashBox Banner

Apr 24, 2004

Taken from [URL] (my site) Creating the DNA effect like in the FlashBox banner. Create an object like the one shown below.Give it an instance name of dna1 You can use any colours but the colours I used are as follows: A radial gradient set with colours from left to right:

[Code]...

View 1 Replies

ActionScript 3.0 :: Creating A 'Spotlight' Effect On An Image In Flash

Oct 28, 2009

Right so I was just wondering how I would go about creating a 'spotlight' effect on an image in flash. I want to use a background image which is only visible within the 'spotlight' (e.g. everything outwith the spotlight is just black). The spotlight must be able to be controlled by the user (I know how to do that bit at least)

View 4 Replies

Professional :: Creating Apple Dock Effect In Movie?

Feb 4, 2011

I have created a movie in CS3 which is basically a series of images that scroll from right to left across the screen. Each image also has a url assigned to it so that clicking on that image takes you to another (external) website. It's all working beautifully.All I want to be able to do now is to create a mouseover effect, whereby when your cursor is over the scrolling image, that image only enlarges slightly - a bit like the Apple dock effect. Then, if the cursor moves to the second image, the first image reduces back to its original size and the second one enlarges.

View 5 Replies







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