I am assuming that a image rotator can not be done with flash catalyst?
Yes. It can be done.
Here's one way to do an automatic transition in the current version of Fc;
- Import an 'invisible' flv that is as long (in seconds) as you need between state transitions. (3 seconds in the example file below)
- place an instance of that flv in a separate layer for each state where you need the auto transition
- In my example, I set an On Application Start interaction that starts the first video playing
- Then, on each flv, create an interaction for On Video Play Complete to transition to the next state when the flv has finished playing.
- Finally, on the State Transitions in the Timelines panel, add a Play Video Action to start the flv in the next state.
Take a look at this example(right-click to download the fxp file). http://www.numencommunications.com/storage/fc_examples/Banner_flvTimer _transition.fxp
Ok here is what i did.
1. Opened FC and started new project
2. Because the project opens with a state i used that state to place the files. (1 text object , 3 flv [generated in premier])
3. I didnt hide the flv because i wanted to use their locations as a means of seeing the change of state. So ignore the text that says "1st state".
4. I duplicated the state twice to create states 2&3.
5. On state1 i did this interaction: On application start > play video > blank flv.flv
6. I clicked on blankflv.flv (far left) and did this interaction: on video complete> play to state> state2 > if in state1
7. I then switched to state 2 and i turned off all accept the video that should play did this interaction: On application start > play video > blank flv1.flv
8. In state2 i clicked on blank flv1.flv and added this interaction: on video complete> play to state> state3 > if in state2
9. I did the same on state 3 adding to the video this interaction: on video complete> play to state> state1 > if in state3
When i run this it plays from state1 to state2 and then it remains static. If it moves from state1 to state2 then it would seem that this would be a continuous loop of blank flvs in different locations.
What am i doing wrong??
Here is the fxp file:
If you just want a continous auto state to state timer that starts when your app starts...
-you only need one "timer" flv (shared to each state)
-set the "timer" flv to Auto Play ( so it starts when your app starts, no need for an OnApplicationStart interaction)
-set the "timer" flv to Loop
-to the "timer" flv add conditional (OnVideoPlayComplete) interactions for each of the states in your app (in your example, three)
Let me know if this is what you're after,
Flash Catalyst Team
I think i am missing something some how. I can get from state1 to state2 but the video will not play in state2 so it just stays there in state2.
I deleted state3 to see if i could get it to loop but it will not loop the 2 states. As i said it play state1 then transitions to state2 but no play in state2.
The young lady who posted to this a while back sent me a file that does all 3 states 3x but it to stops after 3 loops of 3 states.
I also read something that said you can only do this if you have code. This doesn't seem like correct advice since i can get from state1 to state2.
I am relatively new but this seems like it should be easy. I must be missing something some where. I had entertained filming the screen while i do the work to show you.
Would this help in finding my mistake?
No need for code, it looks like you are almost there. You just need to turn on Loop. That is why the video is not playing after the transition to State 2.
I will try this in the morning but i wanted to make sure of something.
STATE1 - 'timer' flv is set to auto play
STATE2 - 'timer" flv is set to ?loop?
STATE3 - 'timer flv is also set to ?loop?
Yay or Nay?
Auto Play and Loop are not stateful properties, so once you turn on Loop it will be true for that video in every state. So it will look like this...
STATE1 - 'timer' flv is set to auto play and loop
STATE2 - 'timer' flv is set to auto play and loop
STATE3 - 'timer' flv is set to auto play and loop
This is how I would set it up:
I took out two of your library items for the timer (they were all the same, so you only needed one). I then placed this one library item in three separate layers (instances). They are visible/invisible according to which page they belong to.
Next I added a transition - On Video Complete > Start playing the video in the next page.
Take a look and see if this will work for you.
Ok, I have used both methods. The autoplay + loop method works and the tanya method works.
I can create the giblin method but i need to know both ways.
Tanya you method seems neater. I am gonna work on recreating that.
out all the programs in the masters collection this is the one i want to know the most. I am not a good at all with action script and this makes it a whole lot easier.
I will post my final to this thread.
Tanya, I was very happy when I downloaded your porject and it worked (locally) but when I uploaded it to my server it would not change from State 1. I then went back and tried to run it from the "deploy-to-web" folder locally and the same problem occured.
Any idea why when the proejct is deployed to the web it does not work?
Is the video loading correctly? Often there are issues loading the video file once the swf is uploaded to the web.
If you're willing to experiment with something new, you may want to check out Panini and the new custom skinnable components. There is one that rotates through a custom component's states posted here.
Try this file out.
Thank you very much for this example. This is exactly what I was looking for.
This may sound odd but in my trials, i got the feeling that it has something to do with the order of operations. The last thing you should do is give the project its play to state commands.
Also i had different results when i shared the blank flv, as opposed to importing it to each state as a standalone object..