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.
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.
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] .....
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.
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] .....
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) ; }
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,
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.
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]
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.
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....
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).
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.
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:
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.
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] .....
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?
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]
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.
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?
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.
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?
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?
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.
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:
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)
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.