Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




3D Carousel Weird Image At Loading?



HelloThe 3d carousel is fantastic but i seem to have encountered an issuewhen it loads it has a very odd royal blue blue box about 2 inches tall by half inch wide appear on the screen briefly. this appears in the upper left portion of the screenany ideas what this might be? would like to make it go away! since it is all loading dynamically i have no idea where this little gremlin is coming fromthanksjustin



General Flash
Posted on: Tue Nov 18, 2008 7:57 pm


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

[F8] Weird Weird Loading Problem
Hey all,

Check out this project I'm working on:
http://www.niekdekker.com/overig/

The weird thing is, and you can see this, that the movie just stays white while it's loading. When the movie is fully loaded the movie begins.

And I am CERTAIN this has nothing to do with the way I built my flash. Even if I remove all the loading code it's still just white until it's all loaded. Think about it: There's isn't even a white frame in the entire movie!

So I dont' know what I am doing wrong.
Does anybody recognize this problem?

Thanks in advance,
Niek Dekker

AS3 Image Carousel
Hi I am trying to replicate the an image carousel like the one on nissanusa.com.

I have created a movie(image1) with five layers containing the images.

and given them instance names ClipA, ClipB, etc.

I then moved ClipA from the top layer to below ClipB but then the listeners dont catch any mose roll over.

Any Ideas?

Is there a way to dynamically move them up or down layers?


image1.clipA.addEventListener(MouseEvent.ROLL_OVER,overFunction1);
image1.clipA.addEventListener(MouseEvent.ROLL_OUT,outFunction1);

image1.clipB.addEventListener(MouseEvent.ROLL_OVER,overFunction2);
image1.clipB.addEventListener(MouseEvent.ROLL_OUT,outFunction1);


function overFunction1(obj:Object) {
trace ("on roll called");
display_txt.text = "CLIP A";
bgdark.visible = true;
image1.stop();
image1.clipA.gotoAndStop(10);
image1.clipB.gotoAndStop(20);
image1.clipC.gotoAndStop(20);
image1.clipD.gotoAndStop(20);
image1.clipE.gotoAndStop(20);
}


Thanks

Chris

Anyone Know Any Image Carousel Tutorial?
Hi,

I'm looking for an image carousel (rotating like those found in carnival rides) done in Flash5. Preferably horizontally rotating and customizable...

Anyone seen one lately? Somewhat looks like this except this one is done with java applets and is more like a ferris wheel rather than a carousel.


Thanks!

Carousel Image Gallery
i am interested to know how this IMAGE GALLERY was created and worked out.

i searched on FK and found THIS Carousel sorta thing but i was not successful implementing images within it.

anyhelp is greatly appreciated.

I Need An Image Carousel, Scroller Like This One...
Hi there,

Im looking to build a scrolling image carousel like the one shown here

http://www.nikoleramsay.com/

The requirements are:
The images must be loaded in individually to reduce preload time.
For it to be scrolling.
To have a dragable bar
To remain 100% width in any browser.

Does any know of a script, a site, a tutorial that might help me complete this? Doesn’t have to be a free script, i don’t mind paying for this.

To be honest, any help in the right direction would be fantastically helpful here.

Tim

I Need An Image Carousel, Scroller Like This One...
Hi there,

Im looking to build a scrolling image carousel like the one shown here

http://www.nikoleramsay.com/

The requirements are:
The images must be loaded in individually to reduce preload time.
For it to be scrolling.
To have a dragable bar
To remain 100% width in any browser.

Does any know of a script, a site, a tutorial that might help me complete this? Doesn’t have to be a free script, i don’t mind paying for this.

To be honest, any help in the right direction would be fantastically helpful here.

Tim

Carousel Image Quality
Trying to figure out how to make the images in my carousel not jump around so much. Does anybody know of an effect, file type, flash setting or anything else that can help smoooth this out?

Thanks fo the help.

if you want to see what im talking about go here
http://www.symbioticmeg.com

A Static Image To 3D Carousel
I did the fantastic 3D carousel tutorial and got it working properly. I'd like to put a statis picture in the middle of the carousel though, something that the items revolve around, so I'd need the items to go behind the image somehow. I imagine this can be accomplished by a mask but I have no idea how to mask the dynamically created items and now they just move on top of the middle image. Can someone help me with this?

Carousel Tut. Image Instead Of Text
Hi
I am trying to work with the carousel tutorial. It is possible to display text on the right when an icon is clicked. Is it possible to display an image instead of the text (reading from the Xml)?

Henk

Carousel - Foreground Image
What would be the best way to overlay an image on the carousel script. I'm trying to make the icons in the rear pass behind the overlayed image.

Here's an example of what's happening now when I simply place the image on it's own layer.

http://pmgroup.com/ready2go/_caro2/caro ... enter.html

Bug In The Attached Carousel Image Gallery
I need to fix the bug in a carousel based image gallery. I tried to figure it out but I couldn't.
Can anybody help me in this. I would be glad if somebody can explain what's going on in the action script

