Flex - Creating An Inset DropShadow On A Container?

Aug 22, 2011

I am wondering how I could create a dropshadow on a container that would give the appearance that the container is lower than its parent. Normally the dropshadow is applied primarily to the outside of the right and lower sides. What I want to achieve is a dropshadow to be applied to the inside of the top and left sides. The idea is to give the appearance that the container is embedded into its parent.

View 1 Replies


Similar Posts:


Flex :: Dropshadow - Is A DropShadowFilter Mutable?

Jun 24, 2010

I have a dropfilter defined using some bindable variables as parameters.

<mx:filters>
<mx:DropShadowFilter id="torinofilter" distance="0" color="{dropShadowColor}"
blurX="{dropBlur}" blurY="{dropBlur}" strength="8" quality="2"

[code].....

View 1 Replies

ActionScript 2.0 :: Guestbook Tried To Inset But Would Seem Formatted?

Jun 17, 2006

Ok, So I made a text box and named it info. Then the AS

[Code]...

so...nothing happens..."Not" doesn't even show up. Something simmilar happend to me when I followed a flash guestbook tutorial somewhere, the guestbook tried to inset and such so the guestbook would seem formatted, but nothing happend "Instead of this" "I got this" I've embedded uppercase, lowercase, num, and punc Arial 11 pt bitmap

View 5 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

ActionScript 2.0 :: Creating Multiple Movieclips In A Container Mc?

Jun 10, 2010

I have a problem creating multiple movieclips inside a container mc. The one created later always overwrited the one created immediately before it and ended up with only the last one left in the container mc. Below is the code:

[Code]...

View 2 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

ActionScript 2.0 :: Animating A DropShadow Filter

Oct 25, 2005

I've been trying to animate a drop shadow filter and so far have been unsucessful, I tried doing it with a for loop but for some reason that didn't work, I also tried an onEnterFrame but without success either

here's what I've done

for

Code:
var ds: DropShadowFilter = new DropShadowFilter(2, 35, 0x000000, 0, 5, 5, .8, 3, false, false, false);
preloader.filters = [ds];

[Code]....

that doesn't work either..how I can animate the BlurFilter, I just want it to go from an alpha of 0 to an alpha of 60...

View 2 Replies

ActionScript 3.0 :: ColorTransform Erases DropShadow Filter

Aug 1, 2009

I'm using this code into a mouse over and mouse out listener , to change the color of a TextField.

Code:
var ct:Color = new Color();
ct.setTint(0xFF0000, 0.5);
mc.transform.colorTransform = ct;

The problem is that the dropShadow filter associated with the TextField (applied in the flash UI) is gone when this colorTransform applies.

Should I apply the filter dynamically, is that the only solution ??

View 2 Replies

ActionScript 3.0 :: Resizing DropShadow Filter (Scale X / Y)

Feb 9, 2009

I was wondering whether it would be possible to perform operations on Filters, specifically the DropShadow filter, such as resizing it (scaleX scaleY).

View 7 Replies

ActionScript 2.0 :: Using SetRGB Overrides The Color Of Dropshadow

Jan 26, 2009

I am trying to set up a dynamic flash movie so i can set the color of text with a dropshadow applied using setRGB.

Here is the code i am using to set the text color (simple setRGB call):

var my_color:Color = new Color(this.tagLine_txt);
my_color.setRGB(tagLineColor);

Now here is the problem, setRGB automatically makes my dropshadow color the same as the fill color. The only solution i have found is to stack two identical text boxes on top of one another and then setting the dropshadow on the text behind to black to make it look proper.

I have tried using filter to set the dropshadow color as well with no luck:

// Makes the filter available to use in the Movie.
import flash.filters.DropShadowFilter;
// Creates a variable with info about the Filter settings

[Code]....

View 4 Replies

ActionScript 2.0 :: Remove Dropshadow From ScrollPane Component?

Feb 2, 2012

I'm trying to remove the gray border/dropshadow from the ScrollPane component, in AS2.

View 0 Replies

ActionScript 2.0 :: Scripting Animated DropShadow During Drag

Oct 17, 2005

I need to animate a movie clip during a drag command. The movie clip also needs to scale to look like it is lifing off the canvas. Here is an swf showing the effect. [URL]

View 2 Replies

ActionScript 2.0 :: F8: AutoSizing A TextField With A DropShadow Filter?

Mar 1, 2006

I have an input Text Field with the autoSize property set to true, a DropShadow filter, and with a default text value of "Your text here".When the user enters text in the Text Field, and if their entry exceeds the length of the default text, everything typed after that length is reached APPEARS to have been truncated.

However, when I turn the DropShadow off, the TextField expands to the requirements of the newly entered text. This proves that the TextField actually autosized, but just didn't show the additional characters when the DropShadow was applied. I can then turn the DropShadow back on, showing all of the text in the Text Field. how to autoSize a textfield(so that the user can actually see the expanded TextField) when a DropShadow filter has been applied?

View 4 Replies

ActionScript 2.0 :: Create Dropshadow Using Laco Or Mctween?

Jan 22, 2007

is there a way to create dropshadow using laco or mctween?

View 1 Replies

ActionScript 3.0 :: Perform Operations On Filters - Specifically The DropShadow Filter?

Feb 9, 2009

