ActionScript 3.0 :: Flex Why Cannot Put Filters In A Group Container

May 19, 2011

I am trying to design a custom group container. This is my code below. I have a Group openning tag and a GlowFilter inside the declarations. When I run the code, it gives me error Code: ArgumentError: Error #2005: Parameter 0 is of the incorrect type. Should be type Filter. I have no idea what went wrong. The code compiles fine, but not able to run. The workaround is change the Group to BorderContainer or remove the filters, but I just don't see why Group has a problem with it. I have attached my simplest project file.

[Code]...

View 2 Replies


Similar Posts:


Actionscript :: Making A Group Container From A Button At Run Time In Flex?

Sep 24, 2011

i want to create a container at runtime when ever i push a button at different places on my screen, for start lets just create only 1x of such container using a button .

View 1 Replies

Flex :: Setting A Group Container Height To 0 Does Not Hide His Children?

Feb 21, 2012

I need to resize a Group using myGroup.height = 0. And it works, but myGroup's children are still visible, I do not know why...

View 1 Replies

ActionScript 3.0 :: Enable/Disable Group Of Filters?

Jun 4, 2009

I was wondering if its possible to add an array of filters to a movieclip, then remove the ones that correspond to another array.At the moment, I can add the filters to the array with concat but there doesn't seem to be anyway to reverse that.I think it's easy to show what I want to do with code:

Code:
var filterslist:Array = new Array();
var filters1:Array = new Array();
var filters2:Array = new Array();

[code].....

/* hover out: (what I want to to do but no function seems to exist): */

filterslist = filterslist.removegroup(filters3); // think of it as an inverse concat function
this.fitlers = filterslist;

I think it may be possible to do by looping out the filterslist array, sub-looping the filters3 array and then comparing each one and splicing it out if they match but this seems long-winded, bad code and would produce bad performance.

View 3 Replies

ActionScript 3.0 :: Create A Custom Group Container?

Jul 21, 2010

Is it possible to create a custom group container in actionscript? My goal is to create a custom composite spark container in actionscript that has an image control and a textbox layed out in a vertical layout.

View 3 Replies

Actionscript 3 :: Flex4, Centering And Resizing A Image Inside A Group Container

Jan 21, 2010

I'm looking for the best way to get a flex 4 image object to resize and horizontally center whenever its parent container (a custom component based on group) resizes. I cannot set horizontalCenter="0" to accomplish the image centering because I use a move transition to "slide" the image in and out of view.

I'm externally setting the image source in the component. Here is a simplified example of my component code that only addresses resizing the image.

<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" >


[Code].....

View 2 Replies

Flex :: Prevent Container In ItemRenderer From Exceeding Width Of List Container?

Jul 2, 2011

In a Flex Mobile project I have a simple itemRenderer where I'm trying to create an "bubble" texting effect, similar to ichat or iphone (just so you get what im going for). But if the text is longer than the screen it runs off, rather than just going down a line.

If I set Group thats holding the rectangle(to create the bubble effect) and the label to 100% it works and keeps it from exceeding the list containers bounds, BUT the group is always at 100% and looks bad, I'm trying to keep the "bubble" JUST AROUND the text.

Anyway so, at the top of my itemRenderer I tried specifying:

<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" width="100%" height="100%">

And here's my layout I figured since msg_container has a width of 100% I was hoping bubble_lable_group would just not exceed that but...it doesnt...it just runs off. I tried setting a max width but that does not allow you to input percents. And just to say it 1 more time. I know if i set bubble_lable_group width to 100% it works, and keeps it from going off the edge, but then the rectangle "bubble" stretches all the way across and just looks bad.

<s:VGroup id="main_container" horizontalAlign="left" paddingBottom="10" paddingTop="10"
verticalAlign="top" width="100%">

[Code]....

View 1 Replies

Flex :: Dynamically Adding Container To A Dynamic Container

Sep 21, 2011

I have a loop that goes through data from a book and displays it. The book is not consistent in it's layout so I am trying to display it in two different ways. First way(works fine) is to load the text from that section in to a panel and display it. The second way is to create a new panel (panel creates fine) and then add collapsable panels(nested) to that panel. Here is the code from the else loop.