Carousel Image Gallery Scale
I finished my first design in flsh 8 using autoscript. It is a carousel gallery of 14 images rotating around.
I am very new to this area but i hava a knowledge on programming language.
What i want is when an image comes in the center of the monitor to scale
automatically, stay at the max scale for around 2 secs then scale back to its original size.
when an image is in the proccess of scaling, the other images should stop and wait until the image gets its original size.
actually the proccess goes like that:
1st image in screen center - scale for 2 secs - remain at max size for 2 sec - scale back to original size - carousel rotation -
2nd image - scale.....and so on
Actually what i am lookin for is in url http://www.greekmilitary.net/
I would be very gratefull if anyone can supply me with an appropriate actionscript code or any reference tutorials on this

Best Practices - Flash Image Carousel
When creating an image Carousel in flash for a web page, what are the best practices for loading quickly and changing images?

So for instance, on an ecommerce site, the home page often has a block created in flash in which 4-6 images are included with arrows or image numbers are displayed at the bottom as buttons. The images automatically change to the next ever x seconds unless the user selects an image number or the forward/back arrows.

Obviously, smaller the image the better. But how about best practices for things like:

Do you include one image in the block and then load dynamically the other images? Should all images be dynamically loaded if you want to change them on a daily/weekly basis? Any suggestions for making sure the images, especially the first one is loaded quickly?

Anyone have sample ~gpl code that demonstrates a block like this?

Two examples - kohls.com, jcrew.com

Image In Center Of Carousel Menu?
Hi, I recently built myself a carousel menu that works well, and was just wondering if it was possible to place a movieclip at it's center? the problem i've been having is that the icons at the back still seem to display overtop of the central movie clip, is there perhaps some way to set the depth of the movie clip I want in the center, so that the icons in front pass in front of the movie clip while the ones in back pass behind?


sorry if this is a bit confusing, i've been up all night trying to figure this out =/

thx in adv.

-wraith

Carousel - Image Instead Of Text Upon ROLLOVER
I watched all 3 Carousel tutorials but can not figure out how to use an image instead of dynamic text for the rollover bubble that appears above each icon. I found a few threads on this forum with similar questions but none were answered.

Thanks in advance for your help.

How Can I Load An External Image Using This Carousel Code
I found this beautiful carousel ported to actionscript 3.0.
http://board.flashkit.com/board/atta...7&d=1188450564

How can I change the code so I can click one of the carousel images and have it load the companion large image located in a different folder into a movieclip on stage.

I am a newbie to AS3 and struggling to learn how to do things.

Hopefully, someday I will be smart enough to contribute to the forum with intelligent submissions.

Can't Find A Simple Image Rotator Tutorial (not Carousel)
Hi,

I need to make a simple movie that rotates through images/swfs, in order, and has a small navigation to select any of the images in the rotator. Probably will only contain 3 - 6 images/swfs at a time. I have come across many pre-made flash image rotators, but I need something a bit more open that I can customize to my liking. I'm not necessarily looking for ease of use or automated. I know enough AS that I understand it, I just need help writing it sometimes. Kinda like when you can read a language, but you're not fluent in writing it. Anyway, I'm not asking for someone to write AS for me, but if anyone has something already on hand that they don't mind sharing or if you know of a tutorial that may help, I would appreciate it. Thanks.

Small Flash File Loading Into HTML - Weird Sporadic Loading
Hi,

I'm hoping someone can help...

I have a very small Flash file (less than 5k) loaded into a table cell of an HTML page .

On occasion (on Mac/IE) there is a flash of white appears in the table cell before the file starts. On other occasions only a portion of the file appears (while the rest of the cell is white). And at other times, none of the file appears (the table cell that it's in is appears as white).

The background of the flash file is orange (not white) so I guess that means that none of the Flash has loaded. Sometimes when I refresh the page, the problem resolves itself.

Does anyone know what the problem may be? Is there any sort of pre-loading JavaScript that would help, even though the file is very small to begin with?

Thanks for any help, I really appreciate it!

Weird Image Pop Up
http://www.comfortupholstery.com

go to the gallery page... then hit exit at the bottom. Do you see the images pop up? I can't even find those images on the server let alone find the as path. Any of the cuff ideas? My files are to big to zip. If Anyone thinks they might know what it is I'll take off the index page for a while so you can download the pages from the server.
Please any help is life or death important right now!
Thank you.

Loading An Swf File Into The Carousel
I'm currently trying to create a website using Lee's carousel script. My question is instead of the text that loads in the text field when clicking on an icon, how would I load an swf file instead? I know I have to change some of the action script around but I just dont know where to start.

Carousel Tut, Loading Swf Files
I am using Lee's carousel 3 tutorial.

I also would like to bring in an external swf into the carousel when an icon is clicked.

So far I have used the loadClip(URL, Target) actionscript.

The problem with that is ( besides being a noob ) that is brings up the defined swf file in the loadClip statement.

So I have created another tag in my xml file called "casey" and have identified different swf files.

My problem lies in the code, in the function released area.

I am not sure how to identify the swf from the xml to load in my holder box I created.

My work so far: casey is the instance name of the holder box that will load the swf files from xml.

I can load text as much as i can fit, but I cannot seem to figure out swf files.

Any help would greatly be appreciated. Sorry so long. Thanks,

//Code

import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;

var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 75;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.05;
var perspective:Number = 130;
var home:MovieClip = this;
theText._alpha = 0;
casey._alpha = 0;

var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;

var xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
{
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.content = nodes[i].attributes.content;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
}

function over()
{
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sover");
sou.start();

home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
home.tooltip._alpha = 100;
}

function out()
{
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
}

function released()
{

var mcl:MovieClipLoader = new MovieClipLoader()

//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sdown");
sou.start();

home.tooltip._alpha = 0;
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i];
t.xPos = t._x;
t.yPos = t._y;
t.theScale = t._xscale;
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;
if(t != this._parent)
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
}
else
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,200,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,320,1,true);
var tw5:Tween = new Tween(theText,"_alpha",Strong.easeOut,0,100,1,true);
var tw6:Tween = new Tween(casey,"_alpha",Strong.easeOut,0,100,1,true);
theText.text = t.content;
mcl.loadClip("test.swf",casey);

