Help with a carousel menu

Hi guys.
I have a download it a very good carousel menu,it works perfect but I been trying to insert a new effect in it, to make the objects of the menu a little bigger when they are in the front, and smallers when they are in the back, but all I can find its a property to change the size of the whole group.
Please, its there any way to do this?
PS: sorry for English.
This is the code.
import flash.filters.BlurFilter;
import flash.filters.BitmapFilterQuality;
import fl.transitions.easing.*;
import fl.transitions.*;
//CAROUSEL PARAMETERS
var radiusX:Number = stage.stageWidth/3.5;
var radiusY:Number = 50;
var centerX:Number = stage.stageWidth/2.3;
var centerY:Number = stage.stageHeight/1.5;
var fade = 1; //modify carousel image alpha [0,1]
var useFixedImageSize = 1;
var activeMc;
//change the speed
var speed:Number = 0.01;
var mouse_acc = 25000;
var container:MovieClip = new MovieClip(); //thumbs container
this.addChild(container);
//large Image variables
var imgM = new imgMcLarge();
var largeImage = imgM;
this.addChild(largeImage);
var largeImageText = largeImage.bar;
var loader = largeImage.preloadanim;
var largeImageX = 2;
var largeImageY = 2;
largeImage.visible = false;
largeImage.x = centerX-largeImage.width/2.2;
largeImage.y = 0;
//set xml data file
var xmlData = "images.xml";
var xmlObj: XMLDocument;
var nodes = new Array();
var mcArray:Array = new Array(); // store the Items to sort them according to their 'depth' - see sortBySize() function.
init(); //init call -> load config XML and create objects
function init() {
xmlObj = new XMLDocument();
xmlObj.ignoreWhite = true;
var loader:URLLoader = new URLLoader();
var request:URLRequest = new URLRequest(xmlData);
loader.load(request);
loader.addEventListener("complete", onComplete);
loader.addEventListener("ioError", onIOError);            
function onIOError(event:Event):void {
    trace("IOERROR (maybe XML file does not exit or have an incorrect name)");
function onComplete(event:Event):void
    var loader:URLLoader = event.target as URLLoader;
    if (loader != null)
     xmlObj.parseXML(loader.data);
     xmlHandler();
    else
        trace("Loader is not a URLLoader!");
function xmlHandler() {
addObjects();
startEngine();
function startEngine () {
container.addEventListener("enterFrame",startMovie);
var numItems;
var objects;
var idx;
function addObjects() { //add objects in the scene
objects = xmlObj.firstChild.childNodes;
numItems = objects.length;
for(var i=0; i<numItems; i++) {
    if (useFixedImageSize==1) source1 = "item"; //image mc linkage id from the library
      else source1 = "item_01";   
var sourceType1 = "library";
var regName1 = "p"+i; //the registration name used in Flash
var classDef = getDefinitionByName(source1);
var menuItemMc = new classDef;
menuItemMc.name = regName1;
container.addChild(menuItemMc);
var currMc = container.getChildByName(regName1);
var currMc0 = container.getChildByName("p0");
idx = container.getChildIndex(currMc0);
//trace(currMc.name+"  "+idx);
mcArray.push(currMc);
currMc.buttonMode = true;
currMc.useHandCursor = true;
currMc.mouseChildren = false;
      currMc["info"]=objects[i];
    currMc._load.alpha = fade;
    currMc.addEventListener("mouseOver",mouseRollOver);
    //currMc.addEventListener("mouseOut",mouseRollOut);
    currMc.addEventListener("mouseDown",mousePress);
currMc._angle = i*((Math.PI*2)/numItems);
function mouseRollOver(e:MouseEvent){
    //e.target._load.alpha = 1;
    TransitionManager.start(e.target, {type:Photo, direction:Transition.IN, duration:0.5, easing:Strong.easeOut});
    e.target.addEventListener("motionFinish",finishAnim);
function finishAnim(e:Event){
    e.target._load.alpha = fade;
function mouseRollOut(e:MouseEvent){
    e.target._load.alpha = fade;
function mousePress(e:MouseEvent) {
loadBigImage(e.target);
activeMc = e.target;
var releaseOutsideTarget;
var url5;
function loadBigImage(menuItemMc) {
    stage.addEventListener(MouseEvent.MOUSE_UP, releaseHandler);
      releaseOutsideTarget = menuItemMc;   
    if (largeImage.twOut!=undefined) {
   var has = largeImage.twOut.hasEventListener("motionFinish");
   if (has) largeImage.twOut.removeEventListener("motionFinish",largeImage.finishHandler);
  var url = menuItemMc["info"].attributes.image;
  largeImage["info"]=menuItemMc["info"];
  var request1 = new URLRequest(url);
var loader1 = new Loader();
  var mc1 = largeImage.getChildByName("imgBoxLarge");
  var numchild = mc1.numChildren;
     if (numchild) {
           var l1 = mc1.getChildAt(0);
           mc1.removeChild(l1);
           l1 = null;
  loader1.load(request1);  //start loading img/swf
mc1.addChild(loader1);
loader1.contentLoaderInfo.addEventListener("progress", largeImage.progress_loading);
loader1.contentLoaderInfo.addEventListener("complete", largeImage.finished_loading);
  loader.visible = true;
  largeImageText.text_field.text = menuItemMc["info"].attributes.description;
    function releaseHandler(e:MouseEvent) {
         stage.removeEventListener(MouseEvent.MOUSE_UP, releaseHandler);
         releaseOutsideTarget = null;   
function startMovie(e:Event) {
    //add objects in the scene
for (var i = 0; i<numItems; i++) {
    var regName1 = "p"+i;
    var currMc = container.getChildByName(regName1);
    currMc.x = Math.cos(currMc._angle)*radiusX+centerX;
    currMc.y = Math.sin(currMc._angle)*radiusY+centerY;
    var s:Number = currMc.y/(centerY+radiusY);
    currMc.scaleX = s*1;
    currMc.scaleY = s*1;
    currMc._angle += speed;
    url2 = currMc["info"].attributes.url;
    //trace(url2);
    var dpth = Math.round(currMc.scaleX)+120;
    sortBySize();
// set the display list index (depth) of the Items according to their
// scaleX property so that the bigger the Item, the higher the index (depth)
function sortBySize():void {
    // There isn't an Array.ASCENDING property so use DESCENDING and reverse()
    mcArray.sortOn("scaleX", Array.DESCENDING | Array.NUMERIC);
    mcArray.reverse();
    for(var i:uint = 0; i < mcArray.length; i++) {
       container.setChildIndex(mcArray[i], i+idx);
stage.addEventListener("mouseMove", rotateCar);
function rotateCar(e:MouseEvent)
speed = (this.mouseX - centerX) / mouse_acc;

that should change the size of each based on it's y property which should work if the objects in front are lower on your stage.  so, use:
var scaleMax:Number = 2; // or whatever you want for the max scale of objects in front
var scaleMin:Number = .5;  // or whatever you want  for the min scale for objects behind
//begin don't change this ////
paramsF(this,(centerY-radiusY)/(centerY+radiusY),scaleMin,1,scaleMax);
function paramsF(mc:MovieClip,x1:Number,y1:Number,x2:Number,y2:Number):void{
this.m = (y1-y2)/(x1-x2);
this.b = y1=this.m*x1;
function resizeF(s:Number):Number{
return this.m*s+this.b;
//end don't change////////////////////////////
then instead of your currMc.scaleX code, use:
currMc.scaleX =resizeF(s);
currMc.scaleY=resizeF(s);

Similar Messages

  • Help with a Spry Menu Bar

    I'm having trouble with a Spry Menu Bar not displaying
    correctly in Internet Explorer, while it displays fine in every
    other browser I have available. I've done some searching on these
    boards, but the queries I've found with the same type of problem
    each has a knowledgeable person editing the code for the
    poster...and I can't seem to make heads or tails of it.
    So, below is my link. What you'll see if viewed in Explorer
    is that the "Clinics" listing and the "Services & Specialties"
    listing are each on the same horizontal line, rather than vertical
    like the rest of the menu. If anyone can help me in correcting this
    problem, I'd be very appreciative.
    Thanks in advance.
    http://www.chambershospital.com/temp/about.html

    Hello,
    You might try removing all of the <div> tags you
    inserted in the menu.
    This can happen if you select text in design view and use the
    "align" icons
    in the properties window instead of using CSS to align
    things.
    For example:
    <li>
    <div align="left"><<****REMOVE THIS
    <a href="clinics.html"
    class="MenuBarItemSubmenu">Clinics</a>
    <ul>
    <li><a href="clinic.html">Chambers
    Clinic</a></li>
    <li><a href="clinic7.html">Scenic 7
    Clinic</a></li>
    </ul>
    </div><<*** REMOVE THIS
    </li>
    So it looks like this:
    <li><a href="clinics.html"
    class="MenuBarItemSubmenu">Clinics</a>
    <ul>
    <li><a href="clinic.html">Chambers
    Clinic</a></li>
    <li><a href="clinic7.html">Scenic 7
    Clinic</a></li>
    </ul>
    </li>
    Repeat for all the other <div align="left"> and
    </div> tags in the menu.
    Take care,
    Tim
    "Zim74" <[email protected]> wrote in message
    news:fv4vc0$r0t$[email protected]..
    > I'm having trouble with a Spry Menu Bar not displaying
    correctly in
    > Internet
    > Explorer, while it displays fine in every other browser
    I have available.
    > I've
    > done some searching on these boards, but the queries
    I've found with the
    > same
    > type of problem each has a knowledgeable person editing
    the code for the
    > poster...and I can't seem to make heads or tails of it.
    >
    > So, below is my link. What you'll see if viewed in
    Explorer is that the
    > "Clinics" listing and the "Services & Specialties"
    listing are each on the
    > same
    > horizontal line, rather than vertical like the rest of
    the menu. If
    > anyone can
    > help me in correcting this problem, I'd be very
    appreciative.
    >
    > Thanks in advance.
    >
    >
    http://www.chambershospital.com/temp/about.html
    >
    >

  • Help with spry tabbed menu bar

    Hi.
    I need help with the spry tabbed menu panel (horizontal) It
    works fine in dreamweaver ( pressing f12 ) but when i goto my
    website www.so-nouveau.com it puts it all over and not in boxes
    either just the writing.
    I ahve double checked all uploading is correct and files are
    located but it wont work.
    Here is what i did >
    new> html> 1 column elastic,centered. i have not
    changed any other settings at all. Do i need to change the doc type
    or css layout in the drop down menus before starting (doc
    type=xhtnl 1.0 transitional and layout css=add to head)
    I am still on cs3 , does this matter ? or is 4 easier ?
    any help out there guys is much appreciated but please bear
    in mind that i am not a web designer or pc expert at all , this is
    just me building my own site , until nowit has been an enjoyable
    experience but grrrrrr when it dont work
    Thanks
    Jay

    so-nouveau wrote:
    > Hi.
    > I need help with the spry tabbed menu panel (horizontal)
    It works fine in
    > dreamweaver ( pressing f12 ) but when i goto my website
    www.so-nouveau.com it
    > puts it all over and not in boxes either just the
    writing.
    Please post links directly to the page having an issue. I saw
    no tabs on the home page, but I noticed that there is a link on the
    bottom of the page to this page that has a Spry tab on it:
    http://www.so-nouveau.com/test%208.html
    > I ahve double checked all uploading is correct and files
    are located but it
    > wont work.
    That page refers to a Spry JavaScript file and a Spry CSS
    file, which should be at the following locations but are not
    present:
    http://www.so-nouveau.com/SpryAssets/SpryTabbedPanels.js
    http://www.so-nouveau.com/SpryAssets/SpryTabbedPanels.css
    Make sure you upload the SpryAssests folder and see where
    you're at after that.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • HELP with object carousel

    Hi,
    I need some help with the use of the DSM-CC object carousel.
    In my Xlet, I need to read a file (previsioni.TXT), that is in the package testo; this is the structure of my folder:
    \\mio; the first package
    \\ MyXlet.java
    \\ testo; package with the text
    \\ previsioni.TXT
    1. so I create un object carousel and then access the file with the java.io.File :
    try {
                   System.out.println("Requesting file");
                        DSMCCObject carouselFile = new DSMCCObject("testo/previsioni.TXT");
              carouselFile.synchronousLoad();
              FileInputStream inFile = new FileInputStream(carouselFile);
              //Construct a DataInputStream by using the
                   //FileInputStream in the constructor method.
              DataInputStream inData = new DataInputStream (inFile);
              //Invoke methods of DataInputStream to read data from the data source.
         String s = inData.readUTF();
         System.out.println(s);
              //Close the FilterInputStream.
         inData.close ();
                   catch (InvalidPathNameException e) {
                        System.out.println("Invalid path name!");
                   catch (IOException e){
                        System.out.println("Problem reading previsioni.txt ");
    but when I run this code Xletview write
    [XleTView]-INFO->loading Xlet... [mio.StatiXlet]
    [XleTView]-INFO->XLET started... [mio.StatiXlet]
    mio.StatiXlet : Inizializzazione avvenuta!
    mio.StatiXlet : Hello TV World
    Requesting file
    xjava.io.File -
    Problem reading previsioni.txt
    and so there is an IO execption. Can someone help me?
    2. then, when the file is in the string s, i would display this file; I try with the Htext:
    texts = new HText( s, 20, 20, 200, 300, new Font("Tiresias", Font.BOLD, 26), Color.black, Color.white, new HDefaultTextLayoutManager());
    but when I compile the code appear:
    StatiXlet.java:173: cannot resolve symbol
    symbol : variable s
    location: class mio.StatiXlet
    texts = new HText( s, 20, 20, 200, 300, new Font("Tiresi
    as", Font.BOLD, 26), Color.black, Color.white, new HDefaultTextLayoutManager());
    ^
    1 error
    Do you know how can I display this file?
    Thank you very much

    Hi beker,
    thank you so much for your help, but I have another question.
    I use your code and when I compile is OK, but when I run it in XletView it doesn't find the file previsioni.TXT and write this:
    [XleTView]-INFO->loading Xlet... [mio.StatiXlet]
    [XleTView]-INFO->XLET started... [mio.StatiXlet]
    mio.StatiXlet : Inizializzazione avvenuta!
    mio.StatiXlet : Hello TV World
    xjava.io.File - testo/previsioni.TXT
    java.io.FileNotFoundException: E:\Documenti\tirocinio\xlet esempi\testo\previsio
    ni.TXT (Impossibile trovare il percorso specificato)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:103)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at xjava.io.FileInputStream.<init>(Unknown Source)
    at xjava.io.FileInputStream.<init>(Unknown Source)
    at mio.StatiXlet.startXlet(StatiXlet.java:97)
    at net.beiker.xletview.xlet.XletManager.resumeRequest(Unknown Source)
    at net.beiker.xletview.xlet.XletManager.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:536)
    s=not read
    What does it mean? I'm sure that the path is right, what do you think?
    Thank you very much beiker for your help

  • I need help with the navigation menu please?

    I have been working my way through your six part printed instructions and I am styling the header and navigation menu.  The bullet points disappeared which was correct and the tabs moved to the right, as they should, but one tab sits underneath another tab and all tabs are covered up by my main heading.  This is dreamweaver CS6.
    It looks a bit of a mess!

    I have moved this to the main Dreamweaver forum, as the other forum is intended to deal with the Getting Started video tutorial.
    The best way to get help with layout problems is to upload the files to a website and post the URL in the forum. Someone can then look at the code, and identify the problem. Judging from your description, it sounds as though the Document window is narrow, which would result in the final menu tab dropping down to the next row. Try turning on Live view or previewing the page in a browser. Design view gives only an approximate idea of the final layout. Live view renders the page as it should look in a browser.

  • Help with pop-up menu --- please!

    I want to see if I can get this simple code working so that I can integrate the ideas into a larger application. But, I'm getting errors on this one! What am I missing or forgetting?
    public class example implements MouseInputListener,MouseMotionListener{
         JPopupMenu menu = new JPopupMenu();
         public static void main (String args[]) {
              Frame f = new Frame();
              {Window w = new Window(f);
              w.setSize(200,100);
              w.setVisible(true);
              w.setLocation(300,300);
              //New Red Window
              {Window w= new warningwindow (f);
              w.setSize(200,100);     //setSize is in a superclass
              w.setVisible(true);
              w.setLocation(370,370);}
              // Create and add a menu item
         JMenuItem item = new JMenuItem("Hi Kimberly!");
         addMouseListener(this); //ERROR WITH THIS LINE
         menu.add(item); //ERROR WITH THIS LINE ALSO
         // Set the component to show the popup menu
         public void mouseClicked (MouseEvent e) {
              if(e.isPopupTrigger()){
                   menu.show(e.getComponent(),e.getX(), e.getY());
         public void mouseReleased (MouseEvent e){
              if (e.isPopupTrigger()){
                   menu.show(e.getComponent(),e.getX(),e.getY());
         public void mouseExited (MouseEvent e){
         public void mouseMoved (MouseEvent e){
         public void mouseDragged (MouseEvent e){
         public void mousePressed (MouseEvent e){
         public void mouseEntered (MouseEvent e){
    }

    You're forgetting that we can't see your computer from here. Tell us what errors you are getting.

  • Need help with 3D carousel gallery rotation to a specific angle

    Hi,
    I am making a 3d gallery, that has a menu underneath it. When clicking to a menu link, the gallery will rotate itself to a certain angle (photo) connected with the menu link. I am using FlashAndMaths 3D cylindrical gallery scripts (XML Customizable 3D Cylindrical Photo Gallery in Flash) as the base (as I couldn't find any free or neither payed 3d galleries that would have a menu connected to the carousel!).
    The function to rotate a carousel of thumbnails is the following:
    public function doRotate(ang:Number):void {  
                if(isLoading || notReady){       
                        return;
                if(!this.contains(container)){
                    return;
                var i:int;
                 for(i=0;i<numCols;i++){
                   colsVec[i].rotationY+=ang;
                   colsVec[i].rotationY=colsVec[i].rotationY%360;
                   if((colsVec[i].rotationY>90+diffAng && colsVec[i].rotationY<270-diffAng) || (colsVec[i].rotationY<-(90+diffAng) && colsVec[i].rotationY>-(270-diffAng))){
                          if(container.contains(colsVec[i])){
                              container.removeChild(colsVec[i]);
                         } else {   
                                   if(!container.contains(colsVec[i])){
                                     container.addChild(colsVec[i]);
    This will rotate the carousel as an infinite loop. However - I need the function to stop at a certain angle e.g. 45% (and/or reset itself to 0%). Another option would be to stop the carousel at a certain thumbnail container.
    The function to create a carousel is here:
    thumbWidth=thumbsArray[0][0].width;
    thumbHeight=thumbsArray[0][0].height;
    colsVec=new Vector.<Column>();
    colHeight=thumbHeight*colLen+(colLen-1)*pxSpace;
    colWidth=thumbWidth;
    rad=galLoader.radius;
    angle=360/numCols;
    container=new Sprite();
    this.addChild(container);
    containerWidth=2*rad;
    vertAddOn=40;
    vertDrop=15;
    containerHeight=colHeight+vertAddOn;
    container.x=containerWidth/2;
    container.y=containerHeight/2+vertDrop;
    contMask=new Shape();
    this.addChild(contMask);
    contMask.x=container.x;
    contMask.y=container.y;
    prepContainer();
    diffAng=Math.round((Math.asin(rad/fL)*180/Math.PI)*1000)/1000; 
    for(i=0;i<numCols;i++){
    colsVec[i]= new Column(thumbsArray[i],pxSpace,rad);
    container.addChild(colsVec[i]);
    colsVec[i].y=0;
    colsVec[i].x=0; 
    colsVec[i].z=0;
    colsVec[i].rotationY=angle*i;
    if((colsVec[i].rotationY>90+diffAng && colsVec[i].rotationY<270-diffAng) || (colsVec[i].rotationY<-(90+diffAng) && colsVec[i].rotationY>-(270-diffAng))){
    if(container.contains(colsVec[i])){
    container.removeChild(colsVec[i]);
    } else {
    if(!container.contains(colsVec[i])){
    container.addChild(colsVec[i]);
    Could anyone help me as I'm out of ideas!

    Hi, well, unfortunately asking help from forums is my last option, there really isn't many people around anymore, who'd use Flash!
    Also, I couldn't find neither free or payed scripts or examples online, that could do this - so, it's just me and forums.
    I really do appreciate that you've tried to help me- I just need a bit clearer reference (as I'm just not really used to use AS), so that I could try to search and/or figure out how to solve that problem.
    By "call doRotate() and pass the difference between the current rotation and the desired rotation.", did you mean something like this:
    private function onEnter(e:Event):void {
    if (rotate){
    this.doRotate(1);
    if(    //so, here I should use something that would locate the desired position, so something like currentFrame or would you have any better ideas?
    // should I also add something like doRotate.stop(); here?
    this.removeEventlistener(Event.ENTER_FRAME,onEnter);
    Or am I going the wrong way?

  • Help with vertical spry menu bar submenu displaying incorrectly!

    I’m new to Dreamweaver and am learning as I go. I am having a problem with the vertical spry menu bar submenu in the Live View. When I scroll over the spry menu bar option that has a submenu, the submenu appears in the upper right hand corner of my screen. (My menu bar is going down the left hand side.) However, when I preview it in Internet Explorer it looks fine after I allow the Java Script to run or the Active X controls, which my browser usually automatically blocks. (The browser just displays a small message along the top and I click on it to allow it.) To get it to do this much, I had to play around with the CSS for the spry menu bar a little bit.
    Before, when I clicked on the Live View option, a small message ran along the top in Dreamweaver saying it couldn’t find the Flash Plugin and asked me to download the most recent FlashPlayer, which I did twice. It continued to say that and then I just closed that message that kept popping up, but I think that has something to do with the problem. I then researched that problem in the Spry Framework Help and Dreamweaver Help, but couldn’t find a solution that worked. (Someone had posted a link for downloading the Flash Player for Netscape Navigator, but that didn’t seem to do anything.)
    Please also note that I am using one of Dreamweaver’s pre-built layouts. I don’t know if that makes a difference with this problem.
    How do I fix this problem so that it displays correctly in the LiveView? And will the message that I get on my browser about allowing blocked content appear on other people’s computer when they open my website?

    IE is a big problem child among browsers.  Don't use it as your default browser.
    For best results, build your site to display & perform well in the web standards browsers like Firefox, Chrome, Safari & Opera.   If it works in one, it should work pretty much the same in all of them.
    After you're satisfied with how your site looks in the good browsers, then test in IE.  If needed, add hacks or conditional comments to make IE behave.  There are many web sites that discuss known bugs in IE and how to work around them.
    Lastly, the active X nag screens only appear locally.  Once deployed on the remote server, you won't see them.
    For better answers to your layout questions, we need to see your page.  Can you post a URL?
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Help with creating a menu in CSS

    I'm new to creating CSS, but as I'm a designing a huge
    website, I know that the CSS will help me out some.
    I'm using a CSS that came with Dreamweaver - a 2 column fixed
    with header and footer.
    My problem is, I need to insert a section for a menu bar
    between the header and the side bar/main content.
    If someone could help me out with where and what code to
    enter into my css, I would really appreciate it.
    Below is my CSS as it stands:

    Well they are menus from En not just text in Ae but I see what your saying what I was able to do is put a new background layer onto and use a couple of masks that changed shape with directional blur and added a gradient wipe; it seems to work well enough for me.  Thank you for the help.

  • Help with rotating circular menu

    Hi there. With help from a few tutorials, I've made a menu with 5 buttons that rotate around a central Clip. So far so good.
    Except I need to add a lightning that will point toward the center whenever a button is activated. Much like picture below:
    Everything I've tried so far has produced unexpected results
    So I would really appreciate any suggestions as to how I might fix my code (AS2) and get the lightning to position itself where it must be. Thanks!
    var rotX:Number = 290;
    var rotY:Number = 140;
    var Centre:Number = Stage.height/2;
    var vitesse:Number = 0.1;
    var sceneW:Number =Stage.width;
    var sceneH:Number = Stage.height;
    var nbI:Number=5;
    var angle:Number=1;
    var i:Number;
    var lightning:MovieClip = this.attachMovie("lightning", "lightning", 1000);
    lightning._alpha = 0;
    var videostopped:Boolean = false;
    for(i=0;i<nbI;i++)
       var button:MovieClip = this.attachMovie('Icone'+i,'Ic'+i,i);
       button.onRelease= onRelease;
       button.onRollOut = onRollOut;
       button.onRollOver = onRollOver;
       button._y = sceneH /2;
    //_____________________test
    function onRollOver():Void {
            //I want to add a "lightning" movieClip between the center and the button that is rolled over     
       lightning._alpha = 100;
       videostopped = true;
    function onRollOut():Void {
            //then remove it.
       lightning._alpha = 0;
       videostopped = false;
    onEnterFrame=function(){
         if (!videostopped) {
          if (angle > (2*Math.PI))
               angle = 0;
          }else{               
               for(i=0; i<nbI; i++){
                   //_____________________angle on x axis
                   this['Ic'+i]._x=rotX*Math.cos(angle+2*Math.PI*i/nbI)+sceneW/2;
                   //_____________________angle on y axis
                   this['Ic'+i]._y=rotY*Math.sin(angle+2*Math.PI*i/nbI)+sceneH/2;
                   //_____________________Speed
                        angle=angle+(sceneW/180)/sceneH*vitesse;

    I'll probably have to leave you to minds greater than mine for a solution to this.  To have things arranged with long rectangles and a flattened oval shaped path around the center as you show complicates matters in terms of how the _x/_y properties need to vary in order to not be hitting the inner or outer buttons.
    If it were mine to solve I would probably bend towards making the buttons circular shapes that follow a truly circular path around the center.  Then I would only have to manage the _rotation value of the lightning bolt which would have its registration at the center of the central button--essentially going around like the hand of a clock.

  • Help with vertical Spry menu

    I posted this in the general forum, but thought I'd repost
    here since this is more specific to Spry.
    I'm having issues in IE (6 & 7...surprise, surprise) with
    my vertical spry menu. It displays exactly the way I want it when I
    use Opera. I think it has to do with the whitespace:nowrap on the
    2nd level menu items, but I really don't know. I want the 2nd level
    menu to be different width than the 3rd level, so I have both
    levels set to auto width with nowrap.
    This is how it looks in IE 7:
    Menu
    in IE
    This is how it looks in Opera (correct):
    Menu
    in Opera
    Attached is my CSS as well. Let me know if you need the HTML,
    too.
    Thank you for helping!
    quote:
    @charset "UTF-8";
    /* SpryMenuBarVertical.css - Revision: Spry Preview Release
    1.4 */
    /* Copyright (c) 2006. Adobe Systems Incorporated. All rights
    reserved. */
    LAYOUT INFORMATION: describes box model, positioning,
    z-order
    /* The outermost container of the Menu Bar, a fixed width box
    with no margin or padding */
    ul.MenuBarVertical
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    cursor: default;
    width: 8em;
    /* Set the active Menu Bar with this class, currently setting
    z-index to accomodate IE rendering bug:
    http://therealcrisp.xs4all.nl/meuk/IE-zindexbug.html
    ul.MenuBarActive
    z-index: 1000;
    /* Menu item containers, position children relative to this
    container and are same fixed width as parent */
    ul.MenuBarVertical li
    margin: 0;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: relative;
    text-align: left;
    cursor: pointer;
    width: 8em;
    /* Submenus should appear slightly overlapping to the right
    (95%) and up (-5%) with a higher z-index, but they are initially
    off the left side of the screen (-1000em) */
    ul.MenuBarVertical ul
    margin: -5% 0 0 95%;
    padding: 0;
    list-style-type: none;
    font-size: 100%;
    position: absolute;
    z-index: 1020;
    cursor: default;
    width: auto;
    left: -1000em;
    top: 0;
    white-space: nowrap;
    /* Submenu that is showing with class designation
    MenuBarSubmenuVisible, we set left to 0 so it comes onto the screen
    ul.MenuBarVertical ul.MenuBarSubmenuVisible
    left: 0;
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarVertical ul li
    width: auto;
    white-space: nowrap;
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Outermost menu container has borders on all sides */
    ul.MenuBarVertical
    border: 1px solid #CCC;
    /* Submenu containers have borders on all sides */
    ul.MenuBarVertical ul
    border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text
    decoration */
    ul.MenuBarVertical a
    display: block;
    cursor: pointer;
    background-color: #EEE;
    padding: 0.5em 0.75em;
    color: #333;
    text-decoration: none;
    /* Menu items that have mouse over or focus have a blue
    background and white text */
    ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
    background-color: #33C;
    color: #FFF;
    /* Menu items that are open with submenus are set to
    MenuBarItemHover with a blue background and white text */
    ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical
    a.MenuBarItemSubmenuHover, ul.MenuBarVertical
    a.MenuBarSubmenuVisible
    background-color: #33C;
    color: #FFF;
    SUBMENU INDICATION: styles if there is a submenu under a
    given menu item
    /* Menu items that have a submenu have the class designation
    MenuBarItemSubmenu and are set to use a background image positioned
    on the far left (95%) and centered vertically (50%) */
    ul.MenuBarVertical a.MenuBarItemSubmenu
    background-image: url(SpryMenuBarRight.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    /* Menu items that are open with submenus have the class
    designation MenuBarItemSubmenuHover and are set to use a "hover"
    background image positioned on the far left (95%) and centered
    vertically (50%) */
    ul.MenuBarVertical a.MenuBarItemSubmenuHover
    background-image: url(SpryMenuBarRightHover.gif);
    background-repeat: no-repeat;
    background-position: 95% 50%;
    BROWSER HACKS: the hacks below should not be changed unless
    you are an expert
    /* HACK FOR IE: to make sure the sub menus show above form
    controls, we underlay each submenu with an iframe */
    ul.MenuBarVertical iframe
    position: absolute;
    z-index: 1010;
    /* HACK FOR IE: to stabilize appearance of menu items; the
    slash in float is to keep IE 5.0 from parsing */
    @media screen, projection
    ul.MenuBarVertical li.MenuBarItemIE
    display: inline;
    f\loat: left;
    background: #FFF;

    IE is a big problem child among browsers.  Don't use it as your default browser.
    For best results, build your site to display & perform well in the web standards browsers like Firefox, Chrome, Safari & Opera.   If it works in one, it should work pretty much the same in all of them.
    After you're satisfied with how your site looks in the good browsers, then test in IE.  If needed, add hacks or conditional comments to make IE behave.  There are many web sites that discuss known bugs in IE and how to work around them.
    Lastly, the active X nag screens only appear locally.  Once deployed on the remote server, you won't see them.
    For better answers to your layout questions, we need to see your page.  Can you post a URL?
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Help with my moving menu bar in my webpage

    Hello,
    First of all I am completley new to webdesign and have no clue what I am doing so you will probably see me posting alot in the upcomming weeks. Im trying to create a wepbage for our youthministry at church. The webpage is www.ccifuel.com. My first question is about the navigation menu on it. It seems to move from one place to another when the web browser expands and I would like it to stay in a fixed position over the image. How do I do that? My last question is that im trying to creat a form to collect email addresses to start a newsletter in the box labeled "Join our mailing list!" but when I try to enter a spry validation text field it says, "You cannot insert this widget into an editable region..." and so on. Any idea how to make that area locked so i can insert a form there or would there be a better way to do this? thanks for all the help in advance!

    First of all I am completley new to webdesign and have no clue what I am doing so you will probably see me posting alot in the upcomming weeks.
    In that case, you really should  work your way through some tutorials first.  These aren't hard and they'll give you basic skills to work with    X/HTML & CSS.
    Start here:
    HTML & CSS Tutorials - http://w3schools.com/
    My first question is about the navigation menu on it. It seems to move from one place to another when the web browser expands and I would like it to stay in a fixed position over the image.
    Why  do APDivs move?
    http://forums.adobe.com/message/2181263#2181263
    Your best course of action is to build your HTML content so that it flows naturally from top of page to bottom.  Then use CSS default positioning (which is no positioning at all) along with floats, margins and padding to align  elements on  page.
    From  Tables to CSS Web Design Part 1 -
    http://www.adobe.com/devnet/dreamweaver/articles/table_to_css_pt1.html
    From   Tables to CSS Web Design Part 2 -
    http://www.adobe.com/devnet/dreamweaver/articles/table_to_css_pt2.html
    Best of luck,
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Help with Scne Selection menu

    I am putting a full length feature together and need to have scene selections. I noticed on all (or most) DVDs it seems to be one menu(I may be wrong) with scene numbers 1-4, 5-8, etc. When you click on thes numbers the menu BG stays the same but the pictures change according to your chapter selection. I can't figure out how this is done. It may be 3 similar menus in their own VTs.
    I also need to know how after the scene you seleced has played it continues the movie from that point to the end. Is this done by just not setting an "End Jump"
    If anyone can help I would appreciate it.
    Thanks
    Jeff
    G4 DP 1 GIG G4 laptop 1.25, MBP 2.0 1 GIG   Mac OS X (10.4.8)  

    It may be 3 similar menus
    Usually done this way - try to put all the menus in
    the same VTS with the track (in DVD SP 4 this feature
    available) will help a bit
    I also need to know how after the scene you
    seleced has played it continues the movie from that
    point to the end. Is this done by just not setting an
    "End Jump"
    Right do not set any end jumps for the markers, just
    point to the marker and it will play through
    If you only want to play a section then return to
    menu, use stories, one for each section, then one for
    play all
    http://www.dvdstepbystep.com/stories_details.php
    http://www.dvdstepbystep.com/passelections.php
    Also (and I just saw this was you and I discussing in
    the thread, but figured I would leave the link up
    just in case) some of the story info
    http://discussions.apple.com/thread.jspa?messageID=324
    3143&#3243143
    Thanks Drew,
    What I am understanding is I will make a story from the feature track which I will then drag into the main video title set and from this make all my chapters. Is this right?
    Jeff
    G4 DP 1 GIG G4 laptop 1.25, MBP 2.0 1 GIG   Mac OS X (10.4.8)  

  • Help with a basic menu

    All I would like to do a simple horizontal menu , like you get in any application
    i.e you click or hover on the menu and the dropdowns appear
    I have tried using the DHTML Menu with sublist in theme 13
    and it gvies me a menu header and a little arrow next to it which you click to activate the drop down
    the menu header behaves like a url but doesn't go anywhere , all I want is a simple menu
    I have created a menu with a 3rd party menu creator , but i want to use authorization within the apex menu
    also i tried adding it to my page 0 so it would be rendered on every page and it didn't work
    any help greatly appreciated
    Cheers
    Chris

    Tried the code and I think we are nearly there, but there are
    two small problems,
    1. I need one the first button to be down at the start
    2. When I click one of the buttons an error is thrown up as
    follows
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at Test_fla::MainTimeline/onButtonClicked()
    The code now looks like this:

  • Need help with pop-up menu and applied Rules

    I'm working on a spreadsheet that calculates my profit and losses. I drive a big rig so it needs to keep track of a lot of variables so I know if I'm going to make money on a run or lose money.
    I get fuel discounts of various amounts depending on which vendor I fuel at.
    I went to a section of the sheet and did a pop-up menu that contains the vendor names.
    In the trip section I have cost of fuel per gallon, gallons purchased, total fuel cost, cost minus fuel surcharge.
    What I would like to do is apply a rule to cost per gallon box (H7) that takes a variable from the pop-up menu (B40).
    So if H7 has $2.58 entered as a cost and B40 has pilot selected then $0.050 will automatically be deducted from the $2.58. This way I will have a history of where I fuel, the deduction is made automatically, and I have a history of fuel prices in a certain region.
    If anyone looks at this and sees a simpler way of figuring this calculation please make the suggestion. I want to keep this sheet as small and hassle free as possible.
    I have 3 fuel stops per trip with totals that are connected to other areas. Once I get all of this done I will be adding a chart for easy comparison and long range simple tracking to see where improvements can be made and costs are going.
    Thanks in advance all help will be appreciated.
    Message was edited by: Hwoodwriter for clarification.

    The IF Lookup table worked. Did a little modification by placing the table in another part of the chart then hiding that part.
    I tried doing the discount as a negative but got a negative total which had a negative affect on my total trip income.
    Here is how it works in it's final version.
    Gallons on board minus gallons required for trip.
    Cost per gallon (retail) multiplied by gallons purchased.
    Fuel cost equals (Gallons purchased multiplied by Retail gallon price) minus ("IfLookup" multiplied by Gallons purchased)
    Fuel Cost Minus Fuel Surcharge (the actual price I pay, which includes all my savings) equals (Retail Gallon Cost minus Fuel Surcharge minus "IfLookup") multiplied by Gallons Purchased.
    Some of my trips take up to 3 fuel stops. So this helps me keep track of each fuel stop and all savings per trip.
    I now have where I fueled, the retail price, with discount and surcharge applied. A few keystrokes and I know if a trip is going to be profitable or a loss for me.
    Thank you for the help. I now have what I need at my fingertips to make my job more effective.
    Thanks again.

Maybe you are looking for