Got action sequence to "loop" but it shows in all states - conditional statement to fix it?
Using Flash Catalyst & Notepad (to open and alter the code in the "Main" MXML file) I'm able to "loop" an action sequence on the home state for my swf by changing the code as follows:
ORIGINAL CODE
<s:Parallel id="Sequence3">
ALTERED CODE
<s:Parallel id="Sequence3" effectEnd="Sequence3.play()">
The desired effect is a sequence (of 4 images) that loops whenever a user is viewing the home state. It is activated "On Application Start"
The PROBLEM is that the loop continues in all other states (it appears in the background - behind the objects that are supposed to show up on the other pages and only begins to show up in each state when the sequence begins another loop).
I am assuming I need a conditional statement --- something along the lines of:
while (condition){ statements;}
...in other words, ONLY while currentstate = "Home" it should loop the sequence. What would be the correct code for this conditional statement and where would the conditional statement be inserted to loop the sequence as desired??? Or... is there another better way??
My current code for this action sequence is:
<s:Parallel id="Sequence3" effectEnd="Sequence3.play()">
<s:Parallel target="{designlayer1}">
<s:Fade alphaTo="0" duration="500" startDelay="2100"/>
</s:Parallel>
<s:Parallel target="{bitmapimage2}">
<s:Fade alphaTo="0" startDelay="2100"/>
</s:Parallel>
<s:Parallel target="{bitmapimage3}">
<s:Fade alphaTo="0" startDelay="2100"/>
</s:Parallel>
<s:Parallel target="{bitmapimage4}">
<s:Fade alphaTo="0" startDelay="2100"/>
</s:Parallel>
<s:Parallel target="{bitmapimage5}">
<s:Fade alphaTo="0" startDelay="1650"/>
</s:Parallel>
<s:Parallel target="{bitmapimage6}">
<s:Fade alphaTo="0" startDelay="1800"/>
</s:Parallel>
<s:Parallel target="{bitmapimage7}">
<s:Fade alphaTo="0" startDelay="1950"/>
</s:Parallel>
<s:Parallel target="{designlayer5}">
<s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
<s:Fade alphaTo="0" startDelay="5300"/>
</s:Parallel>
<s:Parallel target="{bitmapimage8}">
<s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
<s:Fade alphaTo="0" startDelay="5350"/>
</s:Parallel>
<s:Parallel target="{bitmapimage9}">
<s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
<s:Fade alphaTo="0" startDelay="5350"/>
</s:Parallel>
<s:Parallel target="{bitmapimage10}">
<s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
<s:Fade alphaTo="0" startDelay="5350"/>
</s:Parallel>
<s:Parallel target="{bitmapimage11}">
<s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
<s:Fade alphaTo="0" startDelay="4750"/>
</s:Parallel>
<s:Parallel target="{bitmapimage12}">
<s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
<s:Fade alphaTo="0" startDelay="5000"/>
</s:Parallel>
<s:Parallel target="{designlayer6}">
<s:Fade alphaTo="0" duration="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
<s:Fade alphaTo="0" startDelay="7900"/>
</s:Parallel>
<s:Parallel target="{bitmapimage13}">
<s:Fade alphaTo="0" duration="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
<s:Fade alphaTo="0" startDelay="7550"/>
</s:Parallel>
<s:Parallel target="{bitmapimage14}">
<s:Fade alphaTo="0" duration="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
<s:Fade alphaTo="0" startDelay="7900"/>
</s:Parallel>
<s:Parallel target="{bitmapimage15}">
<s:Fade alphaTo="0" duration="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
<s:Fade alphaTo="0" startDelay="7750"/>
</s:Parallel>
<s:Parallel target="{bitmapimage16}">
<s:Fade alphaTo="0" duration="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
<s:Fade alphaTo="0" startDelay="7900"/>
</s:Parallel>
<s:Parallel target="{bitmapimage17}">
<s:Fade alphaTo="0" duration="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
<s:Fade alphaTo="0" startDelay="7900"/>
</s:Parallel>
<s:Parallel target="{designlayer7}">
<s:Fade alphaTo="0" duration="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
<s:Fade alphaFrom="1" alphaTo="0" startDelay="11000"/>
</s:Parallel>
<s:Parallel target="{bitmapimage18}">
<s:Fade alphaTo="0" duration="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
<s:Fade alphaFrom="1" alphaTo="0" startDelay="11000"/>
</s:Parallel>
<s:Parallel target="{bitmapimage19}">
<s:Fade alphaTo="0" duration="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
<s:Fade alphaFrom="1" alphaTo="0" startDelay="11000"/>
</s:Parallel>
<s:Parallel target="{bitmapimage20}">
<s:Fade alphaTo="0" duration="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
<s:Fade alphaFrom="1" alphaTo="0" startDelay="11000"/>
</s:Parallel>
<s:Parallel target="{bitmapimage21}">
<s:Fade alphaTo="0" duration="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
<s:Fade alphaFrom="1" alphaTo="0" startDelay="10650"/>
</s:Parallel>
<s:Parallel target="{bitmapimage22}">
<s:Fade alphaTo="0" duration="0"/>
<s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
<s:Fade alphaFrom="1" alphaTo="0" startDelay="10800"/>
</s:Parallel>
</s:Parallel>
Thank you!!!!!!!!
Figured out my issue...
I had to select each layer for the 4 photo sequence and "Remove From State" for each layer. If this is done with all layers except the "Home" state, the images show only where appropriate.
So... "Loop an action sequence" is really easy.
I've seen a lot of complaining that "FC can't do it" but with a very simple code mod, I was able to do it WITHOUT using the video timer method.
I should also mention that I've never worked with Flash at all before this project and am only self-taught in HTML (basics). I was able to make a pretty good looking Flash component for a web site and never would have attempted it without FC. I have to say, while FC is a bit limited, GUI-based Flash is a great add for Adobe and will save me over $2k per year in web admin.
To edit the document in Notepad as mentioned in the first post:
the full text can be found here http://www.judahfrangipane.com/blog/2010/09/03/flash-catalyst-jailbreak-for-flex-developer s/
Editing MXML Documents
To edit your projects MXML documents we first need to find the path to the Flash Catalyst workspace. To do this publish your Flash Catalyst project (CMD / CTRL + ENTER). Now, the browsers URL shows the path to the project workspace. So in this URL, "file:///Users/judah/Library/Application Support/Adobe/Flash Catalyst/workspace/Project/bin-debug/Main.html", the project MXML documents are located at, "file:///Users/monkeypunch/Library/Application Support/Adobe/Flash Catalyst/workspace/Project/" when on a Mac.
Flash Catalyst project files
Project Files Description
/src - location of the application source files
/bin - the location of any additional flex libraries
/bin-debug - location of testing swf
/html-template - location of the html template that wraps around your application
/src/Main.mxml - the main application file. make your application changes here
/src/Main.css - the css stylesheet of the main application
/src/components - the location of custom components and component skins
/src/assets/graphics - location of optimized FXG graphic symbols
/src/assets/images - location of images
You can edit these XML documents in any text editor. To apply the changes you need to save the file and refresh the Flash Catalyst project. You can do this by opening the changed document in Flash Catalyst code view. When we do this it will recognize the document has changed and prompt you to use the newer version of the file. Select Yes. If the project does not rebuild immediately publish it using CMD + Enter.
Similar Messages
-
I just upgraded my to iOS5 but my songs are all gone. Anyway to fix this?
I tried to upgrade and I have back up my iPod but I still lost all my songs. Anyway to fix this?
No, the install of iOS 5 deletes almost all content... You will need to sync back with iTunes for your songs and Playlists.
Good Luck - Hope this Helps -
Just got a white iphone 4 but doesnt show up in itunes as a device
just upgraded from iphone 4
black to iphone 4 white but when i first connect it doesn't show up in itunes as a deviceiOS: Device not recognized in iTunes for Windows
-
Webpage does not show in Internet Explorer but does show in all other browsers?
I have created a webpage, www.nqms.co.uk, it does not show on Internet Explorer. I have tried to troubleshoot via the net and have used a CSS check program etc. but it still won't appear. Any help would be gratefully received.
Add the closing --> comment tag to your css section before the closing </style> tag (see below)
.style3 {font-size: 8pt}
-->
</style> -
Copy and paste action sequence?
i have an action sequence set to play on application start, but i also want to set it up to play whenever a user navigates to that specific page
Hello.
You can't copy-and-paste action sequences yet.
But you can if you were to open it in Flash Builder, but this would require a lot of 'fiddling about' with. -
apple loops for garageband pack doesn't show the folder content (loops, files...) in ableton live suite 8 library browser, but I can see all the loops in the folder from finder. how can i fix this? help please.
Thanks Barney, I tried that but all that comes up in Spotlight are the log files that show the file paths! I don't know how Steam works. Are all the files held by Steam on their server perhaps?
-
I'm wanting to use the "Actions" in Photoshop Elements 11. But when I get the actions box up, it is only showing a small list of effects to use. And no side bar. So I can't go any further. When I click on the little arrow at top and click on "load actions", I am only getting a box with empty space saying "No items match your search". The folder at the top does say "Actions". How do I get more effects? The tutorials that I've checked into all show a long list of effects in their box. Can anyone help?
To use the existing actions, try the following:
1. Open one of the Action Sets, in this example Special Effects is the Action Set, by pressing the small arrow beside the set name.
2. Then click on the name of the Action, in this example Faded Ink is the Action name.
3. Then press the Play button to run the action. -
Hi.. My internet and wifi are working on samsung phone and hp laptop but its not getting connected to iphone ipad, only skype is coming online rest all apps and safari show no internet connection. Got new linksys router WRT160NL , but situation same. Tried reboot, renew lease, forget network, reset network setting. Pls advice
Have you tried a simple reset of your iPod to see if that helps? To do this, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear.
Otherwise, have you tried any of the troubleshooting mentioned in this Apple support document?
iOS: Troubleshooting Wi-Fi networks and connections
B-rock -
While dealing with an external hardware i got a Java update4 request,but was not able to complete that update.After that when i switch on my Mac it shows reinstallation required.i was working with OSX 10.8.5,but after reinstallation now it is 10.7.5 .And while doing search for update it shows your software is uptodate..
Hi Hal,
One possibility, is a strange occurence when applying the big 10.5.8 combo, most people have to Repair Permissions twice in a row, then reboot. -
I have got an ipad 2 .It is not showing any home screen but showing a symbol of connecting USB with itunes.I have downloaded itunes on my pc and it shows sync with ipad.How di I get my home screen.Pl help
Follow the prompts for setting up your iPad with iTunes on your PC.
Which Windoze version is your PC running? -
It says I can drag Pages documents from iMac to iCloud. But nothing shows up.
Using latest with all turned on. How do I get Pages up to iCloud? The little wheel like action menu does not appear.yes is tehre another way
the directions do not explain anything other than drag
or use the little action wheel menu -
I've got a mac that powers up but just show a black screen? Any ideas?
I've got a mac that powers up but just show a black screen? Any ideas?
Try booting into Safe Mode , if it works then you know its a software issue. If not then you will have to take it in for service.
-
I got a new macbook pro but i have lost some music, tv shows and films. How can i get them back?
Click here and follow the instructions, or move them from the old computer. Any movies you've previously rented aren't transferable.
(79638) -
Can any explain the following: Background; my company uses google business app to host our email and calander. Ok, I just set up a iCal event and invited 3 people. 1 internal claims he never got but it showed on his daughters iPod and she does not email.
Hello binbingogoABC,
Shopping on BestBuy.com should be easy and fun and not fraught with the kind of trouble that you describe. I regret very much that this has been your experience.
Using the information you provided when you signed up for Best Buy Unboxed I was able to locate your cancelled orders. I have requested more information from my back-office partners. As soon as I have additional details about your situation, I will reply again to this message. In the interim, I'm sorry that I must impose upon your patience.
I'm very grateful that you wrote to us with your concerns.
Sincerely, -
Showing as have an unread message but I haven't got one. Same with email . Tried turning phone off and holding the power off and centre button but still showing as unread . Any one know how to get rid off this ?
Showing as have an unread message but I haven't got one. Same with email . Tried turning phone off and holding the power off and centre button but still showing as unread . Any one know how to get rid off this ?
Maybe you are looking for
-
How can I install Lion back on my mac, after the hard drive was replaced?
I had my hard drive replaced, by warranty. Guys in service centre installed 10.6.7 , but as my mac is a new one, and was eligible for free install of Lion. Unfortunately I didn't use time machine, so i don't have a back-up on software (I guess it's i
-
How to release the sunidm project from the server while debugging
Hello, I am using NetBean to work on the SunIDM project. Each time I have to restart NetBean if I want to run/debug the project. I have tried to use GlassFish and Tomcat, but both server somehow still holding the project even I stopped debugging in N
-
Once again Arch has made headlines on Os News. This times it's in the form of a how-to to get bluetooth working with Arch.
-
8500 officejet prints blank sheet but copies fine
HP OFFICEJET PRO 8500 AIO PRINTER I am able to copy documents fine in Black and Color; however, when printing either with wired or wireless the document feeds thru without any text being displayed. I tried in Word or Excel with same negative re
-
Dear Experters, I got this problem, when I am doing my first workflow exercise,I tried to create a workflow from a standard Template(ws00000038(for Purchase requistion)).I followed the following steps In pftc event is activated Workflow stratergies n