var s:Object = this;
tw.onMotionStopped = function()
{
s.onRelease = unReleased;
}
}
}
}

function unReleased()
{

//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sdown");
sou.start();

delete this.onRelease;
var tw:Tween = new Tween(theText,"_alpha",Strong.easeOut,100,0,0.5,true);
var tw:Tween = new Tween(casey,"_alpha",Strong.easeOut,100,0,0.5,true);
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i];
if(t != this._parent)
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
}
else
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
tw.onMotionStopped = function()
{
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i];
t.icon.onRollOver = Delegate.create(t.icon,over);
t.icon.onRollOut = Delegate.create(t.icon,out);
t.icon.onRelease = Delegate.create(t.icon,released);
t.onEnterFrame = mover;
}
}
}
}
}


function moveTip()
{
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
}

xml.load("icons.xml");

function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - perspective) /(centerY+radiusY-perspective);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
}

this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/2500;
}

Carousel Isn't Loading Movieclip.
I just finished writing a Carousel actionscript from the Carousel tutorial Part 1. The only problem is when I test movie, the screen is blank. Nothing shows up. I enabled the export to actionscript in the linkage but nothing happens.

Here the actionscript log:


var numOfItems:Number = 1;
var radiusX:Number = 250;
var radiusY:Number = 75;
var centerX:Number = Stage.width/2;
var centerY:Number = Stage.height/2;
var speed:Number = 0.05;

for (var i=0;i<numbOfItems;i++)
{
var t = this.attachMovie("item","item"+1,i+1);
t.angle =i * ((Math.PI*2)/numbOfItems);
t.onEnterFrame = mover;

}

function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
this.angle += this._parent.speed;
}



I can't find the problem.

Loading Thumbs Into Carousel
Hi everybody
I have followed the tutorials of Lee for Carousel-its great and it worked from the first time
But i have one question...
after you click on the rotating thumb you activate text specified for that particular thumb and hide the other thumbs, no i would like to put instead of the text some thumbs for that category, which you can click on and load a new file.swf
so i am a bit lost here
ANy suggestion ??????????????????
regs

Weird Image Distortion
Hi

I am trying to create a scrolling menu bar thing, that is going to have thumbnail images that when clicked they pop up into a bigger version. I am able to make it all, but have 60 photos that need to go on it, so the bar is really mong and I have just created one long image that I have brought into flash and made it so that it scrolls across by createting simple tweens that move it left to right and then the buttons are gotos and plays every few frames in the movie. When I publish the movie out I find that the bar, with the long image on it is all wack. It is all streaked as if it is moving really fast, when it is not even moving at all. I am not really sure what the problem is and why it is going all streaked. As everything is right. well so I think I have checked everything. Are there problems with the publishing out of these images when they are so big.

Sorry about being so long winded, just thought if you could help that you would need to know everything.

Hey thanks in advance.
Cheers

Mark

Weird Image Deally
Hi Guys,

Im doing a lil' pet project, and getting a wierd display.

I have created the images in photoshop with 'Scanlines'

They look fine as standalone images etc..

When i import to flash it appears as the images have a gap in the middle...

see for yourself

http://matt.icecave.com.au/future/demo.html

any ideas / suggestions?

cheers
Vamps

Weird Image Problem
Hello everyone

I've been working on this site navigation, and I've encountered a really weird image problem. I made all the animation in movieclips, so I had only one frame. When I view my animations, everything looks fine and my balloon looks like this:


That's how it's supposed to look. Now, I went and make another frame in front of this one with a loading movieclip. When I view my animation now, here's what I get:


The balloon looks all pixelized! All I added was a frame in front of it. Any ideas why this is happening? Even when there is nothing in the frame before the animation frame, it still happens. Please help!

Weird Image Problem
so i placed an image on the stage of my flash movie, a rather large jpeg image about 1.7mb and about 4200px wide. When i place it on the stage and align it to absolute left and top, and then press ctrl Enter to view it, it shows up fine. Now, when i center the image so that the center of the image is on the movie stage and the rest hangs off the edge of the stage, and then export the movie to test it, the image turns to a color spectrum. I've tried using jpeg and gif, does the same thing at 300dpi and 70dpi. Now, the weird part, as if that isn't weird enough. When i zoom in on the exported flash movie with the spectrum, if i zoom in two times, i can see the pic zoomed in twice. Is that weird or am i missing something???

