Some DC requests - others?
-
Well I was thinking of one or two things I would like to see added to DC's. Maybe this isnt the best place to bring them up, but I thought it might spark some conversation or people showing me how to do what I want w/o the functionality I'm requesting.
-
Multiple OnClick events to a single component
I keep thinking that I would like to be able to assign multiple OnClicks to a single component. It would simplify randomizing multiple attributes simultaneously, for example. Then I could have an alert pop up AND animate. -
a pause or delay command built in to animate. So it could delay x amount of time before animating.
I guess thats all I have for now. I'll come back with more hopefully.
Chris
-
-
@chris fullmer said:
- Multiple OnClick events to a single component
I keep thinking that I would like to be able to assign multiple OnClicks to a single component. It would simplify randomizing multiple attributes simultaneously, for example. Then I could have an alert pop up AND animate.
I did learn that you can use multiple statements by using a semi-colon, and they seem to be executed simultaneously.
animate("a", 0, 100);animate("b", 0, 50)
#2 - nothing came to mind right off.
- Multiple OnClick events to a single component
-
#1 Thanks Jim!!! I just tried and it works precisely as I was hoping! Oh I'm excited!
#2 My only thought of a workaround involves animating an attribute (I'll call animated) from (for example) -100 to 100. over 20 seconds. Then have an intermediate attribute to interpret the animation like so:
interpret =if(animated<0,0,animated)
Then make "X" =interpret.
So X = 0 for the first 10 seconds while the animation is counting from -100 to 0. As soon as it reaches 0 then X begins to animate from 0 100 over the last 10 seconds. That is a decent workaround, but perhaps a functionality could be provided. I've provided the example I made to test this theory. Again, thanks Jim.
Chris
-
I wanted to know one thing, can I define my onClick openURL function in DC? Can I define my own functions in DC? if so where do I do it? I don't know whether image URL does the same thing. Can somebody clarify it?
Something like userdefined function.Thanks,
Dhruv -
Dhruv was responded to here:
http://www.sketchucation.com/forums/scf/viewtopic.php?f=289&t=14771&p=112038#p112038
Please respond there if you have additional comments on his post so we can keep the forum tidy. Thanks!
Advertisement