Issue with nav buttons in an image gallery

Hello,
I'm very new to flash and am using CS4/AS3. I have three image galleries of three images each. The images load dynamically from files on my computer. I've set it up so that when you click on a tab, you see a different set of three images.
The images load properly and it works to click forward to view them (that is, clicking on the image itself or the forward nav arrow). The issue I'm having is with the backward nav arrow. I keep geting an error message "Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found" when I click it.
The backward nav arrow works on the first gallery (egypt gallery) if I click that one first. But it doesn't work on the other two, and if I click back to the Egypt gallery after having been in the other two galleries, the back navigation no longer works in their either.
Basically, I want the user to be able to click on a tab to load the images, and then be able to click back and forth between the images. If they reach the last image in a gallery, I just want it to stop advancing and stay put on the final image, but for the user to be able to click backwards through them if desired. My code is pasted below (I'm sure it's more complicated than it needs to be... just a result of me being a complete novice!)
Any help or suggestions would be very much appreciated. Thanks so much.
stop();
//egypt gallery//
var myloader:Loader = new Loader();
var myrequest:URLRequest = new URLRequest("images1/egypt1.jpg")
var counter:Number=1
var total:int=3;
egypt_mc.addEventListener(MouseEvent.CLICK, cover);
function cover (e:MouseEvent):void{
object1_mc.x=414.15;
object1_mc.y=101.35;
object2_mc.x=520;
object2_mc.y=60;
object3_mc.x=630;
object3_mc.y=60;
left_mc.x=15;
left_mc.y=340;
right_mc.x=680;
right_mc.y=340;
stage.addChild(myloader);
myloader.x = 28;
myloader.y = 175;
myloader.load(myrequest);
myloader2.unload();
myloader3.unload();
myloader.addEventListener(MouseEvent.CLICK, shownextpicture)
function shownextpicture(e:MouseEvent):void{
counter = counter + 1;
if(counter<=total){
myrequest.url="images1/egypt"+counter+".jpg"
myloader.load(myrequest)
right_mc.addEventListener(MouseEvent.CLICK, forward)
function forward(e:MouseEvent):void{
counter = counter + 1;
if(counter<=total){
myrequest.url="images1/egypt"+counter+".jpg"
myloader.load(myrequest)
left_mc.addEventListener(MouseEvent.CLICK, back)
function back(e:MouseEvent):void{
counter = counter - 1;
if(counter>0){
myrequest.url="images1/egypt"+counter+".jpg"
myloader.load(myrequest)
//wikileaks gallery//
var myloader2:Loader = new Loader();
var myrequest2:URLRequest = new URLRequest("images2/wikileaks4.jpg")
var counter2:Number=4
var total2:int=6;
wiki_mc.addEventListener(MouseEvent.CLICK, cover2);
function cover2 (e:MouseEvent):void{
object1_mc.x=410;
object1_mc.y=60;
object2_mc.x=521.35;
object2_mc.y=102;
object3_mc.x=630;
object3_mc.y=60;
left2_mc.x=15;
left2_mc.y=340;
right2_mc.x=680;
right2_mc.y=340;
stage.addChild(myloader2);
myloader2.x = 28;
myloader2.y = 175;
myloader2.load(myrequest2);
myloader.unload();
myloader2.unload();
myloader2.addEventListener(MouseEvent.CLICK, shownextpicture2)
function shownextpicture2(e:MouseEvent):void{
counter2 = counter2 + 1;
if(counter2<=total2){
myrequest2.url="images2/wikileaks"+counter2+".jpg"
myloader2.load(myrequest2)
right2_mc.addEventListener(MouseEvent.CLICK, forward2)
function forward2(e:MouseEvent):void{
counter2 = counter2 + 1;
if(counter2<=total2){
myrequest2.url="images2/wikileaks"+counter2+".jpg"
myloader2.load(myrequest2)
left2_mc.addEventListener(MouseEvent.CLICK, back2)
function back2(e:MouseEvent):void{
counter2 = counter2 - 1;
if(counter2>4){
myrequest.url="images2/wikileaks"+counter2+".jpg"
myloader2.load(myrequest2)
//scientology gallery//
var myloader3:Loader = new Loader();
var myrequest3:URLRequest = new URLRequest("images3/scientology7.jpg")
var counter3:Number=7
var total3:int=9;
scien_mc.addEventListener(MouseEvent.CLICK, cover3);
function cover3 (e:MouseEvent):void{
object1_mc.x=410;
object1_mc.y=60;
object2_mc.x=520;
object2_mc.y=60;
object3_mc.x=629.95;
object3_mc.y=100.8;
left3_mc.x=15;
left3_mc.y=340;
right3_mc.x=680;
right3_mc.y=340;
stage.addChild(myloader3);
myloader3.x = 28;
myloader3.y = 175;
myloader3.load(myrequest3);
myloader.unload();
myloader2.unload();
myloader3.addEventListener(MouseEvent.CLICK, shownextpicture3)
function shownextpicture3(e:MouseEvent):void{
counter3 = counter3 + 1;
if(counter3<=total3){
myrequest3.url="images3/scientology"+counter3+".jpg"
myloader3.load(myrequest3)
right3_mc.addEventListener(MouseEvent.CLICK, forward3)
function forward3(e:MouseEvent):void{
counter3 = counter3 + 1;
if(counter3<=total3){
myrequest3.url="images3/scientology"+counter3+".jpg"
myloader3.load(myrequest3)
left_mc.addEventListener(MouseEvent.CLICK, back3)
function back3(e:MouseEvent):void{
counter = counter - 1;
if(counter>0){
myrequest.url="images3/scientology"+counter+".jpg"
myloader.load(myrequest)

You want to have the trace triggered when the problem occurs, so if the problem occurs when you use your back button, then you want to tie it in to that somehow.  I don't know why you are trying to trace all that you show.  The main thing you want to find out is why it is not finding the file, which will be defined by whatever value it is trying to use as a url.  Try to focus on the data you need to see and not just anything that comes to mind.

Similar Messages

  • HT204291 Since upgrading to iOS7, i have experienced issues with Airplay button missing

    Since upgrading to iOS7, i have experienced issues with Airplay button missing from the control menu as well as in Spotify.  It is as if airplay is not runing.  A temp fix: Reboot of the ipad mini (Home button+standby) Is there anything permanent?
    I have verified that my iPad mini and apple TV is up to date.
    Airplay enabled, the network is connected with internet.
    It is as if, airplay is a service that just stopped working and has to be restarted again via a reboot.

    Welcome to the Apple Community.
    Intermittent problems are often a result of interference. Interference can be caused by other networks in the neighbourhood or from household electrical items.
    You can download and install iStumbler (NetStumbler for windows users) to help you see which channels are used by neighbouring networks so that you can avoid them, but iStumbler will not see household items.
    Refer to your router manual for instructions on changing your wifi channel or adjusting your multicast rate.
    There are other types of problems that can affect networks, but this is by far the most common, hence worth mentioning first. Networks that have inherent issues can be seen to work differently with different versions of the same software. You might also try moving the Apple TV away from other electrical equipment.
    The following article(s) may help you.
    Troubleshooting AirPlay
    Troubleshooting Wi-Fi networks and connections
    Recommended Wi-Fi settings
    Troubleshooting Security Software

  • I think I am having shutter issues with my 5D mark iii. image is vignetting on top of frame.

    I think I am having shutter issues with my 5D mark iii. image is vignetting on top of frame. ( left side when shooting portrait).
    does not happen all the time. shoot 20 frames, not a problem then will happen 4 or 5 in a row or every other shot for a few shots.
    Studio situation with 4 lights but it is not a light issue. subject is dark also. all lights fire at full.  happens weather at 1/100 or down to 1/20. these 4 examples were shot at 1/50  f 10 iso 100. raw converted to jpeg. shooting teathered but I dont think that matters. has anyone else had shutter issues? can any one from canon give me any info or help??

    It may be that the flash is firing as the shutter is opening... but if you're having an issue with a sticking shutter, the shutter isn't completely open when the flash fires.  
    If this is the case then it wouldn't matter how long the shutter is open because the flash doesn't provide light continuously when the shutter is open... it only gives a burst.  That momentary burst is normally fired at the moment the shutter finishes opening up completely (but if the shutter is sticky and isn't completely finished opening when the flash fires... you'd have a dark edge.)
    If you used 2nd curtain shutter so that it doesn't fire until the moment before the shutter is intended to close, you shouldn't see vignetting even if the shutter is sticking.
    But this makes me wonder what the shutter count is on your body and if it needs service.
    Tim Campbell
    5D II, 5D III, 60Da

  • Anyone have an issue withe airplay button not being available?

    Anyone have an issue withe airplay button not being available?

    Since the last pair of updates, my game camera won't pan around in any adventure level, leaving many sub levels off screen.  This is happening in all community adventure levels as well as my own on my moon.  Also can't seem to decorate my adventure levels without experiencing major glitches, especially with changing the materials.  The updates fixed a lot of stuff, but it seems like they trashed some things too.

  • Issue with volume buttons on keyboard

    I have a Pavilion g7-1167dx Notebook, using Windows 8.
    I've had this problem for a long time, but just got around to trying to fix it.  The raise/lower volume buttons on the keyboard usually work fine.  However, after a while (a few uses or a few days), when I press either of these buttons,  the Volume image will appear on my screen and display the current volume level, but I will be unable to actually change the volume.
    To restore their usability, I need to open sndvol32 (or the volume icon on the bottom right of the screen) and change the volume any amount.  After doing so, the keyboard volume buttons begin working again.
    Any idea what is causing the volume buttons to stop working as I've described?

    Hello JasonScando.  I understand you're having some trouble with your volume buttons.
    I'd like you try reinstalling the sound card's drivers, the HP Quick Launch software, and the HP On Screen Display.
    Let me know the result and have a wonderful evening.
    Please click the white star under my name to give me Kudos as a way to say "Thanks!"
    Click the "Accept as Solution" button if I resolve your issue.

  • Issues with nested for loops - saving images from a camera

    Hi all,
    I've written a vi. to capture a specific number of images ('Image No') and save these images, outputted to a folder of my choice.  Each image is identified sequentially.  However, I wish to do a number of iterations ('Run') of this capture sequence, such that the filename of each image would be 'Filename (Run)_(Image No).png', e.g. run 5, image 10 would be 'Filename 5_10.png'.  I have tried a nested for loop for this but I receive an error 'Asynchronous I/O operation in progress' (I've attached a printscreen).
    Can anyone assist me in solving this problem? I preiously posted this in machine Vision but got no response (http://forums.ni.com/t5/Machine-Vision/Capturing-image-sequences-issues-with-nested-for-loops/m-p/19...).  Please find attached my vi.
    Kindest regards and thanks,
    Miika
    Solved!
    Go to Solution.
    Attachments:
    Labview problem.jpg ‏3841 KB
    Image sequence save to file.vi ‏48 KB

    Miika,
    the problem is not the filenam, but the name of the folder (AHHHHH!). You try to create the same folder in the outer for loop over and over again.... (it is the error message above the '======', not below )
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Help with nav buttons please

    Hey there, i've recently been following a tutorial and I have come across a problem with the AS for the nav buttons,  http://www.flash-game-design.com/flash-tutorials/basic-flash-website-tutorial-6.html, the tutorial says to write:
    btnabout.onRelease = function(){
        content.gotoAndStop("about")
    btnport.onRelease = function(){
        content.gotoAndPlay("port")
    btncont.onRelease = function(){
        content.gotoAndStop("contact")
    I have done this and it came with an error saying needs to be in handler, so i re-entered this:
    btnabout.on(release) = function(){
        content.gotoAndStop("about")
    btnport.on(release) = function(){
        content.gotoAndPlay("port")
    btncont.on(release) = function(){
        content.gotoAndStop("contact")
    This code then came back with a Expected a field name after '.' operator.  btnabout.on(release) = function(){ can anyone please help me i'm starting to pull hairs out?!
    Thanks
    P.S it must be AS 2.0 as that is what my portfolio page uses.

    The problem with the first attempt was not the code, but where you placed it.  That code needs to be placed on the timelinein the same frame as where the buttons are  (preferably in a separate 'actions' layer).  This approach is the better approach than trying to place the code on the objects because it keeps all code in a single easy to find location... the timeline.
    For the second attempt, assuming you were still trying to attach the code to the buttons, you should change the code to....
    on(release) {
        content.gotoAndStop("about")
    on(release){
        content.gotoAndPlay("port")
    on(release){
        content.gotoAndStop("contact")
    but.... each of those needs to be attached to the button associated with it and not grouped together.  This is an older style of coding that is best avoided due to ending up with code hiding on objects.

  • HELP!! Issue with mailto button in PDF

    Hi
    I have a button in a PDF form that attaches default email (LOTUS NOTES) when clicked. I have my settings in IE set to Lotus Notes as my default client and also in Lotus Notes I have the same settings.
    The form however does not work sometimes when the button is clicked, nothing happens. It works fine for me but doesn't on another computer with the same settings.
    Is this an issue with the PDF or Lotus Notes? If so any suggestions?
    Thanks

    Hi
    Both machines are running windows XP SP 3
    I have done some google-ing the issue but I didn't get any useful information.
    I tried it on the second computer again and it says no 'email exits'
    Any help on why this is happening will be very useful.
    thanks in advance!!

  • Buggy issues with keyboard buttons.

    Getting constant issues with keyboard keys in Photoshop. Delete key does not delete layer, Fill layer (Option Delete) only works when I change tools. And it does this intermittently. It's very annoying!
    Anyone else have these issues? These are just some of the issues that pop up.

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    etc.,
    someone may be able to help you (not necessarily this poster).
    a screen shot of your settings or of the image could be very helpful too.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Firefox Issue With Back button

    I am having an issue with SpryHorizontal Menus in Firefox when using the back button.  Even did a tutorial with Lynda.com and found their solution file had the same issue.  Would anyone who has had success with 3 levels of submenus care to share a snippet of their code as I cannot find the error and outside help hasn't quite resolved the issue.
    My code is following this basic outline
    <li><div align="center"><a class="MenuBarItemSubmenu" href="#">Academics</a></div>
          <ul id="Academics">
            <li><a class="MenuBarItemSubmenu" href="#">Departments</a>
                <ul id="Departments">
                  <li><a href="../tsc_bustech.htm">Business Technologies</a></li>
        <li><a href="../tsc_communications.htm"><font="11.75px">Communications</font></a></li>
          <li><a href=""../tsc_ethics”/>Ethics</a></li>
                  <li><a href="../tsc_finearts_hum.htm">Fine Arts and Humanities</a></li>
                  <li><a href="../tsc_math.html">Mathematics</a></li>
                  <li><a href="#">Natural Sciences</a> 
            <ul id="naturalsciences">
        <li><a href="../tsc_bioscience.html">Biological Sciences</a></li>
          <li><a href="../tsc_physicalscience.html">Physical Sciences</a></li>
        </ul>
              </li>
                <li><a href="../tsc_socialscience.htm">Social and Behavioral Sciences</a></li>
                </ul>
            </li>
    Thank you.

    Hi Beth,
    Just an FYI.  Also received another nice piece of information to store in the SpryAssets help file from an online Adobe Certified Course Director:
    Thanks for your email! It isn’t often I get a great question like that. I had to do some digging, but I came up with a solution. You might have already worked your way through it, but if not the problem is Firefox’s (and Opera’s) caching that’s causing the issue in question. To fix it, you have to reset the submenu dynamic class names when the user clicks the link (re-caching the page is a bad idea).
    This is a pretty simple javascript fix. The problem was so interesting that I posted the fix to my blog. You can check out the solution here: http://www.simpleprimate.com/?p=30 if you haven’t already figured it out.
    Maria

  • Issues with rollover buttons in Indesign CS6

    Hi,  I was wondering if anyone can shed some light on a issue i'm currently having. 
    I've produced a interactive map in Indesign, with rollover buttons which triggers an animation - all the buttons and animations seem to be set up correctly and once I export as a SWF they seem to work fine initially, but after a couple of rollovers some of the buttons just stop working.  If I refresh the page or reopen the swf file it then starts working again for a period, but again after a few successful rollovers some stop working again.  I'm wondering if this is a bug of some sort?  Ive also tested the .swf on a different machine and I experience the same issue.
    Any help with this would be be much appreciated.

    We might be able to help you but you'll have to drop the attitude. We're not Adobe here, but users like you.
    You'll need to tell us exactly what you're doing and what's not working for you. By "rollovers," you could mean the change of appearance of a button. You could also be meaning what are sometimes called Show/Hide buttons where clicking a button causes another button to appear. Which is it?
    And what kind of output are you attempting? Interactive PDF? SWF (Flash)? DPS?

  • Weird iWeb problem with nav buttons....

    Hi all. New to this and a complete idiot. The club which I am the Prez of needed a web site, and as no one else volunteered, I ended up doing it. Everything seemed to go fine for a while until I started modifying the original site....then I started getting weird things happening. Many of them I have figured out but the last one is beyond me. The problem is with the text in the nav buttons at the top of the pages. On the first page all the navigational buttons are fine, but on all the other pages the button that takes you back to the home page has text I never put in, and it does not appear in it's entirety. Can anyone provide any help as to how I can fix this. The URL is:
    www.nocasa-ft.com

    Indeed, the problem is with the cache. I cleared the cache and all now comes up as it is supposed to. Thanks so much for your suggestion. I was rather disappointed because it seemed the problem was with Safari, and I kind of like that browser. I didn't want to have to use something else.
    Thanks again.

  • Issue with Metadata when importing 30K images from Photoshop Elements 7

    I'm a new mac user and am moving ~30k images from my PC to my mac. I have photoshop elements 7 that I use on the pc and am moving everything over to Aperture. I maintain all of my organization on the PC using "key words". I made sure to move all of the metadata over to the Mac with the images. However, I would say approx 5,000-10,000 of the images have the wrong Metadata. For example, a key-word "Vacation" is showing up on an image that should say "Christmas". This is just an example and it's creating major issues with my smart albums. The wrong images are in the wrong albums. Help!?!?

    Hi Shellie
    Is anyone familiar with PSEDBTOOL? I've been told it will do a good job applying metadata to files inside PSE but I'm afraid to run it and have it screw up my current library.
    I'm not familiar with that tool. What I will say is that your caution is well founded. If you do try to run anything like that on the PC side, ensure first that you have a backup of any data that might be modified - and that you (a) know how to restore from the backup in case anything goes pear-shaped and (b) you've actually tested your backup (by doing a restore) and are confident with its integrity.
    One other thought has occurred to me since earlier. Let's try a different tool...
      – Locate one of your problematic master files - on the Mac side - as exported from PhotoShop Elephants.
      – Open it in Preview. (It lives in the Applications folder.)
      – Select +Tools > Show Inspector+ (if the Inspector is not already showing from an earlier session).
      – Click on the Inspector icon which resembles a simplified traditional magnifying glass.
    That displays the keywords in the file.
    How do they compare with your expectations (from PSE)? How do they compare with what's showing in Aperture?
    This won't solve the problem, but it might just shed some more light on the problem.
    Regards,
    Gary

  • Issues with site load time. (bg images)

    Hey, guys.
    Having an issue with a site uploaded with MUSE. None of the images are overly large, but the load time is 5 to 6 seconds where it should be instant.
    Looking at it, it appears as though all of the images are attempting to load simotaneously in one large chunk rather than in a line.  Is there anyway to remedy this?

    This isn't related to background images. It's how Muse is handling the loading of the ~100 images in the slideshow. Thanks for pointing this out. Until we have altered the loading method for these images, the only workaround I have is to decrease the number of images in the slideshow.

  • Spry validation issue with submit button

    Hi,
    I'm new to Spry but am having an issue getting it to work at all.  I created a very simply form (i.e. table with Spry text field and submit button).  I've read many articles and been to several forums, but I can't seem to find the issue I'm having.  Basically, when I go to preview the page in a browser, the table with the Spy text field and submit button comes up fine, but when I hit the submit button, I see the page refresh and any values I had in the text field disappear, but nothing ever comes up saying "A value is required," which is what I'm looking for. This happens even if I don't have any values in the text field.  Below are images of what I'm describing and also the code.  I verified that the "Required" check box is checked in the SpryTextField and the submit button action is selected to "Submit Form."  My setup is Win 7, DW6, & XAMPP.  Any help you can provide would be greatly appreciated.
    Before Submit Button pressed:
    Browser after button pressed: (same as above but no message saying "A value is required.")
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    test
    <table width="600" border="1">
      <tr>
        <td><form id="form1" name="form1" method="post" action="">
          <span id="sprytextfield1">
          <label for="test"></label>
          <input type="text" name="test" id="test" />
          <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span>
        </form></td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
      </tr>
      <tr>
        <td><form id="form2" name="form2" method="post" action="">
          <input type="submit" name="submit" id="submit" value="Submit" />
        </form></td>
      </tr>
      <tr>
        <td> </td>
      </tr>
    </table>
    <script type="text/javascript">
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "email");
    </script>
    </body>
    </html>

    Do yourself a big favor and don't waste time with Spry Validation.  Most modern browsers support HTML5 forms with the required attribute. 
    If you must placate older browsers, use jQuery validate script.  It's lightweight and works when HTML5 support is missing.  You can see an example below. If you hit submit with empty form fields, the required fields pop-up with messages.  View source in browser to see the code. 
    HTML5 Form with jQuery Validation
    Nancy O.

Maybe you are looking for

  • An app I downloaded is no longer showing up on my screen. The app store shows thar it needs to be updated, but the update bottom is colored light, not dark.

    I downloaded Pandora a while back. My 12 year old nieces were playing with my iPad and now the Pandora icon is not on my screen. The app store shows that it needs to be updated, but I can't do it. What can it do to recover my Pandora program?

  • Related to CJ20N

    Hi Guys, This is an urgent issue.. Already project and wbs element are created now they have added some custom defined fields now they want to upload the data to the custom define field's. So could you please help me out how to solve this issue.. Reg

  • EA1 - Ability to use Search option and code collapse/Expand option in ...

    Noticed the following feature which was Scheduled for Release 1.5 is missing. "Ability to use Search option and code collapse/Expand option in the Normal mode of PL-SQL Editor" This feature could save a lot of time on code reading/review/.... Thanks,

  • Positioning of Messageboxes

    Hello ! I use theme 3 in my application and all success messages after submitting or error messages are displayed in the center of the page. Because some pages (tabular froms) have long lines you have to scroll to the right to see the message. Is the

  • Cwm Error Message: API0307:

    Hi we know that we can rename the constraint name in OWB and infact I have done it lot of times but now it throws me the following error when I am trying to rename the constraint name in fact or dimension tables. What has to be done so that I am allo