Loading Images In Carousel From Directory
Hello,
I am using the load_images sample from Flash MX. It works great. I used the script, etc... in a different movie I created. The movie I created works with the jpg images provided by flash. When I swap the pictures for my own, -- same size, extension, etc... -- they do not work. The images are valued exactly the same. Anyone know what I am missing here?

Odisey

Help Loading Movie With Carousel Navigation?
Hi,

I've been going through websites, forums, and back and forth between files for hours trying to figure this out. My brain hurts and I am hoping someone can help me.

I have a carousel tutorial that I adapted a bit from another member here and by adjusting my own settings. Right now when you click on an item the icon moves to the bottom left corner and a text box pops up. What I would like to have happen is to not have the text box pop up and instead to load a movieClip in that area.

I know that I need to make an emptyMC and give it an instance name. I don't know how to connect all of this up in actionscript to make it work. I know that I need to add in a load function in my XML, but I'm not exactly sure how to write that out.

Believe it or not I can actually do SOME thing in flash, but I'm very new to working with XML and need some help. To make things worse I have to figure this out before Monday at noon or I actually will not graduate from college this semester and will fail my independent study course. So PLEASE...if anyone can help I would really appreciate it!

Here is my Flash code:

import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;

var numOfItems:Number;
var radiusX:Number = 125;
var radiusY:Number = 50;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.00;
var perspective:Number = 125;
var home:MovieClip = this;
theText._alpha = 0;

var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;

var xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for(var i=0;i<numOfItems;i++)
{
var t = home.attachMovie("item","item"+i,i+1);
t.angle = i * ((Math.PI*2)/numOfItems);
t.onEnterFrame = mover;
t.toolText = nodes[i].attributes.tooltip;
t.content = nodes[i].attributes.content;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.r.inner.loadMovie(nodes[i].attributes.image);
t.icon.back._visible = false;
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
}

function over()
{
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sover");
sou.start();

home.tooltip.tipText.text = this._parent.toolText;
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
home.tooltip._alpha = 100;
}

function out()
{
delete home.tooltip.onEnterFrame;
home.tooltip._alpha = 0;
}

function released()
{
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sdown");
sou.start();

home.tooltip._alpha = 0;
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i];
t.xPos = t._x;
t.yPos = t._y;
t.theScale = t._xscale;
delete t.icon.onRollOver;
delete t.icon.onRollOut;
delete t.icon.onRelease;
delete t.onEnterFrame;
if(t != this._parent)
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,tru e);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,tru e);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
}
else
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,t rue);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,t rue);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,110,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,520,1,true);
var tw5:Tween = new Tween(theText,"_alpha",Strong.easeOut,0,100,1,true );
theText.text = t.content;
var s:Object = this;
tw.onMotionStopped = function()
{
s.back._visible = true;
s.onRollOver = function()
{
s.back.gotoAndStop(5);
}
s.onRollOut = function()
{
s.back.gotoAndStop(1);
}
s.onRelease = unReleased;
}
}
}
}

function unReleased()
{
//BONUS Section
var sou:Sound = new Sound();
sou.attachSound("sdown");
sou.start();

delete this.onRelease;
var tw:Tween = new Tween(theText,"_alpha",Strong.easeOut,100,0,0.5,tr ue);
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i];
t.icon.back._visible = false;
if(t != this._parent)
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,tr ue);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,tr ue);
var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
}
else
{
var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1, true);
var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1, true);
var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
tw.onMotionStopped = function()
{
for(var i=0;i<numOfItems;i++)
{
var t:MovieClip = home["item"+i];
t.icon.onRollOver = Delegate.create(t.icon,over);
t.icon.onRollOut = Delegate.create(t.icon,out);
t.icon.onRelease = Delegate.create(t.icon,released);
t.onEnterFrame = mover;
}
}
}
}
}


function moveTip()
{
home.tooltip._x = this._parent._x;
home.tooltip._y = this._parent._y - this._parent._height/2;
}

xml.load("icons.xml");

function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = (this._y - perspective) /(centerY+radiusY-perspective);
this._xscale = this._yscale = s*100;
this.angle += this._parent.speed;
this.swapDepths(Math.round(this._xscale) + 100);
}

this.onMouseMove = function()
{
speed = (this._xmouse-centerX)/8000;
}



Here is the XML code:

<icons>

<icon image="3D_icon_coffeeSmaller.png" tooltip="3D Work" content="link to my gallery" />
<icon image="myArt_iconSmaller.png" tooltip="Fine Art" content="link to my gallery" />


</icons>

3D Carousel Loading A Bitmap; Need To Be A Movieclip
I have built a 3D carousel from various code I found over the web. The problem is it loads my xml images as bitmaps and directly to the stage. I need them to load into an empty movie clip so I can still have them as a jpg or swf and make them interactive. I was just getting a grasp on AS2 when they switched so I'm having a hard time switching. Any help would be appreciated!

