Display a series of images on the stage based on the value of a variable

Hi all

Here's another interesting problem! Well, I have an interactive retention test which is charge of an xml file based on the value of a variable scenario (for example, if script = Architecture, then load Q_set 1, if scenario = history then load something else). Now, I would like to extent this and display a series of images on my stage which will be valid only in the current scenario. Here is my code so far. I thought load a list of images on the beginning of the film (for example, Architecture_list, History_list) and then call them according to the value of the variable of scenario, but I would like to hear what you have to say. Any ideas?

The answer is a series of managers: one called at the beginning of the movie to fill the lists of the appropriate folders (based on the value of the variable gimage) and the other called next and previous. Here they are in case yu need:

---------
Global gFileList, gImagePath, gimages

on buildList

gFileList =]

-defining the path to images:

gImagePath = "@images /" & gimages & ' / ' "»

Repeat with i = 1 to the maxinteger
thisFile = getNthFileNameInFolder (gImagePath, i)
If thisFile = EMPTY then exit
If thisFile = the movie then the next repetition
types of files = [".pct", ".jpg", ".bmp", ".gif"]
howManyTypes = count (fileTypes)
Repeat with thisType = 1 to howManyTypes
extension = getAt (file types, if thisType)
If thisFile contains extension then
gFileList.append (thisFile)
end if
end repeat
end repeat

Member ("Display"). FileName = gImagePath & gFileList [1] - put the first image in the folder at the appropriate place

Member ("Display"). Picture = .photo member ("display")

buildList end

--------------------
Global gFileList, gFileIndex, gImagePath

on nextFile

gFileIndex = gFileIndex + 1

If gFileIndex > count (gFileList) then

whichFile = gFileList [1] - set the image = in the last loaded picture holder
gFileIndex = 1 - the value of the index to the last trick question

Member ("Display"). FileName = gImagePath & whichFile
Member ("Display"). Picture = .photo member ("display")
updateStage

-go to the audio issues

_movie. GB (31)

on the other

whichFile = gFileList.getAt (gFileIndex)

Member ("Display"). FileName = gImagePath & whichFile

Member ("Display"). Picture = .photo member ("display")

updateStage
end if

end

Global gFileList, gFileIndex, gImagePath
-----------------------------------------------------------
the backfile

gFileIndex = gFileIndex - 1

If gFileIndex = 1 then

whichFile = gFileList [1]
Member ("Display"). FileName = gImagePath & whichFile
Member ("Display"). Picture = .photo member ("display")
updateStage
Sprite (17) TRUE = FALSE - disable the "back" button

-gFileIndex = count (gFileList)
end if

If gFileIndex > 1 then

whichFile = gFileList.getAt (gFileIndex)

Member ("Display"). FileName = gImagePath & whichFile
Member ("Display"). Picture = .photo member ("display")
updateStage
end if
end

Tags: Director

Similar Questions

  • How can I display a series of images in the same picture frame?

    I am a user of mid-level and recently saw a feature on a website that I would like to incorporate into my own creations. I am looking for a teaching link explaining this process. There is a picture on a published web site. For the right side and left side of the main image are two small pictures: a "triangle forward" and an "inverted triangle". When you click on the triangle before image main change to image #2, and again to the #3 image. By clicking on the left side "inverted triangle" brings the user to #2 image, then the image #1. All the main images are located within the same frame, it's just that you can click back through a series of images half a dozen. It seems easy, but I can't find the right instructions. Can anyone suggest a link or two? Thank you!

    From the code




    It's using this script

    http://www.ndoherty.biz/tag/CODA-slider/

    See also

    http://jqueryfordesigners.com/CODA-slider-effect/

  • When I resize a photo to the web LR displays a very small image, not the actual size.

    When I resize a photo to the web LR displays a very small image, not the actual size that appears when I download on a website! ???

    Yes, it should work. It should show you exactly what the image will look like on normal, non-retine displays. At least if you have the resolution of your screen (in preferences-> display system) the value 'best for display '. In this case your computer exactly double the resolution.

    The link I posted above is for when you want to go further. In fact, he shows how to send images of different sizes to people looking at your site on the retina against those who seek to your site on normal screens. This will allow a still sharper image that people can get on a display to display. What it basically does is make their web browser asks a 1600 pixel image if only they are viewing on a screen high resolution while asking a low-resolution image 800 pixels for people using normal poster. This example uses all available pixels to choose the type of display. It takes just a bit of HTML and javascript coding. My main site done automatically like smugmug has this built already, but my blog site does not automatically so I had to code around it. This makes your images look amazing on the screens with high resolution such as on the screens of the retina and iPads.

  • Selective display of a report based on the value of a Variable of presentation

    Hello

    Is it possible to selectively display a report on a dashboard page based on the value of a variable presentation.

    I have 5 reports that are part of the same page that has a page with 5 options-level prompt.

    According to the option selected in the command prompt that the value is stored in a variable of the presentation, I need only 4 reports to view at any time (ie 1 report should NOT be directed).

    Example: -.

    When Option 1 is selected 1,2,3,4 reports must be posted
    When Option 2 is selected 2,3,4,5 reports must be posted


    Thanks in advance

    Hello

    Search this Guided Navigation forum. In this way, you can hide a section on your dashboard based on the results of a report that is "hidden".

    Good luck

    Daan Bakboord

  • PROBLEM changing the value of a variable in my scene movieclip

    Hello
    I have a problem changing the value of a variable in my scene movieclip. I explain: I combobox on my stage containing the categories, and in the scene that I load an xml file containing links to php files that work with the combobox control.
    On the stage I have a movieclip "camera roll" inside this movieclip on the first image I have a php script file selected in the scene of loading. I use a function with a variable load() "theUrl" inside like this: T.load (theUrl);
    In my scene, I want to change the value of "theUrl" within the film of movieClip. I tried filmstrip.theUrl = url; But it does not work

    the xml file
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <slideshow>
    <area title1="10 Last updated" link1="link1.php"/>
    <area title1="special" link1="link2.php"/>
    </slideshow>

    Here is the code on my stage:

    var link1:Array = new Array();
    var LINK:String;
    var url:String;
    var whoOn:Number;
    whoOn=0;
    var x:XML = new XML();
    x.ignoreWhite = true;
    x.onLoad = function(success) {
    var photos:Array = this.firstChild.childNodes;
    for (i=0; i<photos.length; i++) {
    _root.link1.push(photos[i].attributes.link1);
    }
    url=link1[whoOn];
    filmstrip.theUrl=url;//<<--HERE
    };
    x.load("category.xml");
    
    var cbListener:Object = new Object();
    cbListener.change = function(event_obj:Object) {
    trace(select.selectedItem.label);
    if (select.selectedItem.label == "Last updated") {
    whoOn=0;
    } else if (select.selectedItem.label == "Special") {
    whoOn=1;
    }
    url=link1[whoOn];
    filmstrip.theUrl=url; //<<-----HERE   
    };
    select.addEventListener("change",cbListener);
    
    

    Here is the code inside the clip "film".

    var T:XML = new XML();
    T.ignoreWhite = true;
    T.onLoad = function(xml) { 
    etc etc etc }
    
    T.load(theUrl);    //<<---HERE it still undefined

    the code on the timeline of the film should be placed in a function() (or better, move all your code to the main timeline).  but, if you leave the code on the timeline of the film strip, call the function that contains this code whenever the url changes.

  • How to set the value of a variable in automator?

    I'm totally new to automator I found a post that I try to reuse

    to Re: copy multiple files from TextEdit in one Word file

    I want to open a series of html files in a folder and convert in a TextEdit rtf file.

    However, I am unable to automator find out how set the value of a variable such that it appears in this post

    I looked at every command in library without a lot of fortune

    Any help?

    Thank you

    Dan

    Its in Utilities.

    In Automator, use the search box:

  • Monitor changes in the value of a variable in a module of code labview TestStand?

    Hi all

    A code in Labview module called from an action step has a particular variable that changes its value when running vi. Is it possible to monitor these changes through for example a local variable in TestStand and display different values on UI in real time via UIMessages?

    Thank you very much!

    You must post a UIMessage during execution of your VI.  As the following picture below, you can ignore the SequenceErrorMessage string and use the value of your variable as the numericDataParam.   I guess the trick is to determine where to display the user interface of Message, in your case, the variable updated at certain times or it he constantly updated?  I'm not sure of the performance LAG if at all times you post a UIMessage say every 100ms.

    On the other end, you will need in your interface user create a reminder of the Interface to manage the UIMessage.  See the following link for more details.

    http://www.NI.com/white-paper/4532/en

    Enjoy,

    PH

  • Name of the dynamic property of object in the table based on the value of a variable

    I have two paintings of custom class objects

    var obj1:Object1
    var obj2:Object2
    
    var array1:Array = [obj1[0], obj1[1], ...]
    var array2:Array = [obj2[0], obj2[1], ...]
    

    Object1 has a property named. Name while Object2 has a property named. Title.

    Now I have a common function including cab accepts an array (array1 or array2) and the name of property the object ("Name" or "Title") as input and needs to access this name of the property of the objects in the array:

    function myFunction(arr:Array, fieldName:String)
    {
        arr[0].fieldName  = "xxx";
    }
    

    the problem I have this achievement does not because the code in the function assumes that the property of that object in the table is actually a string "fieldName" while I want to dynamically determine the names of the fields based on the value of this variable, but cannot understand the syntax to do!

    Don't know if I'm clear - hope that makes sense... ;-) Thank you

    Hey p3pp3r,

    I think I understood you. Try the following and see if you get good results:

    function myFunction(arr:Array, fieldName:String)
    {
        arr[0][fieldName]  = "xxx";
    }
    

    Let me know how it turns out. Good luck!

  • How to assign the value of a variable to a quiz?

    Hi, I have a problem, I attempted to set the value of a variable for the quiz on the final value of the project, any suggestions?

    Sorry but I do not understand your question at all. If you talk about a quiz like cpQuizInfoPointsscored or cpInfoPercentage system variable, this is all simply impossible because the system variables are read-only.

  • Access the value of a variable assigned to CompositionReady?

    I created a variable called counter inside the 'scene' in the "CompositionReady" using the following code.

    var counter = 0;

    How to get or write the value of this variable

    through a 'trigger '?

    Remove the var on the counter.

    Just so put this in compositionReady

    counter = 0;

    Then you can just call him in a trigger as

    Alert (Counter);

    or

    counter + 1;

    or as if (counter == 1) {}

    }

    or whatever.

    I hope this helps.

  • How to apply the procedure inside a procedure and the evils of the value in a variable?

    Hi all

    I'm usung oracle 11g.

    Here is my package and procedure

    I want to call get_email_details this procedure within the process_email_master and store the value in a variable in main proceedings

    create or replace

    PACKAGE ms_gen_process_email

    as

    type email_type is rendered (subject varchar2 (4000 tank),

    email_body varchar2 (4000 tank),

    to_receipent varchar2 (4000 tank),

    cc_receipent varchar2 (4000 char));

    type email_type_table is table of the email_type;

    procedure process_email_master)

    p_metric_name IN VARCHAR2,

    p_current_stage in varchar2,

    p_action in varchar2,

    p_pid number,

    P_OBJECT_ID in varchar2

    -p_emai_master on p_email_type_table

    );

    PROCEDURE get_email_details)

    p_metric_name IN VARCHAR2,

    p_current_stage in varchar2,

    P_ACTION in varchar2,

    p_email_type_table1 on email_type_table

    ) ;

    END ms_gen_process_email;

    ----

    create or replace

    PACKAGE ms_gen_process_email BODY

    as

    procedure process_email_master)

    p_metric_name IN VARCHAR2,

    p_current_stage in varchar2,

    p_action in varchar2,

    p_pid number,

    p_object_id in varchar2

    )

    as

    Start

    null;

    EXCEPTION

    WHILE OTHERS

    then

    null;

    end process_email_master;

    PROCEDURE get_email_details)

    p_metric_name IN VARCHAR2,

    p_current_stage IN VARCHAR2,

    P_ACTION in varchar2,

    p_email_type_table on email_type_table

    )

    as

    BEGIN

    Select the object, email_body, to_receipent, cc_receipent

    bulk collect into p_email_type_table

    of ms_gen_email_config_detail

    WHERE email_key =)

    SELECT email_key

    OF ms_gen_email_config

    WHERE metric_name = p_metric_name

    AND action p_action =

    and current_stage = p_current_stage

    );

    for me in p_email_type_table.first... loop of p_email_type_table. Last

    dbms_output.put_line (p_email_type_table (i) reserve .under | p_email_type_table (i) .email_body: p_email_type_table (i) .to_receipent: p_email_type_table (i) .cc_receipent);

    end loop;

    EXCEPTION

    WHILE OTHERS

    THEN

    NULL;

    END get_email_details;

    END ms_gen_process_email;

    but I get this error message

    Error (15,31): PLS-00201: identifier 'P_EMAIL_TYPE_TABLE' must be declared

    Concerning

    Dale

    See below the test case and change your code. You can call the procedure in detail within a main as procedure below

    CREATE or REPLACE PACKAGE test_pkg AS

    TYPE rec_val IS RECORD (empno, emp.empno%TYPE,

    Ename emp.ename%TYPE

    );

    TYPE nt_tabtest IS TABLE OF THE rec_val;

    PROCEDURE get_email_id (p_type to nt_tabtest);

    PROCEDURE get_email_master;

    END;

    /

    CREATE or REPLACE PACKAGE test_pkg BODY

    AS

    PROCEDURE get_email_id (p_type ON nt_tabtest)

    AS

    BEGIN

    SELECT EmpNo, ename COLLECT in BULK in p_type FROM emp;

    END;

    PROCEDURE get_email_master

    AS

    v_type nt_tabtest;

    BEGIN

    get_email_id (v_type);

    BECAUSE me IN v_type. FIRST... v_type. LAST

    LOOP

    DBMS_OUTPUT. Put_line (v_type (i) .empno: v_type (i) .ename);

    END LOOP;

    END;

    END;

    /

    Post edited by: 000000

  • Can we use the value of a variable in a warning message

    I have a variable in forms6i. I want to use the value of this variable in an alert message. How is that possible?

    Gul says:
    I have a variable in forms6i. I want to use the value of this variable in an alert message. How is that possible?

    Try

    DECLARE err_txt VARCHAR2(200) t;
     al_id ALERT;
     al_button Number;
    BEGIN
    al_id := FIND_ALERT('My_Error_Alert');
    SET_ALERT_PROPERTY(al_id, alert_message_text, 'Hello how are you mr. variable '||:variable_name );
    al_button := SHOW_ALERT( al_id );
    END; 
    

    Hope it works...

    Hamid

  • problem by setting the value of a variable substitution in a calc script

    Hi all.


    I'm trying to update the value of a variable substitution inside an IF statement, and I have a problem.

    Here is the code:


    * "Jan" (*) "
    IF (LoopCounter = 1) & varEntity = "100";
    ENDIF ;)

    the error that I get back from Regional service is:

    Error: 1200336 error analysis [Jan] (line 54) formula: [()] without [)]

    It's tricky. Without really analyzing the details of your example, two options that might be worth a visit:

    1. write a MaxL script for updating the subvar (s), and then run the calc, x 20. 40 lines of MaxL and 500 lines of code is 10 000. Obviously, this only works if the launch of the MaxL script is feasible, and you know that you aren't going to have multiple instances of the calc (or any what calc which depends on these subvars) running at the same time. But I guess you're OK with the last part, because even your original solution would have this problem
    2 hyperion Business Rules

    I know that CL knows a lot of HBR, if he is here today...

  • Image from the camera as local variable

    Hey,.

    I'm looking to use the same image reference for each of my camera inspections. I take a picture at the beginning of my test that I call this camera image1, then I have several inspections test, however, my camera1 image is empty for the 5 first steps but displays a picture of 3 steps then gives a blank image in the end I created a local variable of the reference image. Any useful suggestions. Thank you.

    Damien

    Hey,.

    Thank you for the interest that I have resolved the problem, reson why the image doesn't seem to my wizard output vision express VI was because I never restored the original image. Thanks again.

    Damien

  • Canon 5 d Mark ii Images with the value of the white balance fixed. When they are imported into Lightroom, the value is different.

    If I take a shot with the fixed value of 5200K WB (5 d Mark ii) and import into LR 2015.2.1, happens to 4850K. No presets or applied adjustments.

    No idea why? How can I solve this problem?

    Rich

    All raw converters use four multipliers of white balance RGGB tinted and embedded in the raw file EXIF data to set the white balance and 'calculate' the temperature values displayed inside the module development LR WB.

    Scroll down to the "White Balance" section of the DCRAW tutorial PDF here: GUILLERMO LUIJK > TUTORIALS > DCRAW TUTORIAL it's all so raw converters all the rest of the white raw file and 'calculate' the temperature and tint values.

    Here is a Canon 5 d MKII CR2 file with the White Balance adjustment 'in the know' behind closed doors:

    (Data EXIF Maker Notes)

    The setting "As Shot" WB in LR shows a Temp of 4800 reading, which should produce a slight visual difference that the planned in-camera closed 5134 parameter, correct?

    However, with the LR settings file, "As Shot" above the white balance CR2 is the JPEG file in camera perfectly on my Canon 5 d MKII (raw + JPEG file format). It's just that Temp readings do not, because they are "calculated" four RGGB multipliers. Each raw (LR, opening, C1) converter will probably show the values of temperature and tint different, since they are derived by using "reverse engineering" of the manufacturer of exclusive camera raw data structure and camera sensor response file.

    Keep in mind that the spectral response of the camera is affected by changes in batch. A Canon 5 d MKII body can produce slightly different WB as one another using the same exact settings. Rather than depend on private clos or LR presets use a good white balance card or the ColorChecker Passport to 'calibrate' LR white balance settings standard shooting conditions (daylight, cloudy, Flash, etc.). For critical projects draw card of the white balance at least once for each unique lighting condition. You can then determine the correct inside the LR setting and settings of synchronization of the World Bank through all the images taken with this specific lighting.

Maybe you are looking for

  • Press and hold the menu does not appear while composing email - iOS 10

    As per above, if you press and hold before type anything, the submenu would not appear. You must type something in front first, then press and hold to see the submenu. As on the new line without typing anything, submenu just appear in press and maint

  • How to create the same folder inside the 200 other files?

    I have 200 users access my OS X Server with access only to their protected folder name and password of the user. Often, I need to put an empty folder with the same name in all 200 of its files to the user. I have not found a way to automate this proc

  • cannot slide to unlock

    I just bought the new iphone 6s on Black Friday and tonight I could not slide to unlock. I tried to turn off phone however, it wouldn't work. Tried to use Siri, but he randomly calls people, facetime etc... I have not updated my phone since the purch

  • USB flash drives not detected on the Windows XP-based computer

    Original title: flash drives I have win - xp on a dell 2400 platform its flash USB 2.4 G & 533 Mhz. readers and cameras are no longer rec. of my USB ports on comp. I formatted & restarted win - xp on the computer to fix this problem without success.

  • lack of missing smwdmif.dll

    my computer comes up and says file smwdmif.dll.dll missing not found.it tells me to put the CD of windows, but I don't come with a CD, but I don't have the key number located on the back of the computer.