Flex :: Moving More Than One Divider At A Time In HDividedBox

Mar 22, 2010

I'm trying to have a minimap display with a draggable viewport below a chart. I essentially have this to control the viewport of the chart:

<mx:annotationElements>
<mx:HDividedBox id="dividedBox" horizontalScrollPolicy="off" width="100%" height="100%" liveDragging="true" borderSides="bottom top">

[Code].....

Problem is, only one divider actually moves at a time. I found that if I set a timeout of about 50ms before moving the next divider that both dividers move. However, this seems like a rather awkward way to approach this and is error prone.

Anyone know if it's possible to move two dividers in a HDividedBox simultaneously or should I be taking another approach?

View 1 Replies


Similar Posts:


Flex :: Decrease Width Of HDividedBox Divider Bar Length In It?

Sep 21, 2010

How we can lessen the length of Dividing bar between two components. like in this example i want the length only of two pixel.

View 1 Replies

Flex :: Prevent Dragging Of A HDividedBox's Divider Based On A Condition

Feb 23, 2010

I'd love to be able to prevent dragging of a HDividedBox's divider based on a condition. for example:

[Code]...

View 3 Replies

Flex :: Is Mx.containers.HDividedBox Deprecated ?

Aug 30, 2011

Is mx.containers.HDividedBox deprecated by some spark container in Flex 4.5? I'm new to Flex programming and can't find any spark replacement for it.I want to have 2 Lists separated by movable vertical bar.

View 1 Replies

Flex :: HDividedBox Accordion List Resize?

Sep 15, 2011

I'd to use a HDividedBox and I have resize problem.Indeed, when I reduce the width of accordion component, the list is not reduce.Find below my code

<mx:HDividedBox width="100%"
height="100%"
color="0x323232">

[code].....

View 1 Replies

Flex :: Set The Initial Ration Of The Size Of Child Elements Of A Hdividedbox?

Sep 9, 2011

I have a Hdividedbox, which has three child elements.

I want to set the initial ration of sizes, such that the first one is 30%, the second is 40% & the third is 30% of the Hdividedbox's width.

View 2 Replies

Flex :: Mouseover - HDividedBox Flicker With LiveDragging Enabled *only* When Mouse Is Over Component?

Apr 15, 2011

I've noticed that an "out of the box" HDividedBox has some serious flickering issues when liveDragging is enabled, but only when the pointer is over the contents of the DividedBox while dragging. If you grab the BoxDivider and move the pointer off the component while dragging, the flicker goes away and the component renders properly.

I have tested this with both my customized component and an extremely basic HDividedBox implementation with Group, SkinnableContainer, and BoxContainer children as well as nested groups with clipping.All types of children exhibit the same behavior.

<mx:HDividedBox width="500" height="200" liveDragging="true">
<s:SkinnableContainer minWidth="0" backgroundColor="green" percentHeight="100"/>
<s:SkinnableContainer minWidth="0" backgroundColor="blue" percentHeight="100"/>[code3].....

View 1 Replies

Flash :: Compilation - Compile Time Jumps When Moving From Flex Build

Oct 15, 2010

I moved from using the Flex Builder 3 IDE to Flash Builder a couple weeks ago and have noticed a ridiculous jump in compile times with the same project. It almost seems like every time I build it does a clean build. The project I am working with is pretty big, but when it takes more than 4 mins to build, something is wrong. I tried adding more memory to eclipse and all the tricks I could find on the web but the compile time never really changed. I am running under Windows 7 32bit, and I get the same performance from the plugin and stand alone version of the IDE.

View 2 Replies

ActionScript 3.0 :: "TweenEvent.MOTION_START" - Start Moving The Second Movie Clip At The Same Time When The 1st Starts Moving

Nov 28, 2010

I have some simple script that has 2 "movie clips". What I want to do is to start moving the second movie clip at the same time when the 1st starts moving. (both start moving at the same time) I tried the following script but it never works:

[Code]...

View 3 Replies

ActionScript 3.0 :: Dynamically Add Divider Between Horizontal Text?

Jun 11, 2009

I have some text fields that are evenly horizontally placed side by side. I have that going good. What's killing me is, I need to put a divider in between the text as well. I can't seem to figure out how to do that. I'm trying to accomplish something like what you see below:

Code:
Home | About | Some Other Link | One Other Link

Code:
function initFooterNav () {
for (var a:Number = 0; a < 4; a++) {
var footer_div:FooterDivider = new FooterDivider();

[Code]....

View 3 Replies

IDE :: Moving Frames In Time With Audio?

Sep 12, 2009

I'm putting together book in Flash. The audio starts with frame 2 but the naritive continues on frame 3 and 4. I can code a "next" button like so:

Code:
on (release) {
gotoAndStop(3);

[code].....

View 1 Replies

ActionScript 3.0 :: Moving Car At Time / Date For 11 Hours

Feb 15, 2011

I'm making a timeline with a moving car. It has to go from left to right in about 11 hours. I got this code and the car is moving from left to right:

[Code]...

But everytime I refresh my page the car is at the begin again. So I have to attach it to a Timer/date class to it so it stops at a certain point / time and date.

View 20 Replies

ActionScript 3.0 :: Bug With Numbers And Moving A Simple MC Over Time?

May 23, 2011

This has been destroying my noggin for hours now. I have an MC within an MC that I want to move from left to right, starting at 6.5x and needing to end at its width +6.5c (so 494.5x every time). Depending on the TOTALSECONDS I put in, it changes every time. It is always off, never perfect, and it is boggling my mind. Here is my code.

Code:

TOTALSECONDS = 90; // you can make this any number
var pMove = (progressBar.blackBar.width + 6.5) / (TOTALSECONDS) /8;
progBarMovement = Math.round(pMove*1000)/1000;

[Code]....

progresBar.blackBar.width is equal to 488. Add 6.5 to it, and we have 494.5. Regardless of how many TOTALSECONDS I use, this bar needs to move across the screen from left to right perfectly until it reaches 494.5, which should equal the "total" found in the code. It works for some numbers, doesn't for others. It is like numbers are being lost in transit. If I set the TOTALSECONDS to 10, it works perfectly. If I set the TOTALSECONDS to 90, it ends up at 476x rather than 495x where it needs to be. The longer the time, the worse it gets.

This should work flawlessly each and every time. This could not get any simpler, yet it is not working. Simple simple math and yet it doesn't want to work. I have to be missing something. Maybe the .x coords can't move on certain decimal digits, so those are being lost?

View 3 Replies

ActionScript 1/2 :: Moving 2 Different MovieClips At Same Time OnPress Function

Jun 17, 2010

I am using the following code to simulate a volume control bar filling on vol+ and unfilling on vol-. The dragger is a mask that causes the fill to appear and disappear when the mouse is pressed and dragged on the volume controller. It works well, but I would like to add a "switch" that moves at the same time and in the same location as the fill, but on top of it... I created the movieClip for the switch and tried all kinds of variations to the following code with its instance in the code, but cant seem to get it working... below is the code which works with just the mask filling / unfilling.

this.ratio = 0;dragger.onPress = function() {this.startDrag(true, 0, 0, line._width, 0);
this.onEnterFrame = function() {
ratio = Math.round(this._x*100/line._width);
_root.volume = ratio; }; };
dragger.onRelease = dragger.onRelease=stopDrag;

View 3 Replies

Flash CS5 - Moving Object Around In Circle One Degree At A Time

Aug 2, 2011

I have an object called point that I can move around the screen with my mouse. This object has a vector mapped through it (_v1) using the center of the stage and "point"s x,y location in order to draw the vector (note all of this is working fine). My problem is occurring when I set up was a button that simply sets a value to true if you press it. The idea behind this button is that when pressed, whatever location "point" is at, it will move 1 degree clockwise in a circle around the center of the stage (this is all happening in the frameHandler so I can keep clicking the button to make it continue around the stage).

The code I am using is based in an if statement listed below:
if(clockwisePressed) {
var v1angle:Number = _v1.angle;
v1angle++; //increase the angle by 1 degree
if(v1angle>180) {
v1angle -= 360; }
[Code] .....

So what is happening here is that clockwisePressed has been set to true so this fires off. My vector (_v1) is set up to tell me the angle (already converted from radians to degrees) but it's a read-only value. So I assign it (_v1.angle) to v1angle so I can mess with it and increase it by 1 so I'm moving clockwise around the center of the stage. Then I just check to make sure that it falls into a range between -180 and 180 (if I trace _v1.angle around the stage, 0 degrees is to the left, 90 degrees is straight up, 180 degrees is to the right, and -90 is straight down). Now using the formula I derived from this thread but converted to work with 0 degrees pointing to the left and the value for Y going up the further down the stage you go, I came up with

x = centerX - radius * cos(angle)
y = centerY - radius * sin(angle)

Now when I make a sample chart on paper and use these values on my calculator, this works like a charm. If I plug in an angle, the radius, and center I get a point right on my circle I draw on a sheet of graph paper. However, when I actually try this in flash, the "point" jumps all over the stage. (Note that _v1.m is just the magnitude of the vector between the center of the stage and "point" which is the same as the radius). So I trace everything and the values for cos and sin don't seem to be coming out right. For example, if my angle is -1.9581 and I take the cos of that on my calculator I get something along the lines of 0.9994 but flash traces Math.cos(angle) to be -0.3777. Isn't using Math.cos(-1.9581) the same as putting -1.9581 into your calculator and hitting cos?

Below is the corrected code that works:
if(clockwisePressed) {
var v1RadAngle:Number = Math.atan2(_v1.vy, _v1.vx); //get angle in radians
v1RadAngle += 0.0174; //increase the angle by ~1 degree more or less
//Now just move the crosshair and get it ready to be redrawn
point.x = centerX - _v1.m * Math.cos(v1RadAngle); //_v1.m = radius
point.y = centerY - _v1.m * Math.sin(v1RadAngle);
clockwisePressed = false; //remove button pressed boolean
}

View 1 Replies

ActionScript 3.0 :: Playing Audio And Moving Frames In Time?

Sep 14, 2009

What I'm looking to happen is that on frame 2 I want audio track 1 to play and:

after 1 min 45s move to frame 3
after 1 min 51s move to frame 4
after 2 min 47s move to frame 5
after 3 min 15s move to frame 6

How would I code this or what would be the easiest way to do it??

View 6 Replies

ActionScript 2.0 :: Make Random Moving Object Disappear After A Certain Time?

Feb 26, 2006

I've just finished using this bit of simple code to get an object to move around randomly. What I want to do is try and get it to disapear or move off the stage after say a minute (with a countdown clock in the corner starting from a minute and counting down).

View 1 Replies

ActionScript 2.0 :: Flash Actions - Get The Picture Menu To Keep Moving And Not Just For The First Time When Click On The Arrows

Jul 25, 2010

I have got the banner on this webpage [URL] made from a guy in India but i want to add an additional feature. When i click the left or right button multiple times how do i get the picture menu to keep moving and not just for the first time i click on the arrows.. Is there some action script that i can include??

View 3 Replies

Convert UTC Time To Date Time Format In Flex?

Jul 1, 2011

How to convert UTC time into date time format in flex. I am using sdk 3.5. for example I have current date time in UTC format as 1309522586000 (milliseconds) and I want to convert it to friday jul 1 2011. How can I do this??

View 1 Replies

Flex :: Moving Down/up Row Of S:DataGrid?

Jul 25, 2011

Recently started Flex. Had some practice on how to use services in PHP that Flex client asks via zend AMF. As a part of my project I am planning to load data from Mysql using PHP (via service) and display it in a s:DataGrid.For this purposes I'm keen on knowing is it possible to move up/down datagrid row using ActionScript 3.0 depending on, say,specific row[r1][c1]'s value.Think that OnTimer event datagrid's content will be updated and sorted by column Time and dislplayed by ascending order, whenever i update the time the row which it's column's value was modified should move down or up using Animation like this example from Adobe Center

View 1 Replies

ActionScript 3.0 :: Making Beat Em Up - Character Stop Moving If The Attack Is Pressed And Once It Is Released Start Moving Again?

Nov 2, 2010

im currently making an "AS3 beat em up" ala streets of rage or double dragon.Currently i have my character moving and a few animations done and i am trying to figure out how to make attacks work.I have some "basic" animation for his attack, but im not sure how to get it to work correctley.What happens is, if you press control (the attack button) whilst the character is walking he just keeps moving and is stopped on the attack frame.I want the character to stop moving if the attack is pressed and once it is released start moving again.

hero.gotoAndStop('still');
var left:Boolean = false;
var right:Boolean = false;[code].......

View 2 Replies

Actionscript 3 :: Moving From Flex 3.2 To Flex 3.5?

Apr 18, 2011

what changes I need to make?

What can be the possible issues in upgrading ? Benefits of upgrading from flex 3.2 to 3.5.

View 2 Replies

Flex :: Moving Canvases Between Several Ui Elements?

Mar 1, 2010

I need to animate a lable movement between 2 canvases...The mxml example of the code is:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="main()" frameRate="1">

<mx:Script>[code].....

Currently the problem is that the label actually do not leave borders of the first canvas (I see scrollbars instead of it).I think this is related to globalToLocal conversion problems, but do not understand how to use it.Also another question is how to animate the movement corretly, because move function performs movement without any visible action.

View 1 Replies

Flex :: Moving TitleWindow Application In Air

Sep 20, 2011

I have problem. I'd like to make dragable am Air TitleWindow application only by titlebar/header. I have this code, but its dragable everywhere.

[Code]...

View 1 Replies

ActionScript 1/2 :: Associate Buttons With A Moving Moving Clip?

Jan 30, 2012

what i have is a tween on a movie clip of a popcorn kernel on one layer and a tween on a button on another layer to follow the movie clip. i want to be able to roll over the kernel and make it "pop". i changed my over on the button to popped corn (this works) but i want it to stay popped for the rest of the tween.

View 11 Replies

Flex :: Detection And Moving Objects After Collision?

May 10, 2011

I am creating a scheduling application that shows projects (wrapped within a canvas) on a 2 week calendar timeline.If the user decides to move a project over by a day, i need to check and see if the moving project would then overlap with any other existing projects. If it does, one of the two projects would need to move down the screen along the y axis until the two projects no longer overlap.I've created a function that loops through a repeater item which is used to create the projects... the end result of this function is an arrayCollection that holds:

0. the id number within the repeater

1. the project title

2. x coordinate

3. y coordinate

4. the width of the project

5. the height of the project

I have also created a function that takes the two objects within the array collection and determines if they're overlapping.I can not, however, figure out a working loop that goes through the array collection, compares each item within it, checks to see if they overlap, moves the project if they do overlap, and then continues onto the next project.

Also, I need to make sure that moving one project will not make it overlap with another.I ended up having to reset each elements y value to 0 each time any project is moved and then re-evaluating whether or not they collide.

View 1 Replies

Flex :: Reduce The Time Request Between Producer (Java) And Consumer (Flex) With JMS Message?

Jul 12, 2010

I have implemented application client-server with spring blazeDs message services using JMS message destination. The idea is a producer declared in Java send message using activeMQ and consumer declared in Flex receives them. I have configured the AMFChannel with a polling interval 0, but I have seen when the consumer subscribes to the destination in Flex, the time request can be of up to 3 seconds.

[Code]....

View 1 Replies

Flex :: Preloader - Call Flex InitComplete At A Specific Time?

May 31, 2010

Below is the overriden on complete function for a preloader in Flex.

private function initComplete(e:Event):void
{
//dispatchEvent(new Event(Event.COMPLETE));
cp.status.text="Configuring... Please Wait";
}

What I want to do is when the app has finsihed loading I want to change the preloaders text to "configuring".Then I want to go and do a bunch of setup stuff in my code.Once I've done all the setup I wanted how can I get the Preloader to dispatch its Event.complete from else where in my code?I tried Application.application.preloader but it comes up null.So I guess my question really is how to access a preloader from anywhere in my application. Would a better approach be to have all setup classes as members of my preloader class?

View 2 Replies

Flex :: Moving SWC To Libs Folder Breaks Project

Apr 20, 2010

I have a swc(degrafa) that I have been referencing externally in another folder on my computer. When I tried to move the swc to the libs folder I was no longer able to access the swc from my application.

View 2 Replies

Flex :: Moving Single Rows In A DataGrid In Flashbuilder4?

Jan 16, 2011

Is it possible to have "Move-Up / Move-Down" buttons that can move a selected row in a dataGrid and move it to a different row in the database?

Where can I get more info or an example of this and what would this type of operation be called?

View 1 Replies







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