I have attached my .fla and classes and .xml

Carousel Not Centered When Loading External Swf
Hi everyone...

My problem that is occuring is when I load an extrernal swf into my flash project the carousel loads out of place. I have a flash site that I am trying to load an external swf into and the swf has the carousel on it but everytime it loads it is to the bottom right instead of the center of the external loaded swf.

check out xtravatech.com there you will see that I have a menu that loads external swf but when i click on home or when it loads automatically the carousel is not centered in the externally loaded file.

Please help me because it is slowing down my production...

thanx in advance

External SWF Loading And Carousel Issues.
Well I love the gotoAndLearn() tutorials and have been using some of the things I learned for my own site. Lately I have tried to get a working carousel into my site which comes out nice. Now the issue I am having is when I load an extrernal swf file into my site.swf the carousel is not where it is suppose to be. Its location is not the same when I run the external home.swf by itself. When I view the home.swf by itself the carousel is exactly in the center but when I load it home.swf into my site.swf its location is down and to the right (not centered). Now is there a way I have to specify a dimension in my home.swf file so that it will stay centered or what else can I do to fix this problem.

Please help me. Thanks in advance. Andre :?

Carousel Loading Swf Buttons By XML Insted Of Png
I would like to load interactive animated swf buttons into the carousel insted of png files.

and I would like to do it in a versatile way so as that each swf loaded can have its own various states, not just a mouse over,hit and mouse out state as pre determined in the main actionscript.

like a button may have multiple target areas that trigger different character animations.

Anyone have any ideas on how to do this?

thanks!

Loading A External Swf File Like 3d Carousel ?
the problem is i dont't know
how to make a preloader to preload 3d carousel swf ("3d.swf")file .
because the "3d.swf" file size is much smaller than the PNG file ouside the "3d.swf" file.

Is there anyone have the same problem like me ?

save me...........!!!!!!!!!!!!!!!!!!!!!!!!!

thx!!!!!!!!!!!!!!

Carousel 3: Loading Jpg Into Movie Clip
Hi,

I've taken the v3 of the tutorial and added two elements: One is a dynamic headline (instance name "theHeadline") that sits above the paragraph of text that appears once an icon is clicked and moves into place. The other is an empty movie clip (instance name "pImage") that appears after an icon is clicked and displays an external JPG that is specific to the icon that was selected.

The headline loads just fine but I can't get the external JPG to load into the empty movie clip. I've also added a layer in the timeline called "image" above the others where the empty movie clip sits.

Any help is greatly appreciated.

Here's a sample of what I did to the XML doc:

Code:

<icon image="icon1.png" pImage="externalImage1.jpg" tooltip="Tooltip Text" headline="Test Headline" content="Lorem ipsum dolore duis autem sit amet nonummy dolor." />


And here is the ActionScript:

Code:

import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;

var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 75;
var centerX:Number = Stage.width / 2;
var centerY:Number = Stage.height / 2;
var speed:Number = 0.05;
var perspective:Number = 130;
var home:MovieClip = this;
theText._alpha = 0;
theHeadline._alpha = 0;

var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",10000);
tooltip._alpha = 0;

var pImage:MovieClip = this.attachMovie("pImage","pImage",20000);
pImage._alpha = 0;


var xml:XML = new XML();
xml.ignoreWhite = true;

xml.onLoad = function()
{
   var nodes = this.firstChild.childNodes;
   numOfItems = nodes.length;
   for(var i=0;i<numOfItems;i++)
   {
      var t = home.attachMovie("item","item"+i,i+1);
      t.angle = i * ((Math.PI*2)/numOfItems);
      t.onEnterFrame = mover;
      t.toolText = nodes[i].attributes.tooltip;
      t.content = nodes[i].attributes.content;
      t.headline = nodes[i].attributes.headline;
      t.pImage.loadMovie(nodes[i].attributes.pImage);
      t.icon.inner.loadMovie(nodes[i].attributes.image);
      t.r.inner.loadMovie(nodes[i].attributes.image);
      t.icon.onRollOver = over;
      t.icon.onRollOut = out;
      t.icon.onRelease = released;
   }
}

function over()
{
   //BONUS Section
   var sou:Sound = new Sound();
   sou.attachSound("sover");
   sou.start();
   
   home.tooltip.tipText.text = this._parent.toolText;
   home.tooltip._x = this._parent._x;
   home.tooltip._y = this._parent._y - this._parent._height/2;
   home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
   home.tooltip._alpha = 100;
}

function out()
{
   delete home.tooltip.onEnterFrame;
   home.tooltip._alpha = 0;
}