I was wondering whether it would be possible to perform operations on Filters, specifically the DropShadow filter, such as resizing it. Are there any known ways to do it?

View 7 Replies

Flex :: Actionscript 3 - Extend A Flex Component That Is Not A Container (RadioButton, For Example)?

Jul 21, 2009

I want to extend the RadioButton component in Flex 3, adding a text input line to it in place of the label. Is it possible to do this?Alternately, is it possible to have a container -- such as an HBox -- delegate all properties to an internal component -- such as a RadioButton -- so that I could create a composite component that 'acts like' a radio button?

View 1 Replies

Flex :: Change Size Of An HBox In Flex To Fit It's Container?

Jul 28, 2010

I create an HBox, fill it with a grid of buttons, and set the scroll policy. When I resize the window, the stage changes size, and so does the HBox ... to a point. Once it reaches the height of the Grid it contains, it stops shrinking, like it has a "min-height". This ruins the scrollbar that I'm trying to establish in this case.

I've set the height to 100%, shouldn't it always take the height of the stage, it's parent?[code]....

View 2 Replies

Professional :: Run Project (main Container SWF And Child SWFs) Into Another Container File Which Place On A Website?

Jun 17, 2010

I am facing a issue in Flash container. I am having a project which has main container which call different SWFs into it. Now I call this main container file into another container, and their problem starts. Many option doesn't work properly which generally have _root, _parent etc...
 
If I want to run project (main container SWF and child SWFs) into another container file which place on a website. I want to show whole project from this container file so what I need to do?

View 1 Replies

Most Lightweight Container In Flex 4?

Mar 8, 2010

In the root of my application I have 5 named "slots" (layers) that I want content to appear in. Should I be using Canvas, Group or something else for each of these slots? I don't need any kind of automatic layout inside these slots.

View 2 Replies

Flex :: Containing Graphics In A Container?

Oct 31, 2011

I'm using flex and drawing a circle using the Spark Ellipse primitive. I am setting the x,y coordinates of the circle myself. I am drawing them within a TitleWindow component. Is it possible to force the circle to not be allowed if I specify a coordinate that is outside the TitleWindow? Or do I have to check the coordinates manually myself?

View 1 Replies

ActionScript 3.0 :: Scale Container In Another Variable Container?

May 6, 2010

I need to place an image into a container. The problem is that I will not know the size of the image or the container beforehand, so it all has to be dynamic.this is how I started (have not gotten to stage(or container) changing size yet. No matter what I try, either all the images are the same width, or they are all the same height. If some images are portrait and other landscape, I don't want all the images to be X pixels high. In this variation of the code, all the images turn out the same height, regardless of portrait or landscape.

ActionScript Code:
var ratio:Number = container.width/container.height;//get the ratio, if width is bigger than height then ratio is greater than 1, else ratio is smaller than 1

[code]........

View 0 Replies

ActionScript 3.0 :: Bitmap Filter - Push The DropShadow Filter Onto Movie Clip At RunTime?

Mar 10, 2011

I looked at the following example in the AS3 Reference: [URL] It is unclear to me looking at the package example how to apply this in standard ActionScript 3 without packages to a Movie Clip resident in my Library that gets called at RunTime. how I would push the DropShadow filter onto my Movie Clip at RunTime?

View 6 Replies

Flex :: What OpenSource Container Component Should Use

Jun 18, 2009

Please help me what container component I will use. Here is my problem, I have advance data grid with full of data about 300 by 300 row-column(data can be picture). Now I need a container that can zoom in/out, fit to screen capability and can drag around the component inside so that my data grid will be zoomable and dragable around the container(Easy for the user to read content inside my datagrid).

View 3 Replies

Flex :: Get Container To Scroll To Last Position?

Aug 12, 2009

URL...Whenever a chat is added, I want it to completely show the last message. I'm using maxVerticalScrollPosition to set the scroll position on the list, but it is always wrong (see the example). It undershoots it by a row or so. I've tried this with a regular container and it does the same thing. If I do maxVerticalScrollPosition+1, it sort of works, but if the last message is particularly long, it will be cut off (only show the top). How can I get it to scroll to the actual bottom of the container??[code]

View 2 Replies

Flex :: Dynamically Add Component In Container

Mar 18, 2011

I want to dynamically add component in Container like Canvas(TileList constraints each child has the same size, GridList is poor in performance), for example

[Code]...

when I click the button, I hope add a component(whatever the component is, and maybe each component has different size), and if the total width of all added child is greater than myHolder, I hope the new child can begin in new line, and stretch the height of myHolder at the same time.(layout with custom code is better)

View 2 Replies

Flex :: List All Elements In A Container?

Jul 11, 2011

I want to list all controls (buttons, datagrids, etc) in a container

This works but gives me a warning 1008: variable 'comp' has no type declaration.

for (var i:int = 0;i<this.numElements;i++)
{
var comp = this.getElementAt(i);

[Code]....

when I get a compiler warning it's because I'm not doing something the way it is supposed to be.

Are there any alternatives to reference the id property? A method I'm missing even a whole different way iterate through all the controls?

View 3 Replies

Flex :: Get The Parents Id From My Container In Flex

Feb 3, 2011

I have an issue, so i created a mxml container file called Container1.mxml that has

[Code]...

then the id will appear in my Label text.

View 1 Replies







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