feathersui / feathersui-starling

User interface components for Starling Framework and Adobe AIR
https://feathersui.com/learn/as3-starling/
Other
914 stars 386 forks source link

Iris.createIrisOpenEffectAtRatio() throws “argument count mismatch error‘ #1698

Closed subdan closed 6 years ago

subdan commented 6 years ago

Steps to reproduce: navigator.replaceScreen("helpScreen", Iris.createIrisOpenEffectAtRatio(0.5,0.5,0.3));

[Fault] exception, information=ArgumentError: Error #1063: Argument count mismatch on Function/Iris.as$0:anonymous(). Expected 1, got 3.

Why can't I pass Iris parameters to createIrisOpenEffectAtRatio function?

This function expects at least two parametes: public static function createIrisOpenEffectAtRatio(ratioX:Number, ratioY:Number, duration:Number = 0.5, ease:Object = Transitions.EASE_OUT):Function

joshtynjala commented 6 years ago

You're trying to use the iris "effect", but you need to use the iris "transition" instead.

subdan commented 6 years ago

Sorry.