function released()
{
   //BONUS Section
   var sou:Sound = new Sound();
   sou.attachSound("sdown");
   sou.start();
   
   home.tooltip._alpha = 0;
   for(var i=0;i<numOfItems;i++)
   {
      var t:MovieClip = home["item"+i];
      t.xPos = t._x;
      t.yPos = t._y;
      t.theScale = t._xscale;
      delete t.icon.onRollOver;
      delete t.icon.onRollOut;
      delete t.icon.onRelease;
      delete t.onEnterFrame;
      if(t != this._parent)
      {
         var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
         var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
         var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
      }
      else
      {
         var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
         var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
         var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,200,1,true);
         var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,320,1,true);
         var tw5:Tween = new Tween(theText,"_alpha",Strong.easeOut,0,100,1,true);
         var tw6:Tween = new Tween(theHeadline,"_alpha",Strong.easeOut,0,100,1,true);
         var tw7:Tween = new Tween(pImage,"_alpha",Strong.easeOut,0,100,1,true);
         theText.text = t.content;
         theHeadline.text = t.headline;
         pImage.loadMovie(nodes[i].attributes.pImage);
         var s:Object = this;
         tw.onMotionStopped = function()
         {
            s.onRelease = unReleased;
         }
      }
   }
}

function unReleased()
{
   //BONUS Section
   var sou:Sound = new Sound();
   sou.attachSound("sdown");
   sou.start();
   
   delete this.onRelease;
   var tw:Tween = new Tween(theText,"_alpha",Strong.easeOut,100,0,0.5,true);
   var tw2:Tween = new Tween(theHeadline,"_alpha",Strong.easeOut,100,0,0.5,true);
   var tw3:Tween = new Tween(pImage,"_alpha",Strong.easeOut,100,0,0.5,true);
   for(var i=0;i<numOfItems;i++)
   {
      var t:MovieClip = home["item"+i];
      if(t != this._parent)
      {
         var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
         var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
         var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
      }
      else
      {
         var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
         var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
         var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
         var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
         tw.onMotionStopped = function()
         {
            for(var i=0;i<numOfItems;i++)
            {
               var t:MovieClip = home["item"+i];
               t.icon.onRollOver = Delegate.create(t.icon,over);
               t.icon.onRollOut = Delegate.create(t.icon,out);
               t.icon.onRelease = Delegate.create(t.icon,released);
               t.onEnterFrame = mover;
            }
         }
      }
   }
}


function moveTip()
{
   home.tooltip._x = this._parent._x;
   home.tooltip._y = this._parent._y - this._parent._height/2;
}

xml.load("icons.xml");

function mover()
{
   this._x = Math.cos(this.angle) * radiusX + centerX;
   this._y = Math.sin(this.angle) * radiusY + centerY;
   var s = (this._y - perspective) /(centerY+radiusY-perspective);
   this._xscale = this._yscale = s*100;
   this.angle += this._parent.speed;
   this.swapDepths(Math.round(this._xscale) + 100);
}

this.onMouseMove = function()
{
   speed = (this._xmouse-centerX)/2500;
}

Carousel XML Loading Wrong Data
I'm having a problem with the Carousel loading the xml data. The "theText" dynamic text field only loads the 2nd item in my XML document, no matter which icon I click.

I've even downloaded the exercise XML from Lee's exercise files and used it, but still the same result.

I suspect it has something to do with my ActionScript and not the XML data itself.

Anyone have any ideas?

Much thanks,
Randy

Loading External Swf Carousel Problem
my carousel is in an external swf. the carousel there are centered. but when i load this to my master fla, the image carousel is off screen and not centered. any help. http://porcupinedesigns.tz4.com

Loading External Swfs Into The 3d Carousel
hey ,

iam trying to load external swfs when i click on an icon in the carousel.

so when the icon has finished tweening into position, the external swf will begin to load.

I know i have to use the tw.onMotionStopped = function() part, but iam struggling to tell flash which external swf to load depending on which icon the user has clicked on.

I have 4 icons in my carousel and they are named accordingly;

icon1 = "video"

icon2 = "gallery"

icon3 = "resume"

icon4 = "contact"



Thanks in advance

Weird Image Scrolling Problem - Bug?
I'm creating a photo showcase where I have a series of images lined up end-to-end horizontally. To view them, you just move the mouse left or right to scroll them (kind of like a panorama).

What's happening is this:

Due to the size and number of pictures, the actual movie clip containing the pictures extends off the end of the Flash stage. When I render out the movie, all the pictures that don't fit on the stage come out as horizontal bars of color!

Here's the SWF file for this, so you can see what I mean:

http://www.wickedpenguin.com/shockwa...ry_authors.swf

Weird Order Of Image Appearance.
Hello People

I'm trying to create a flash website which has different movieclips as backgrounds which have transition effects and appear over each other if you click on a particular button.
So basically you start with background1 and then when you click on a button the movieclip associated with that button would then play and appear over the previous movieclip. After this the first movieclip would become invisible. I've upload the .swf and the .fla if you want to have a look. The problem comes in when you click on a button for a split second the new movie will appear over the old one and only then start playing. It's easy to see what I mean if you have a look at the swf file.

Can any of you clever people tell me what the hell is going on?

you can have a look here:

http://www.waterberg.co.za/temp/example.html

I've replaced the images with smaller ones in the fla to reduce download times.

Yours sincerely

Wouter

Help: Vector Image Published Weird
Howdy,
This is probaby a piece of cake for someone. I can't figure it out. Why in the hell is the "slider" (the tilted oval) of the volume slider .fla (attached file) distort when it is published?

Notice in the .fla the "slider" graphic is smooth and looks great. When I publish the movie the "slider" graphic deforms for some reason. What gives?

Thanks,
mperla

Weird Preloader And Image Loaded
Hi everyone..

just a quick question....why my preloader are not working as suppose to ..because when I test locally it works great...and then when I publish it to real using the actuall path..it seems the preloader not shown up and the image not show up as well..

here's are the as I'm using;


ActionScript Code:
stop();var getImagename:LoadVars = new LoadVars();getImagename.onLoad = function(){    loadtheImage(this.imgname);}getImagename.load("http://www.someactuallurl.com/getimage.php");Bar._xscale = 0;function loadtheImage(thestuff:String){        createEmptyMovieClip("container",this.getNextHighestDepth());        container.loadMovie("admin/img/"+thestuff);        temp = createEmptyMovieClip("tmp", this.getNextHighestDepth());        temp.onEnterFrame = function() {                var t = container.getBytesTotal();                var l = container.getBytesLoaded();                var percent = Math.round((l/t)*100);                trace(percent);                Bar._xscale = percent;                if (l == t && t>0) {                        Bar._xscale = 0;                        delete this.onEnterFrame;                }        };}


Any help or shoot would be appreciated..

Thanks

Problem In Loading Images From An Xml File In 3d Carousel
Hello,

I am a great follower of Lee and presently I am working on the 3D Carousel that Lee has built with the help of Papervision3d. I am trying to make it dynamic by calling the images from an xml file. I am successful in parsing the xml file but when I am trying to attach the dynamic images with BitmapFileMaterial, I am getting the error and it is not working. Below is my code:
======================================================================================================
Code:

package
{
   import flash.display.Stage;
   import flash.display.Sprite;
   import flash.display.Loader;
   import flash.net.URLLoader;
   import flash.net.URLRequest;
   
   import flash.events.Event;
   
   // Import Papervision Classes
   import org.papervision3d.scenes.*;
   import org.papervision3d.objects.*;
   import org.papervision3d.cameras.*;
   import org.papervision3d.materials.*;
   import caurina.transitions.*;
   
   public class Main extends Sprite
   {
      private var loader:URLLoader;
      private var myXML:XML;
      private var xmlPath:String = "images.xml";
      private var photos:Array = new Array();
      private var thumb:Loader;
      
      
      //Paparvision properties
      private var container:Sprite;
      private var radius:Number = 800;
      private var anglePer:Number;
      private var scene:MovieScene3D;
      private var cam:Camera3D;
      private var bfm:BitmapFileMaterial;
      //private var p:Plane;
      
      private var angleX:Number = anglePer;
       private var dest:Number = 1;
      
      public function Main()
      {
         loader = new URLLoader();
         loader.load(new URLRequest(xmlPath));
         loader.addEventListener(Event.COMPLETE, completeHandler);
         
         anglePer = (Math.PI*1) / photos.length;
         
         container = new Sprite();
         container.x = stage.stageWidth * 0.5;
         container.y = stage.stageHeight * 0.5;
         addChild(container);
         
         scene = new MovieScene3D(container);
         cam = new Camera3D();
         cam.zoom = 6;
         
         
      }
      
      private function completeHandler(e:Event):void
      {
         myXML = new XML(e.target.data);
         //trace(myXML);
         
         for(var i:int=0; i < myXML.img.length(); i++)
         {
            photos.push(myXML.img[i].@url);
            //trace(photos[i]);
         }
         
         init3d();
      }
      
      private function init3d():void
      {
         for(var j:int=0; j < photos.length; j++)
         {
            bfm = new BitmapFileMaterial(photos[j]);
            bfm.oneSide = false;
            bfm.smooth = true;
            
            //trace(photos[j]);
            
            var p:Plane = new Plane(bfm, 162, 230, 2, 2);
            p.x = Math.cos(j*anglePer) * radius;
            p.z = Math.sin(j*anglePer) * radius;
            p.rotationY = (-j*anglePer) * (180/Math.PI) + 270;
            scene.addChild(p);
         }
         
         this.addEventListener(Event.ENTER_FRAME, render);
      }
      
      private function render(e:Event):void
      {
         cam.x = Math.cos(angleX) * 1000;
         cam.z = Math.sin(angleX) * 1000;
         scene.renderCamera(cam);
       }
   }
}

======================================================================================================

Can anybody guide me where I am making the mistake. Thanks in advance for the help.

Regards,
Simanta

Yet Another Carousel Question... Loading Clips From Library
Hey all - I've gone through Lee's carousel tutorial and have a question. In the tutorial, Lee loads all of his icons by xml, and using png files. Is it possible to instead specify MovieClips to be loaded in place of the icons from the library?

Basically, I have a bunch of interactive icons, that i'd like to load individually into each instance of "item" (from the tutorial). I've tried a couple different ways - and nothing seems to work.

Is there any way to achieve this?

I'm assuming it'd be added into the loop:

Code:

for (var i=0;i<numOfItems;i++) {
    var t= this.attachMovie("item","item"+i,i+1);
    t.angle=i*((Math.PI*2)/numOfItems);
    t.onEnterFrame=mover;
}

PROBLEMS LOADING FLASH CAROUSEL INTO DREAMWEAVER
... dear all, I have loaded the SWF file of the carousel into dreamweaver, however, its just the black background that shows up when i test movie - I am sure that it's got something to do with the XML file (as it holds all the images) - PNG files have also been put in the dreamweaver root folder too. The carousel works fine in Flash (nothing wrong there) ... help much appreciated

Carousel Items Loading Twice & D/load Size
Hello everyone,

2 questions: -

1)
Why do the Carousel items from the XML file load twice? - You can see this if you enable "Simulate Download" when you test the movie.

For e.g. -

Loading: - "icon1.png"
Loading: - "icon1.png"
Loading: - "icon2.png"
Loading: - "icon2.png"
etc...

2)
I customized the Carousel to load high quality pictures - as you know, it's the easiest thing to do - just point the URL in the XML attributes to the new JPGs.

The problem I need to deal with is this - since they are high quality pics they are a bit large in size (over a 100k each). So for them to zoom up close I'm resizing them at runtime using _xscale and _yscale then tween them up to 100% once an item is clicked.

Resizing them at runtime means the pics look a bit weird while spinning - they obviously look ok once clicked and zoomed up.

Is there a way to have the carousel pointing to thumbnail-sized JPGs and then load the high quality pic once it's selected?

Any help would be greatly appreciated!

Thank you so much!

Text/image Scroller Is Acting Weird
Check this out:

http://www.gradlaunchusa.com/flash.html

Click "services" or "calendar" on the top navigation, then go to the page that loads up. If you click the scroll box (not the up/down arrow) it will follow your mouse around. I want it to release when the mouse button is released...any idea how to do this?

Here's a source file from one of the pages, maybe something is wrong in the script....I'm not sure what to change.

Any help is appreciated.

Freaking Weird Image Gallery Problem
Hey guys:

I don't know where to begin with words, so I'll just start out with a picture:

01.gif shows my layout for my 3-image gallery. Flash loads a complete list of photos from a php file (which works) and 3 images at a time would be selected, resized, and placed into one of the image boxes. All of the pictures do in fact load like they should, but the problem is the resizing.

02.gif shows what goes wrong. The first and last images remain their original (huge) size. For some reason, only the 2nd picture is resized properly when all 3 image boxes are enabled, and the first picture is resized properly when the third image box is enabled (if that makes sense).

It sounds like a timing issue, but i honestly am clueless. Any suggestions would be greatly appreciated!
-Matt

---source



Code:
//--- define the current gallery page
pageNum = 1;

//--- use PHP to load and calculate total number of pages
totalPages = Math.ceil(totalPics / 3);

back_btn.enabled = false;

forward_btn.onRelease = function () {
pageNum = pageNum+1;
container1.loadPic(0 + ((pageNum-1) * 3));
container2.loadPic(1 + ((pageNum-1) * 3));
container3.loadPic(2 + ((pageNum-1) * 3));

back_btn.enabled = true;
if (pageNum == totalPages) {
forward_btn.enabled = false;
}
}

back_btn.onRelease = function () {
pageNum = pageNum-1;
container1.loadPic(0 + ((pageNum-1) * 3));
container2.loadPic(1 + ((pageNum-1) * 3));
container3.loadPic(2 + ((pageNum-1) * 3));

forward_btn.enabled = true;
if (pageNum == 1) {
back_btn.enabled = false;
}
}

//--- load totalPics from PHP file
countMe = new LoadVars ()
countMe.load("loadpics.php?dummy="+Math.random())
countMe.onLoad = function (true) {
if (true) { totalPics = this.cnt; }
}

//--- load pic locations from XML file
var pArray = new Array();
var gallery_xml = new XML();
gallery_xml.ignoreWhite = true;
gallery_xml.onLoad = function(success) {
if (success) {
var gallery = this.firstChild;
for (var i = 0; i<gallery.childNodes.length; i++) {
pArray.push(gallery.childNodes[i].attributes.src);
}
container1.loadPic(0 + ((pageNum-1) * 3));
container2.loadPic(1 + ((pageNum-1) * 3));
container3.loadPic(2 + ((pageNum-1) * 3));
}
}
gallery_xml.load("photos.xml");

//--- load pic into Flash
MovieClip.prototype.loadPic = function(pic) {
this.loadMovie(pArray[pic]);
this._parent.onEnterFrame = function() {

var num = pic - (3 * (pageNum - 1));
var frame = this["container"+num];

var t = frame.getBytesTotal();
var l = frame.getBytesLoaded();
per = Math.round((l/t) * 100);

if (l == t && frame._width>0 && frame._height>0) {
while (frame._width>150 || frame._height>150) {
frame._width = frame._width * 0.9;
frame._height = frame._height * 0.9;
} delete this.onEnterframe;
}
};
};

Carousel Button Loading Imported Movie Instead Of Text?
is there a way for an imported movie clip to load instead of text when one of the carousel icons is clicked?

Copyright © 2005-08 www.BigResource.com, All rights reserved