else if (newPanel == false){
// simpleData is just for the title bar of the new panel
// otherwise the panel has no content

[Code]....

The error I get is: ReferenceError: Error #1069: Property panel4.4 not found on components.readTest and there is no default value.

I have tried setting the "name" property instead of the "id" property.

View 1 Replies

Flex - Hide Container Of A Viewstack Container?

Dec 23, 2010

I have a viewstack container w/ 3 views: red, black, and blue. How can I completely hide the black & not include it?

[Code]...

View 2 Replies

Flex :: Drag Circle From One Container To Another Container?

Jan 13, 2012

I am creating an flex Air project,so mxml file will run. I have circles in one Big circle at one side and will be same on other side.

Now how to drag any circle from any Big circle to other side. Or it could be like any two container having circles, then how to drag and drop circle?

For one circle i am able to do drag and drop.But I want one Big circle on left hand side and one big circle on right hand side .And small circles with class names will be in these big circles.Now i want to drag and drop those small circles in big circles.Big cicles should not move. Even i have tried this code in actionscript

package
{
import flash.display.Sprite;
import flash.events.MouseEvent;

[Code].....

But in this i want big circles should not move and small circles should only be dragged.

View 1 Replies

Flex :: Moving Children Of A Container (defined In MXML) Inside An "inner Container"

Jan 27, 2010

I'm currently working on a custom component which extends Canvas (let's call it SuperCanvas) ; it's basically a container that let you zoom & pan its contents. It would be too long to explain why, but I can't use scrollRect, so I was forced to declare a Canvas object (called innerCanvas)... inside my SuperCanvas (I know, not very nice =/) I would like to know if there's a proper way to "redirect" the creation of my component's children in this canvas.

[Code]...

View 1 Replies

Flex :: Apply Filters On Publishing Stream

Dec 6, 2010

I've developed a Flash video recorder(using AS3, Flex) which captures live web cam and streams to Wowza media server.I am trying to apply sharpness, contrast, saturation and sharpness filters on the live video being captured.I am able to apply filter effects on the video being captured on the screen. How do we apply the filters so that it reflects in the stream being published ?

View 1 Replies

Flex :: Use TweenMax With Filters Created In Flash IDE?

Dec 16, 2010

Is there a way to get TweenMax to tween the filters of an DisplayObject where The filters are added in the Flash IDE.

I want to Tween between two states and it would be nice if I could do it without creating the two states with bitmaps and tween between them. One state with the filters and one without the filters. [code]...

View 1 Replies

Flex :: Show Data At Group Level In Flex Advanced Grid?

Aug 6, 2009

I am working on a grid example in flex using advanced grid control. I know we can easily group data by specifying the field name. At the group node level, other than the gorup name I want to be able to show data in the rest of the cells ( calculated data ) and I am looking for some dataRowBound event or similar to be able to hook some data in it.

Example: Grid displaying list of towns grouped by state. At the group level ( for each state) I want to show the total number of towns in each state. Here how can i show the total number in the town column.

View 1 Replies

Flex :: Retrieving Mouse Events When Using Masks And Filters

Apr 6, 2011

im working on:[code]For more detailed comprehension: corner is the black corner with the (i) and 'Promotion', text is some random text that can be displayed in the white remaining space, container contains corner and text, and finally this class contains container!I need to retrieve the event mouseevent.rollover/rollout from corner.And what's wrong?

1. When I put the mask on container (container.rawchildren.addchildren + container.mask = mask) and the dropshadowfilter on container (container. filters = [glow]), I cannot detect the mouse events.

2. When I put the mask on the promopanel (this.rawchildren.addchildren + this.mask = mask) and the dropshadowfilter on promopanel (this.filters = [glow]), I cannot detect the mouse events.

3. When I put the mask in a component and the filter in another, it does not work either.

4. If I remove the mask OR the filter, it works!! But I need them both...

So, does anyone has an idea on how to make this work? I've been trying to look for issues with filters, masks and mouseevents but haven't found anything that could enlighten this issue.

View 1 Replies

Flex :: Adobe Flex - Doing Group By At Client End (DataGrid To Pie Chart)?

Dec 23, 2010

I am in a situation where user gets the cars data from the database based on the selection and displays it in datagrid like below ( for example)

Company Model Year No
GM Chevy 2010 10
GM Chevy 2009 5
GM Pontiac 2010 12
Honda Civic 2009 12

and there will be a link next to datagrid to get Pie chart based on the data displays in the data grid . The pie graph should display grouping by company and the count . I mean for the above example that should give with two pie items , one for GM showing the number of vehicles ( in this case 3 ) and Honda showing the number of vehicles ( in this case 1 ).

I thought of getting it from the database by querying and grouping it .But here the problem is after getting the data above in the datagrid user can able to filter at client end ( By year or model ) and can say get graph . This time that should only display the graph for the data visible in Datagrid .Grouping on database for every operation is becoming expensive. Since we have already data available at client end , is there any way to group it at client ..?

View 2 Replies

Flex :: Toggle A Mask To A Group In Flex (works For BorderContainer)?

Oct 6, 2011

Here's my test application:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"[code]....

I would expect the mask to be applied when the checkbox is selected, and removed when it issin't. But it doesn't seem to work.However, when you change to , it works like a charm. Can anyone explain to me why?

Note: In my actual application, i'm applying this in a skin to a component that is extending SkinnableComponent which can't use BorderContainer so a solution to this would be great.

View 1 Replies

ActionScript 3.0 :: Flex - Make Filters Scale Relatively With Parent DisplayObject?

Nov 28, 2009

(i'm using flashdevelop / flex sdk)IS there any way filters applied to a DisplayObject (drop shadow, glow, bevel) can scale relatively with the parent (the DisplayObject it is inside)?And what about other properties like .distance for drop shadow?

For example... If I have a 100px rectangle with a 10px glow inside a container object, and I set scaleX/scaleY of the container to .1, I want the glow to inherit the scale change from the parent (1/10th the size) just as the display object does that the filter is applied to.Instead, if you try this, you will see the glow stays at 10px no matter what scale the filter target or the container is transformed by.Pseudocode example (steps to reproduce),

1) create a sprite called _myOuterSprite on stage at scaleX = scaleY = 1

2) create a sprite called _myInnerSprite inside _myOuterSprite at scaleX = scaleY = 1

