Flex :: Applying Wipedown Effect Dynamically?
Jul 27, 2011The panel is added OK, but the wipedown effect dont work
import mx.controls.Alert;
import spark.components.Panel;
import mx.effects.Effect;
[Code].....
The panel is added OK, but the wipedown effect dont work
import mx.controls.Alert;
import spark.components.Panel;
import mx.effects.Effect;
[Code].....
When I create a tab dynamically via ActionScript, the style for the newly created (and selected) tab get applied to the skins, but not the text, unless I click on another tab and then click back to it.
[Code]...
I was just wondering whether or not it was possible to refer to all objects currently visible on the stage in Actionscript, be they images, text object, anything, to apply effects to.
View 3 RepliesIs it possible in as3 to code a jpeg/psd to ease into being blurred, and then ease back out. With just an un-blurred picture? With a blurred and unblurred picture? Shape tween takes too much processing power to transistion good.
View 2 RepliesAll I need is a simple example, of loading jpgs into flash as3 and a function for applying a transition effect on them. Something like:
Code:
import com.greensock.*;
TweenLite.to(image[1], 2, {alpha:1});
a quick explanation of what I'm at... I'm working on something at the moment, basically what I have is an external textfile which contains several variables; I am loading these variables into flash using loadVariables().one of these variables invokes the script to create several buttons on the stage using for() and attachMovie(), and add onRelease() actions for each. when each button is clicked, a new textfield for that button is created on the stage.
the other loaded variables contain appropriately named html-formatted strings of text, which are then loaded into their respective, newly created textFields. pretty traightforward, and everything's working perfectly, the tags are being rendered etc. bold text is turning up bold and links are working correctly.but, I know nothing about CSS and flash! here's what I'm wondering... although my text is being rendered properly, I currently have no control over the style of my text, so it is rendering as black, times new roman etc. how can I apply CSS styles in order to control font size, type, colour etc.?does this entail attaching an external stylesheet, or can CSS styles be defined within the movie?here is my code at the moment:
PHP Code:
//
create box for textFieldfor loadingMsg_root.createTextField("loadingMsg", 20, 10,
[code].....
Is there any way to apply a stroke to a movie clip dynamically? Or tweak a filter effect to make it look like a clean 1 or 2px stroke?
View 3 Repliesam loading a .png image into a movieclip using loadMovie(). i wanna put a glowfilter on the .png image once it's loaded into the movieclip. is that possible? how?!
View 5 RepliesIt's a bit of decoration to go behind a logo. When the dMove var is commented out I get the appropriate line of squares fading in and out at random spots along the x = 78 axis, but when introduced nothing appears at all...
[Code]....
I have a problem in applying the styles for scroll bar skins through actionscript.[code]How can we specify scaleGrid properties in the above statement?
View 1 RepliesI want to be able to style or set properties dynamically.[code]I want to be able to set these properties in the skin so the skin can be styled differently for each component that uses it.
View 1 RepliesI have the following code to create and apply a few styles for a custom TextArea in ActionScript 3.
public class MyCustomTextArea extends TextArea
{
override protected function createChildren():void
{
[code]....
I have two problems with this code.this.styleSheet is always null when I create an instance of the class. If this.styleSheet is initialized to new StyleSheet() to avoid this issue, then the TextArea instance does not seem to recognize any of the HTML tags that can be used with the htmlText property.
I have a few styles that I want to apply to a slider. I'm aware of the MXML method of defining a mx:Style tag
<mx:Style>
HSlider{
} .SliderHighlightTrackSkin{
} .SliderTrackSkin{
} .SliderThumbSkin{
}
</mx:Style>
Instead of doing it this way I want to define all the styles in a style sheet. I then want to define my slider in a .as file (not an mxml file) and apply the stylesheet to it. Something like the following is what I'm after
levelSlider= new VSlider()
levelSlider.minimum=0;
levelSlider.maximum=1;
levelSlider.value=1;
levelSlider.y=150
levelSlider.styleName="sliderStyle.css"
this.addChild(levelSlider)
I am using to blur an image using BitmapData. The function is called on a Slider_changeHandler(event:Event):voidevent and the value of the slider is passed to the function as blurvalue.The problem is the function works but seems to be cummalative (if that's the correct word!), that is, suppose I slide it to the maximum and after that try to reduce the blur by sliding it back towards the front the blur still keeps increasing. How do I make it to work so when I will slide it up blur increases and when I slide it back blur decreases and when slider is at 0, no blur is applied.[code]
View 2 RepliesI'm using papervision3d and I am trying to wrap a single flv video around 4 sides of a cube (Excluding the toip and bottom) but I am unsuccessful so far. I have searched everywhere on the net and all I can manage is to display the single video on each side of the cube seperatly.
Code:
video = new VideoStreamMaterial(videoFile, ncStream, true); var materialsList:MaterialsList = new MaterialsList() materialsList.addMaterial(video, "all");[code]....
Is there a way I can tell it to wrap the videoStreamMaterial around all 4 faces? Or if there isn't can I map the videoStreamMaterial onto a plane and then warp this plane to form a cube somehow?
How to stretch out the movie clip to twice its width and height after applying some Pixel Bender filter? I have some object with video on it (for ex 512 by 512) I apply a Pixel Bender Filter on it. Now I want to stretch the result (for ex to 1024 by 1024). How to stretch it?So my point is 1) Render the result of effect2) Stretch out the result
View 2 RepliesI have a Flex Column Chart that has a range of 0 - 6 on the y-axis. I have added the following block to change the default colour of the horizontal grid lines to black.
<mx:backgroundElements>
<mx:GridLines>
<mx:horizontalStroke>
[Code]....
This works fine for all but the horizontal grid line at the top of the chart (at y=6). If I change the maximum value for the y-axis to something different then this new max doesn't have the formatting applied (but all the others do).
how do I get the top line to be black like the rest of the grid lines?
I have a object that is extended from arraycollection. This object has to access and manipulate the arraycollections source object. When this happens, the local sorted/filter copy of data goes out of sync with the source data. To line things up correctly, the sort/filter needs to be re-applied.
To do this normally, you would call refresh() on the arraycollection, but this also broadcasts a refresh event. What I want is to update the sort/filter without dispatching an event.Having looked into the ArrayCollection class, I can see it is extended from ListCollectionView. The refresh function
public function refresh():Boolean
{
return internalRefresh(true);
}
is in ListCollectionView and it calls this function
private function internalRefresh(dispatch:Boolean):Boolean
{
if (sort || filterFunction != null)
{
[code]....
annoyingly, that function is private and so is unavailable to and class that extends ListCollectionView. Also, a lot of what is in the internalRefresh function is private too.Does anyone know of a way to call internalRefresh from a class that extends ArrayCollection? Or a way of stopping the refresh event from being dispatched when refresh is called?
When doing a gradient fill on an area chart, the gradient ratios are used only between the min and max of the chart. The area below the min is then filled with the last color in the gradient.
To make sure that it was using the ratios only between the min and max I inserted a zero (0) into the chart and the gradient expanded to the full height. I also checked the gradient values by creating a with the gradient fill.
How do i get the ratios to be effective through the entire fill not just between the min and max?
I've made a simple picture slideshow. With 10 frames and on each frame a movieclip. On every frame, I use the 'loadMovie' method to import a file..A set of buttons are used to surf through the frames..Okay, I wanted to know, is there any other possible way to add a fade-in fade-out transition while changing the pic from frame 1 to frame 2.. ?The way i know of doing it will be like this;Making a movieclip, MC1, and in there, another movieclip, imagehandler MC, where that image is brought using 'loadMovie' method. And fading in imagehandler MC from frame 0 to frame 10 using motion tweening like we normally do..And putting that MC1 (with MC2 fade in effect inside)to each of the 10 frames in the main slideshow timeline (making different MC1 like MCs for each image)..But this way its much more work and more cramping in the library..
View 8 Repliesi'm looking to replicate the effect of dynamically changing the stage size based on the size of the movie that is being loaded in it.
View 14 RepliesWhenever I add paddingRight to a column in the flex grid, it adds the padding to the header as well.Is anyone familiar with how I can add paddingRight just to the column and not to the header? Below is the column code where I was specifying the padding.
<mx:DataGridColumn width="60" headerText="Type" dataField="Grade" headerStyleName="headerLeft" textAlign="left" draggable="false" resizable="false" headerRenderer="GridHeaderRenderer" paddingRight="5"/>
Is there a way to disable the hover effects?I don't want flex to highlight the entire component for both link buttons and menu bar.On the menubar, I applied a backgroundSkin, so having flex highlight the whole menubar when the user hovers their mouse on top quitely destroys the design.
View 1 RepliesHow can I use TweenLite to implement effect of Flex's PopUpManager?
View 1 Replieshow we add effect in datagrid when we add or remove any row.
View 1 RepliesFlex Effects include "isPlaying" property to check whether Effect is currently playing or not. But is there a way to find out what is the direction of playback (whether the play was started with playReversedFromEnd)?
View 1 RepliesI have an application whit accordion
<mx:Accordion minHeight="200" includeIn="radegund0" top="10" bottom="10" left="10" right="10" openDuration="2000" openEasingFunction="{Elastic.easeOut}">
<s:NavigatorContent width="100%" height="100%">
[Code]......
but when click on the second tab for the first time the content is not shown until the effect is over.
I could not play the parallel effect which is defined by the following code:
var parallel:Parallel=new Parallel();
var E1:WipeDown=new WipeDown();
var E2:WipeLeft=new WipeLeft();
parallel.addChild(E2);
parallel.addChild(E1);
parallel.duration=2000;
parallel.target=this;
parallel.play();
On playin the effect by calling effect() function only the effect E1 is getting played. If the code was:
[Code]....
I would like to know how I can add maximize and restore functionalities to a Flex TitleWindow. I used something like this <s:Button label="maximize panel" click="Panel1.height = 300;Panel1.width = 300"/> where Panel1 is the id for TitleWindow but there was not effect for it.
how to add buttons on the titlewindow title( so that I can include buttons for maximize and minimize).
In one function I am calling the play method on an effect and in another I am calling the reverse method. The play method works but the reverse method does not. It appears that the propertyChangesArray is used to store the previous effect start values but that property is null when calling reverse.
[Code]...