Imagegallery VERY simple as3

I'm trying to do a very simple imgegallery for an iPaper.

I made this script, but its does not work.

Stop();

addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);

function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):void { }

pict1_BT:

gotoAndStop (1);

pict2_BT:

gotoAndStop (6);

pict3_BT:

gotoAndStop (11);

};

Can someone help me please?

I am a beginner in AS3...

Can you explain what your code is trying to do.  When you assign an event listener, you generally assign it to an object by using its instance name.  So maybe you want to do something like the following...

Stop();

pict1_BT.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);

pict2_BT.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);

pict3_BT.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);

function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):void {}

switch (event.currentTarget) {}
case pict1_BT:

gotoAndStop (1);

break;
case pict2_BT:

gotoAndStop (6);

break;
case pict3_BT:
gotoAndStop (11);

break;
by default:
a default location to go to

}

}

Tags: Adobe Animate

Similar Questions

  • Very simple question and CVI-program

    Hello

    I just started working with CVI, and as far as I can see, the principle underlying the interaction between various components is similar as in Delphi. I made a very simple example (Application of User Interface), containing a square button and a digital. My idea was to push the button, after which the DIGITAL controller displays a number. However, I can't figure out how to build a change of the function that is executed when you press the button. I tried a double click, right click, etc, but I couldn't understand it. I hope my question makes sense.

    Have you had a look in Chapter 2 of the getting started manual?

  • I'm using vista, and I don't know how to download music and save to flash memory directly. heat the vista. Under XP, it's very simple.

    I use vista media player, and I don't know how to download music and save to flash memory directly. Heat the vista. XP is very simple.

    Hi bojanaana,

    You can access online stores of in windows media player. Once you do, you can download music and video files from online stores.

    For more information please visit the link below
    Shop online in Windows Media Player
    http://Windows.Microsoft.com/en-us/Windows-Vista/shop-online-in-Windows-Media-Player

    Once you download the music or video you can drag and drop the music or video on the USB drive.

    I hope this helps!

    Halima S - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I need a very simple database system. I am the end user to allend users!

    Original title: database access

    I need a very simple database system. I am the end user to allend users!

    Access is rather dated, but could probably manage it if you own and that you already have a model for what you need.  Just open it and see if all the default options are what you are looking for, and it will put you in automatically:

    If this is not the case, just tell us what your needs are and I'm sure we can make a suggestion

  • My 2015 Indesign is annoyingly slow, wait for wheel rotation for very simple things all the time. Is there a way that I can return to Indesign 2014 please?

    My 2015 Indesign is annoyingly slow, wait for wheel rotation for very simple things all the time. Is there a way that I can return to Indesign 2014 please?

    Hello

    Please see: -.
    http://blogs.Adobe.com/adobecare/2015/06/16/how-to-find-and-install-previous-version-of-ad obe-apps-in-cc-2015.

  • How can I add two very simple Questions to a slide?

    Hello

    I would like to be able to add two very simple questions to a slide, but don't know if (or how) this can be achieved. I've explained this more in detail below:

    ====================================================================================

    Scenario of

    The slide must contain two questions:

    Question 1: with two check boxes for the options Yes and No

    Question 2: with five check boxes for options 1 2 3 4 and 5

    A button (for example named Submit) to verify the responses from users by triggering a tip Action that verifies the radio buttons that have been selected.

    ====================================================================================

    The checkbox Widget looks like it could work for this scenario, because it allows each value to be assigned to a variable. However, when you try to put in place the tip Action I couldn't see all the variables I named in the checkbox Widget.


    If anyone has done this kind of thing before and can offer advice on the best way to create custom questions, I'd appreciate any help.


    For reference, I use 8 Captivate.


    Thank you


    Ross

    I indeed used interactions of checkboxes or radio buttons many times for this kind of slides. That's why I'm confused and I first want to know if you want an answer to the second issue as well? For the first question, it is clear that you need an interaction of option buttons, I don't know if you want to allow more than one choice for the second question. Only when you need to allow more than a choice will you have the interaction of check boxes, in the other scenario, option buttons will do the trick. It makes a big difference, because the radio button widget has only one associated variable that will store the selected element. For the widget checkboxes, you need a variable for each choice.

    Maybe my blog could help clarify, you can also download a descriptive table with all interactions of CP8 training

    Advice - Training interaction - Captivate blog

    BTW, I moved this thread to the Quizzing subspace.

  • In photoshop, I imported an image and put on a transparent background.  It's a very simple picture, like a drawing done in pencil.  How can I change from black to white?  Hope I don't confuse anyone, I don't always word of things well lol.

    In photoshop, I imported an image and put it on transparent background.  It's a very simple picture, like a drawing done in pencil.  How can I change the color from black to white?  I hope that my question is not a source of confusion, that I didn't Word always good things.

    Invert

    Shortcut Ctrl + I or CMD + I

  • Need help very simple drawing spiral overlapping

    I'm surprised that it is difficult to search for on this form. It's a whirlwind, but it is much simpler than the ones you find on a Google search. I'm just trying to draw a very simple line representing almost in a schematic way, a whisp of smoke. Very easy to make a clumsy with the pencil. But I would like a no clumsy. My deep gratitude to all those who can show me why the solution is obvious and I'm just a dope.

    Rob

    smokeSpiral.png

    Hey Rob! Thanks for reaching out. Here is a link to a similar post which can be useful... I think that post #2 will be your best bet.

    Let me know if it helps!

    -Kathleen

  • MS Word opens when I try to get a glimpse of a very simple project

    Hello

    I'm just getting started with Captivate 8. I created a project of a slide... it's very simple, but the text... and tried to preview it. When I click on preview project option, MS Word opens a file called rindex.html and Captivate does not give me the preview mode.

    * I have more than enough disk space

    * I'm saving the project to my office, not a network drive or an external hard drive

    Any ideas what could be causing this?

    Thanks for your help.

    Looks like the HTML files are configurΘ to dΘmarrer with the Word on your system, very weird, but users sometimes do strange things.

  • Create quizzes very simple function

    Greetings,

    I tried to create a very simple function that records click on the buttons "right answer" and what right answers is 3, the user is taken on a label that has fine text on this. Nothing fancy, just by clicking on text (or should it be text converted to symbol?), which increments a variable and when it == 3 it goes to a label on the timeline.

    Here is the code I have... but it doesn't seem to work...

    i = 0;

    {sym.$("ques1Yesbtn","ques2Yesbtn","ques3Yesbtn"). Click (Function ()})

    i ++ ;

    If (I == 1) {}

    Q1 = 1;

    }

    If (I == 2) {}

    Q2 = 1;

    }

    If (I == 3) {}

    Q3 = 1;

    }

    var gotoFinishedLabel = q1 + q2 + q3;

    If (I == 3) {}

    read the chronology of the given position (ms or label)

    SYM. Play ("finished");

    }

    else {}

    read the chronology of the given position (ms or label)

    SYM. Play ("quesHome");

    }

    });

    Thanks much for any help!

    AB

    You will find a demo file download here: quizz.zip - box

    A few highlights:

    (1) the scene:

    (2) an element:

    (3) code:

    Thus, a few explanations.

    County of jQuery for you:

    1. because it refers to the questions together to add click event ==> sym.$(".question").on ("click", function () {...
    2. because it returns [good] answers how much I ==> var count = sym. $(".answered") .length;

    I add 'responded' class to the element current ==> sym. $(this) .addClass ("answered"); I assumed that the answer is correct.

  • Issue of Migration cold very Simple...

    Hey guys,.

    I'm relatively new to VMWare, infact, I take the vcp - 310 exam tomorrow, lucky me!  In any case, I have a very simple question, basically I can't find all the information on how to do a migration cold or in fact if it is the right solution to my problem.  I rebuilt my server ESX (3.5) and kept the VMFS volume local orginal up thanks to its VMs located on it.  Now, I want to attach them to the newly installed ESX, I can easily create new ones and add the drive but that is not the same, for example will be difference NVRAM, VMX, etc. files.  Is "cold migration" what I'm looking for?  Or is there another way I can fix this?

    Thanks in advance for your help.

    See you soon

    Neilos

    witch hunt... Just find the data store in which the virtual machine is on, browse this data store, find the virtual computers folder and inside you will see a .vmx file.  Right click on that and choose 'Add to inventory' and follow the prompts.

  • Trying to do a very simple tone of scanning. Help, please!

    I'm trying to accomplish a very simple tone:

    The tone must:

    -Start a 325hz database frequency

    -Less than 250 Hz

    -Sunrise at 400 Hz

    -Back to 325hz

    -Do this 1 time on 72 seconds

    Can someone instruct me upon completion of this in Audition 3.0.1?

    Thank you!!!

    You will need to do this in three sections by using the generate/tones menu. Firstly the frequency setting Initial 325 value and the Final setting to 250. Then the section from 250 to 400. Finally, the 400 return to 325. You may need to vary the lengths of the section because the frequency ranges are different. The first will, and the second is more or less equal to, say, 30 seconds each and the last 12 seconds. You will have to juggle the time to make it sound even. Then just edit the three sections together making sure that you join them at zero Crossing points.

    Or you try to generate a continuous tone of 325Hz for 72 seconds and try to manipulate the Pitch Bender effect.  Unfortunately this gives only the key change music semitones then you might have trouble getting the upper and lower frequencies quite accurate.

  • Help required for a very simple HTTP connection to a remote server (not localhost)

    Hello

    FlashBuilder 4.x is very promising, but the system is very difficult to use and very simple data binding operations making becomes a daunting task. In addition, the documentation is terrible, and it seems that each example Adobe has ever published of concerns localhost and not on a remote server. What happens if we do not use localhost, Adobe?

    Please, can you show me or tell me, how to link external data - even something simple like "hello world"-in a control on the page - textarea, datagrid, etc.? I want to use the HTTP services or return some HTML/XML/JSON - or even nothing. Whenever I try to connect, I get an error saying the URL I entered contains an error and I need to check the settings etc. Here my script, which is a ColdFusion script just returns (valid) XML. I also have a crossdomain.xml in the root of the server file and the script works fine when the seizure in the browser, etc..

    Enjoyed all the examples. Really want to dumping FB4.6 in the trash at the moment, because simple things that can be coded by hand in seconds become enormous tasks in FB

    Kind regards

    Mark

    Nevermind, I finally remove FlashBuilder and installed Corona. A written my first application in an hour, FlashBuilder is a dinosaur compared to Corona. Corona which supports also a lot faster and the documentation is much better. FB is bloatware and much too bulky. If you want quick results and an API that works out of the box, I would advise you to Corona. I spent many wasted hours juggling FB and it does not only deliver.

  • Never over charge when downloaded, xml, very simple problem Gallery

    Hi all

    I'm havin a very stupid problem atm, I made this slide show very simple wich loads images via an XML file. Everything works very well locally, load slideshow images nice blablabla. But problems when I load up my server, once it is downloaded and I try t o play I get this error:

    [QUOTE] Error #2044: Unmanaged by the IOErrorEvent:. Text = Error #2036: finished loading never. [/ QUOTE]

    It has something to do with the .xml file that I load here as:

    var request_xml:URLRequest=new URLRequest("setup.xml");
    

    I tried to replace it with ("http://www.semagames.be/.../setup.xml" ' "), but then I got a sandbox violation error that is not solvable, unless you get signed (I read that somewhere).

    The way I load the images in XML format:

    <SLIDE_SHOW>
      <PICTURE>ImagesBw/Foto1.JPG</PICTURE>
      ...
    </SLIDE_SHOW>
    

    The file, a great pain in the * ss, can be found here: http://semagames.be/testplaats/kutbucht/BG.swf

    Anyone who can help me out here? would be greatly appreciated.

    your images are tiny extension.  Attach your xml file.

  • How to make things very simple...?

    I'm always familiarize myself with the Text Layout Framework methods and Classes.  I looked up how to do two very simple things.

    Someone more familiar with this framework can give me a lead?...

    1. How can I get the text of markup for a TextFlow?  I know how to import text markup - but where is accessible after that?

    2. I can see how to set the focus of selection - but how what I lose?  Unfocus?

    The TextConverter class has an export function.  It converts a TextFlow to either an XML or a string object.

    Containers TLF lose focus when the focus moves elsewhere - in general, this happens automatically.

    See the example for more recent code posted here:

    http://opensource.Adobe.com/wiki/display/tlf/text+layout+framework

    HPE that helps,

    Richard

Maybe you are looking for