3) draw 100px rectangle into _myInnerSprite

4) apply 10px glow to _myInnerSprite

5) transform scale of _myOuterSprite to .1

Result:

- child sprite (rectangle) scales to 1/10th the size

- glow stays the same size

How can I make it so that glow scales to 1/10th as well?...without capturing and scaling bitmap data ...without losing interactivity on objects...in a way that would work visually for every filter, not just glow (drop shadow has distance property too, etc)

View 4 Replies

Radiobutton Group Value - Get The SelectedData From The Group?

Aug 14, 2009

I've got some MC's in my library that have radiobuttons in them -- all of this created at design time -- and pull them onto the stage dynamically. My question is how do I get the selectedData from the group? The setup is like this: In a MC called pageOne, I have a group of buttons with a group name of Q1, Q2, etc. I pull the MC onto the stage like this:

[Code]...

Do I need instance names on each of the buttons and add listeners to all of them?

View 4 Replies

Flex :: Group Items In DataGrid?

Aug 12, 2009

I have a DataGrid with info like this:

Associate AmountTimeCustomer
John Doe 29amSam Smith
John Doe 210amBerry Cooper
Bill Ace 19amSandy James

Repeating the name and amount gets redundant so I would like it to look something like this:

Associate Amount
John Doe 2
Bill Ace 1

Then when you select one, it expands to show the times and customers for the selected associate. I hope this makes sense...I am currently just using a DataGrid but I can use an AdvancedDataGrid if thats needed...I am pretty sure something like this can be done, I just don't know how.My data is in xml and looks like this:

<stat associate="John Doe" date="08/12/09" amount="2" time="9 am" customer="Sam Smith"/>
<stat associate="John Doe" date="08/12/09" amount="2" time="10 am" customer="Berry Cooper"/>
<stat associate="Bill Ace" date="08/12/09" amount="1" time="9 am" customer="Sandy James"/>

