Hi Anish,

     Here is the code i have  tried for Hslider for panel movement.. How i
want to interact with the function for canvas0 and canvas1. how to handls
this easing for panel movement..
give me sugestions..



   private function init():void
          {
            Canvas0.visible = true;
            Canvas1.visible = false;
          }

        private function myEasingFunction(t:Number, b:Number,
                    c:Number, d:Number):Number {
          Alert.show("Calling Easing function: ")
              if ((t /= d) < (1 / 2.75)) {
                  return c * (7.5625 * t * t) + b;
              }
              else if (t < (2 / 2.75)) {
                  return c * (7.5625 * (t-=(1.5/2.75)) * t + .75) + b;
              }
              else if (t < (2.5 / 2.75)) {
                  return c * (7.5625 * (t-=(2.25/2.75)) * t + .9375) + b;
              }
              else {
                  return c * (7.5625 * (t-=(2.625/2.75)) * t + .984375) + b;
              }
            };



         private function sliderChange(event:SliderEvent):void {
                //Alert.show("Called Slider")

              var currentSlider:Slider=Slider(event.currentTarget);
              var val:Number = Math.round(currentSlider.value);
                 if(val < 25)
                {
                    //Alert.show("Called Canvas0")
                   Canvas0.visible = true;
                   Canvas1.visible = false;

                }
                if((val > 25) && (val < 50))
                {
                    //Alert.show("Called Canvas1")
                    Canvas0.visible = false;
                    Canvas1.x =Canvas0.x;
                    Canvas1.visible = true;
                }
            }

        ]]>
    </mx:Script>

         <mx:Move id="moveLeftShow" xFrom="600" xTo="0" yTo="0"
duration="300" easingFunction="myEasingFunction"/>
         <mx:Move id="moveLeftHide" xFrom="0" xTo="-600" duration="300"
easingFunction="myEasingFunction"/>


Thanks for Help!


by
yuva


On Thu, Jul 30, 2009 at 12:15 AM, Anish Kumar <[email protected]>wrote:

>
> Sometime back I was experimenting with trying to move a set of 4
> panels based on the movement of control placed at the center of the 4
> panels. If you are setting the height n width of your vboxes as per
> your desired figures, then you can achieve it. May be you should look
> at this:-
> http://www.macoscoders.com/demo/navgizmo/
>
> Mail me if you need the source code of it.
>
> Happy coding,
> -Anish
>
> On Jul 29, 6:18 pm, yuva rani <[email protected]> wrote:
> >  Hi All,
> >
> >       Any one can help me regarding hslider with applying for container
> > movement. According the range 0-25-50-75-100, we have move 15 Vboxes with
> > some effects. In required area we need only 5vboxes having  with some
> > labels.
> >
> >      How to apply effects for  with hslider changes for container.. give
> me
> > some samples
> >   for reference links to help..  All labels calling same function for
> image
> > loading..
> >
> > regards
> > yuva
> >
> > On Wed, Jul 29, 2009 at 5:47 PM, [email protected] <
> >
> > [email protected]> wrote:
> >
> > > Not sure if I understand your question, can you elaborate?
> >
> > > Harish
> > > Evangelist, Adobe India
> >
> > > On Jul 29, 12:44 pm, yuva rani <[email protected]> wrote:
> > > > Hi All,
> >
> > > >      I'm beginner with Flex. Any one can help me regarding hslider
> with
> > > > panel movement (container) for size 500 & above to move it
> > > > accordingly..
> >
> > > > with regards,
> > > > Yuva
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to