Show all posts by user
Discuss Flex issues here
Re: Compatible with Flex 4.5? - 12 years ago
It seems Flasheff 2.0 does not work with the new text layout engine of Flash Player 10+. Therefore we have to work with the old TextField class. You have to embed the font having the option embedAsCFF turned off. // FlashEff2 setup myFlashEff2.target = myOldTextField.textField; public class OldTextField extends UIComponent // or SpriteVisualElement??? { private static const FREAKING_Pby krumedia - FlashEff 2.0 Flex
Re: How to make a slideshow with FlashEff2 Flex? - 12 years ago
There is a swap() method and you are able to influence the behaviour via the swapType property. FlashEff2.SWAP_TYPE_SHOW for example allows you to create cross fading effects FlashEff2.SWAP_TYPE_HIDE_AND_SHOW is for playing parallelly a hide transition on the "old" element and a swap/show transition on the "new" element. This snippet demonstrates the use: function setuby krumedia - FlashEff 2.0 Flex
Re: Using the flex effects in FlashDevelop (flex SDK) - 12 years ago
We use the FlashEff library with FlashDevelop! And we have also integrated the library for the ant build. There are two FlashEff classes in the .swc file. I think the first one is the pure actionscript main library and the other is a derived Flex Version.by krumedia - FlashEff 2.0 Flex
Re: No Effects in Spark TitleWindow via PopUp Manager - 12 years ago
You might call myImage.validateNow() to force an instant update.by krumedia - FlashEff 2.0 Flex
Re: Compatible with Flex 4.5? - 12 years ago
Is there a chance you could provide resources (e.g. code of the component class) so we might have a look and are able to try working on a solution?by krumedia - FlashEff 2.0 Flex
Re: Compatible with Flex 4.5? - 12 years ago
Hi kneo, we have the latest Flasheff. In the sample project the flash player stage remains white. But if i enable debug player's red redraw regions there is action going on.by krumedia - FlashEff 2.0 Flex
Compatible with Flex 4.5? - 12 years ago
Hi, we are in trouble again. Flasheff doesn't seem to work with Flex SDK 4.5. Will there be an update? For example the "1 Looping show-hide effect" sample project won't show anything if compiled with 4.5.by krumedia - FlashEff 2.0 Flex
Re: Swap transition problem - 13 years ago
removeEffect() does not solve the problem. I think when the swap transition is completing some needed code is executed that is not executed, if i call removeEffect(). Another thing to note is, that i swap only from one element to a second element and vice versa.by krumedia - FlashEff 2.0 Flex
Re: Swap transition problem - 13 years ago
What is the proper way to swap an element if the swap transition is currently playing? I think i should force an immediate end of the running swap transition and start a new swap transition. At the moment if the user clicks faster than the transition is playing the error occurs: RangeError: RangeError: Error #2006: The supplied index is out of bounds. at flash.display::DisplayObjectContaiby krumedia - FlashEff 2.0 Flex
Re: Memory Leak in Flasheff? - 13 years ago
The memory consumption is not increasing constantly. The main problem was, that the instance of FlashEff prevented garbage collection of detached view objects. removeAll() is a solution which i added to the derived class: private function removedFromStageHandler(e:Event):void { this.removeAll(); } For future version of FlashEff it would be nice if your class design would respectby krumedia - FlashEff 2.0 Flex
Memory Leak in Flasheff? - 13 years ago
Memory usage is increasing for every created object of Flasheff. Is there a problem with the Array FlashEff2.targetPaths that won't release object references? (If I understand it right what Flash Builder Profiler had shown.)by krumedia - FlashEff 2.0 Flex
Re: Swap transition problem - 13 years ago
A solution in my opinion might be: override public function swap(newTarget:DisplayObject = null, swType:String = ""):void { if (newTarget == null && this.swapTarget == null) { newTarget = this.crossSwapTarget; } super.swap(newTarget, swType); } private function effectStarting(e:FLASHEFFEvents):void { if (this.currentTransitionby krumedia - FlashEff 2.0 Flex
Re: Swap transition problem - 13 years ago
Yes, FlashEff2 will work since it is a dynamic class and FlashEff2Flex is not. But FlashEff2 will not initialize needed assets. But i was able to overcome this problem by declaring my derived class as dynamic. Calling swap() multiple times first results for me in a FLASHEFF2 ERROR: The swapTarget property is null, a hide transition will be applied. It seems swapTarget is reset after calls to sby krumedia - FlashEff 2.0 Flex
Swap transition problem - 13 years ago
I have created a test project to experiment on the swap mode. What is wrong with the following code? At runtime there appears a FLASHEFF2 ERROR: ReferenceError: Error #1069: Property _swapTransitionStartCommands not found on FlashEff2Flex and there is no default value. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxmlby krumedia - FlashEff 2.0 Flex
Re: Show/hide if not applied already - 13 years ago
This is the final version that will work: public class MyFlashEff extends FlashEff2Flex { protected var endingVisibility:Boolean = false; public function MyFlashEff() { super(); this.includeInLayout = false; this.visible = false; this.showAutoPlay = false; this.hideAutoPlay = false; addEventListener(FLASHEFFEvents.TRANSITION_START, effectStarting);by krumedia - FlashEff 2.0 Flex
Re: FESFlip hang - 13 years ago
Hello kneo, thank you for the hint which just has solved another problem. To speed up FESFlip i had to disabled smoothing: flipShowTransition.smooth=false; flipShowTransition.smoothSegments=1;by krumedia - FlashEff 2.0 Flex
FESFlip hang - 13 years ago
Hello, i set up serveral show transitions and decide which effect to play: private function imageLoadingCompleted():void { // Need to stop effect.stop(); switch (imageChangeReason) { case IMAGE_CHANGE_DEFAULT: effect.showTransition = photoShowTransition; break; case IMAGE_CHANGE_NEXT: slideShowTransition.preset = 2; effect.showTranby krumedia - FlashEff 2.0 Flex
Re: Show/hide if not applied already - 13 years ago
Hi kneo, this is the original setter: public function set showDescription(value:Boolean):void { descriptionArea.visible = value; } To enable FlashEff my first approach is: public function set showDescription(value:Boolean):void { if (value) effect.show(); else effect.hide(); } But there is a problem: If the target's visibility equals value (the setter arby krumedia - FlashEff 2.0 Flex
Re: Show/hide if not applied already - 13 years ago
Hi kneo, i would like to set the visibility of an element to visible or hidden. FlashEff should only start the animation if the target's visibility is different from the "new" visibility and if the right transition is not currently playing. Thanks, Matthiasby krumedia - FlashEff 2.0 Flex
Show/hide if not applied already - 13 years ago
Hello, calling hide() on a hidden element will repeat the hide transition. How do i achieve the transition is only played once? This is what i tried: (my try was to add a helper method to a derived class of FlashEff2Flex) public function toVisibility(visible:Boolean):void { if (this.isTransitioning) { var toTransitionType:String = visible ? "show" : "hideby krumedia - FlashEff 2.0 Flex
Re: Autohide FlashEff? - 13 years ago
Solved using a derived class: public class MyFlashEff extends FlashEff2Flex { public function MyFlashEff() { super(); this.includeInLayout = false; this.showAutoPlay = false; this.hideAutoPlay = false; addEventListener(FLASHEFFEvents.TRANSITION_START, effectStarting); addEventListener(FLASHEFFEvents.TRANSITION_END, effectEnding); } priby krumedia - FlashEff 2.0 Flex
Autohide FlashEff? - 13 years ago
Hello, in the following scenario there is a main view and the user is able to open controls in a popup view. The animations for the popup work fine. But the object of FlashEff2Flex does prevent the main view from getting mouse events. Is there a way to auto hide also the object of FlashEff2Flex (the visibility of the popup is toggled the right way). <s:Group> <!-- Input teby krumedia - FlashEff 2.0 Flex
Re: Mask/filters for parent of flasheff'd element - 13 years ago
It works now. I've realized that the instance of FlashEff2Flex has to be appended to the masked element and not just to "this". Greetings, Matthiasby krumedia - FlashEff 2.0 Flex
Re: Mask/filters for parent of flasheff'd element - 13 years ago
Hi, there's no question, but i need help to get the mask and the filter working. If the flasheff effect is not applied the image is shown properly. But using the effect it bypasses the declaration of the mask and the filter.by krumedia - FlashEff 2.0 Flex
Mask/filters for parent of flasheff'd element - 13 years ago
Hello, we would like to apply a mask and flash filters to a parent element. The flasheff2 animation starts to play but it is not affected by the mask and the bitmap filter. <s:Group width="600" height="450"> <s:mask> <s:Group width="600" height="450"> <s:Rect radiusX="15" width="600" height="by krumedia - FlashEff 2.0 Flex