View 1 Replies

Flex :: Why Is The Border Bigger Than The Group

Mar 17, 2010

if I place a Border with width and height of "100%" inside a Group with width and height of 10 pixels the Border looks bigger than 10 pixels, why?

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
>

[Code].....

View 1 Replies

Flex :: Group ShowEffect/hideEffect

Dec 30, 2010

I have a Group that I want to do a wipe effect when it shows and hides.

<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:Wipe id="wipeUp" direction="up" duration="2000"/>
<s:Wipe id="wipeDown" direction="down" duration="2000" startDelay="2000"/>
</fx:Declarations>

[Code]....

The group is being hidden and shown on change of the group's visibility, but the effect doesn't do anything. When I set the visibility to false, it takes 4 secs for it to hide (delay+duration), but again, no effect.

View 1 Replies

Flex :: How To Find Max Value Of Group Of LineSeries

Jan 19, 2011

I need to recalculate the max value of lineChart according to the visible lineseries. In the application I have the ability to make visible or not the lineseries of the graph and if I make not visible the lineseries with the actual top value I want to zoom in and change the top value of the graph.

View 1 Replies

Flex :: Resize Groups Within A Group?

Apr 19, 2011

I am trying to automatically resize the children within an s:Group. The children are another s:Group and a H:Group. Each have a percentage width of 10% and 90% each. The problem is that when one of the groups is resized (using a transition and rotation combination in the Skin), the other group does not automatically resize to fill the space?

Shouldn't Flex do this automatically? or do I have to code this?

<s:Group
id="listsGroup"
width="100%"
height="255"

[Code]....

View 1 Replies

Flex :: Group - SkinnableContainer As HGroup?

Nov 30, 2011

I have a SkinnableContainer class called: 'GroupNavCustomContainer' that uses a skinClass called 'GroupNavCustomSkin'. The GroupNavCustomSkin is the default one Flex creates for you: (The default skin class for a Spark SkinnableContainer container). Now, I have to add buttons to the GroupNavCustomContainer dynamically from outside the class which is not a problem. However, I can't seem to figure out out to make my skin behave as a HGroup so the buttons are spaced evenly. I tried: modifying the Group container to no avail:

[Code]....

View 1 Replies

Flex :: Deselect All Radio Buttons In A Group?

Jul 6, 2009

In Flex, sometimes when you need to clear a form you run into the problem that radio button groups seem to defy clearing: try as you might, setting selected=false on all buttons, setting selection=null on the group, doing both, doing them twice, etc., you always seem to end up with one pesky little radio button that's still selected. How do you solve this and restore the radio button group to its initial no-selection state?

View 7 Replies

Actionscript 3 :: Flex 4: Build A Group With A Background?

Oct 15, 2009

I'm trying to build a simple component extending spark.components.Group to have a background color, more specifically a spark.primitives.Rect component stretched to fill the background.

This is what I've come up with thus far:

<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo"
<fx:Metadata>

[Code].....

View 2 Replies

Xml :: Getting A Flex RTE To Group LI Items Properly (wrapped In UL Tag)?

Feb 5, 2010

I'm trying to use XML to convert the code that a Flex RTE creates to valid HTML. No problems on other HTML elements, but difficulty with unordered lists. I created a solution for moving consecutive LIs into a UL node. After trial and error, I came up with the following solution. My question is - surely there's a better way to do this?

for each (listXML:XML in xml..li) {
if (listXML.children().length() == 0) {
// list item is empty - make it an empty paragraph instead

[code].....

View 1 Replies

Flex :: 3 - Validate The Radio Button Group?

Mar 17, 2010

iam new to flex, can any one say ,how to validate the radio button is selected or not in flex 3 if my question is wrong, regarding the validation of radio group

View 4 Replies

Actionscript 3 :: Flex - Select Other Objects From A Group?

Sep 17, 2010

I have a group of multiple objects. If I select one object from the group, then i use the method: click="makeObj(event)" And then the function:

[Code]...

View 1 Replies







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