General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Iron Speed
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old December 16th, 2007, 05:45 PM
BabylonSlim BabylonSlim is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 1 BabylonSlim User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 22 sec
Reputation Power: 0
Talking Flex Help Needed! Applying Effects...

The SWF File: I can't tell you where it is, I'm not allowed.

The project files, I can't tell you where they are, I'm not allowed.

Hi all, any help I could get on this issue would be very helpful.

I have a Flex application. In the application I have an HBox that I will be dynamically adding and removing child objects from.

Eventually I will create a class for the child objects, but right now the ActionScript that creates them is in the main application. Here is that code:

private function createTile():void
{
var prodTile:Canvas = new Canvas;
prodTile.width = 100;
prodTile.height = 100;
prodTile.setStyle("backgroundColor",0x000000);
prodTile.id = "BlackBox";
prodHBox.addChild(prodTile);
prodTiles.push(prodTile);
prodTile.addEventListener(MouseEvent.CLICK, isClicked);

var prodTile2:Canvas = new Canvas;
prodTile2.width = 100;
prodTile2.height = 100;
prodTile2.setStyle("backgroundColor",0x666666);
prodHBox.addChild(prodTile2);
}

The function createTile() creates two objects, one black and one gray. Eventually there will be more but for now createTile() keeps things simple.

In the SWF application, click the "Show" button to call the createTile() function.

Now, when you click the "Hide" button, the black box is removed. The funciton it calls is this one:

private function dropBlack():void
{
prodHBox.removeChild(prodTiles[0]);
}

What I'm trying to achieve is this:

Right now, when you remove the black box, the gray box instantly jumps to where the black box was. What I need to have happen is for the gray box to animate to it's new position where the black box was. I would like to to slide into place over time. Eventually I will also need to need it to slide out of the way when a new child is introduced.

I know this can be accomplished with effects, but for the life of me all the books, forums, Adobe docs, and web tutorials have shed little to no light on how to do this. Could be I've just been unlucky in my searching.

Does anyone know how to do what I need to do, or even where I might find a good tutorial or book that has the desired information?

Again, I'm in a tight spot at this point and any help would be extremely appreciated.

Thanks ,

[d]

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Flex Help Needed! Applying Effects...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway