/**
 * Adobe Edge: symbol definitions
 */
(function($, Edge, compId){
//images folder
var im='images/';

var fonts = {};    fonts['Helvetica']='';
    fonts['cabin, sans-serif']='<script src=\"http://use.edgefonts.net/cabin:n4,i4,n7,i7,n5,i5,n6,i6:all.js\"></script>';

var opts = {
    'gAudioPreloadPreference': 'auto',

    'gVideoPreloadPreference': 'auto'
};
var resources = [
];
var symbols = {
"stage": {
    version: "4.0.1",
    minimumCompatibleVersion: "4.0.1",
    build: "4.0.1.365",
    baseState: "Base State",
    scaleToFit: "both",
    centerStage: "both",
    initialState: "Base State",
    gpuAccelerate: false,
    resizeInstances: false,
    content: {
            dom: [
            {
                id: 'MG2U2L3040101_bg',
                type: 'image',
                rect: ['49px', '81px','1265px','650px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"MG2U2L3040101_bg.jpg",'0px','0px']
            },
            {
                id: 'success',
                type: 'audio',
                tag: 'audio',
                rect: ['1128', '573','320px','45px','auto', 'auto'],
                source: ['media/success.mp3','media/success.ogg'],
                preload: 'auto'
            },
            {
                id: 'error',
                type: 'audio',
                tag: 'audio',
                rect: ['1128', '573','320px','45px','auto', 'auto'],
                source: ['media/error.mp3','media/error.ogg'],
                preload: 'auto'
            },
            {
                id: 'textCount',
                display: 'none',
                type: 'text',
                rect: ['1049px', '100px','227px','42px','auto', 'auto'],
                text: "0/0",
                align: "center",
                font: ['Arial, Helvetica, sans-serif', 24, "rgba(0,0,0,1)", "normal", "none", ""]
            },
            {
                id: 'descripcion',
                type: 'text',
                rect: ['100px', '246px','613px','auto','auto', 'auto'],
                text: "Lanza el dado 20 veces<br>",
                align: "left",
                font: ['cabin, sans-serif', 32, "rgba(26,26,26,1.00)", "bold", "none", "normal"]
            },
            {
                id: 'descripcionCopy',
                type: 'text',
                rect: ['131px', '303px','564px','338px','auto', 'auto'],
                text: "1. Construye una tabla de frecuencia con los resultados de cada lanzamiento.<br> <br>2. Construye un diagrama de barras horizontal descendente que represente la tabla de frecuencia. <br><br>3. Construye un diagrama de barras vertical ascendente que represente la tabla de frecuencia. <br><br>4. Identifica la mayor y la menor frecuencia. <br>",
                align: "left",
                font: ['cabin, sans-serif', 24, "rgba(26,26,26,1.00)", "400", "none", "normal"]
            },
            {
                id: 'instruccion',
                display: 'none',
                type: 'text',
                rect: ['100px', '203px','1150px','auto','auto', 'auto'],
                text: "Lorem ipsum dolor sit amet, consectetur",
                align: "left",
                font: ['cabin, sans-serif', 26, "rgba(102,102,102,1.00)", "400", "none", "normal"]
            },
            {
                id: 'cubo',
                type: 'image',
                rect: ['413px', '193px','4724px','400px','auto', 'auto'],
                clip: ['rect(0px 364px 400px 0px)'],
                cursor: ['pointer'],
                fill: ["rgba(0,0,0,0)",im+"IL_L_G01_U01_L01_03_03_01.png",'0px','0px'],
                transform: [[],[],[],['0.8','0.8']]
            },
            {
                id: 'IL_L_G01_U01_L01_03_03_02',
                type: 'image',
                rect: ['917px', '479px','216px','144px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"IL_L_G01_U01_L01_03_03_02.png",'0px','0px'],
                transform: [[],['-90'],[],['0.75','0.75']]
            },
            {
                id: 'boton',
                type: 'image',
                rect: ['958px', '565px','135px','135px','auto', 'auto'],
                fill: ["rgba(0,0,0,0)",im+"MG2U2L3040101_btn.png",'0px','0px']
            },
            {
                id: 'hotspot',
                type: 'rect',
                rect: ['962px', '572px','125px','122px','auto', 'auto'],
                cursor: ['pointer'],
                fill: ["rgba(192,192,192,0.00)"],
                stroke: [0,"rgba(0,0,0,1)","none"]
            },
            {
                id: 'Contador',
                type: 'text',
                rect: ['1179px', '199px','71px','auto','auto', 'auto'],
                text: "0",
                align: "center",
                font: ['cabin, sans-serif', 50, "rgba(0,0,0,1)", "700", "none", ""]
            },
            {
                id: 'Text2',
                type: 'text',
                rect: ['836px', '211px','auto','auto','auto', 'auto'],
                text: "Número de lanzamientos:",
                align: "center",
                font: ['cabin, sans-serif', 30, "rgba(0,0,0,1)", "bold", "none", "normal"]
            }],
            symbolInstances: [

            ]
        },
    states: {
        "Base State": {
            "${_boton}": [
                ["style", "left", '958px'],
                ["style", "top", '565px']
            ],
            "${_cubo}": [
                ["style", "top", '193px'],
                ["transform", "scaleY", '0.8'],
                ["style", "clip", [0,364,400,0], {valueTemplate:'rect(@@0@@px @@1@@px @@2@@px @@3@@px)'} ],
                ["transform", "scaleX", '0.8'],
                ["style", "left", '413px'],
                ["style", "background-position", [0,0], {valueTemplate:'@@0@@px @@1@@px'} ],
                ["style", "cursor", 'pointer']
            ],
            "${_descripcionCopy}": [
                ["style", "top", '303px'],
                ["style", "font-size", '24px'],
                ["color", "color", 'rgba(26,26,26,1)'],
                ["style", "height", '338px'],
                ["style", "font-weight", '400'],
                ["style", "left", '131px'],
                ["style", "width", '564px']
            ],
            "${_instruccion}": [
                ["style", "top", '203px'],
                ["style", "font-size", '26px'],
                ["color", "color", 'rgba(102,102,102,1)'],
                ["style", "display", 'none'],
                ["style", "font-weight", '400'],
                ["style", "left", '100px'],
                ["style", "width", '1150px']
            ],
            "${_Text2}": [
                ["style", "top", '211px'],
                ["style", "left", '836px'],
                ["style", "font-size", '30px']
            ],
            "${_IL_L_G01_U01_L01_03_03_02}": [
                ["style", "top", '479px'],
                ["transform", "scaleY", '0.75'],
                ["transform", "rotateZ", '-90deg'],
                ["transform", "scaleX", '0.75'],
                ["style", "left", '917px']
            ],
            "${_hotspot}": [
                ["color", "background-color", 'rgba(192,192,192,0.00)'],
                ["style", "top", '572px'],
                ["style", "height", '122px'],
                ["style", "cursor", 'pointer'],
                ["style", "left", '962px'],
                ["style", "width", '125px']
            ],
            "${_descripcion}": [
                ["style", "top", '246px'],
                ["color", "color", 'rgba(26,26,26,1)'],
                ["style", "width", '613px'],
                ["style", "left", '100px'],
                ["style", "font-size", '32px']
            ],
            "${_label}": [
                ["style", "top", '0px'],
                ["style", "display", 'none'],
                ["style", "overflow", 'hidden'],
                ["style", "height", '768px'],
                ["style", "opacity", '1'],
                ["style", "left", '0px'],
                ["style", "width", '1366px']
            ],
            "${_Stage}": [
                ["color", "background-color", 'rgba(255,255,255,0.00)'],
                ["style", "min-width", '320px'],
                ["style", "overflow", 'hidden'],
                ["style", "height", '768px'],
                ["style", "max-width", '1366px'],
                ["style", "width", '1366px']
            ],
            "${_MG2U2L3040101_bg}": [
                ["style", "left", '49px'],
                ["style", "top", '81px']
            ],
            "${_Contador}": [
                ["style", "top", '199px'],
                ["style", "text-align", 'center'],
                ["style", "font-size", '50px'],
                ["style", "font-family", 'cabin, sans-serif'],
                ["style", "font-weight", '700'],
                ["style", "left", '1179px'],
                ["style", "width", '71px']
            ],
            "${_textCount}": [
                ["style", "display", 'none'],
                ["style", "left", '1049px'],
                ["style", "text-align", 'center'],
                ["style", "top", '100px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 0,
            autoPlay: true,
            timeline: [
                { id: "eid1225", tween: [ "style", "${_textCount}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 },
                { id: "eid1296", tween: [ "style", "${_instruccion}", "display", 'none', { fromValue: 'none'}], position: 0, duration: 0 }            ]
        }
    }
},
"boton": {
    version: "4.0.1",
    minimumCompatibleVersion: "4.0.1",
    build: "4.0.1.365",
    baseState: "Base State",
    scaleToFit: "none",
    centerStage: "none",
    initialState: "Base State",
    gpuAccelerate: false,
    resizeInstances: false,
    content: {
            dom: [
                {
                    rect: ['0px', '0px', '124px', '42px', 'auto', 'auto'],
                    borderRadius: ['10px', '10px', '10px', '10px'],
                    id: 'boton',
                    stroke: [0, 'rgba(0,0,0,1)', 'none'],
                    type: 'rect',
                    fill: ['rgba(192,192,192,1)']
                }
            ],
            symbolInstances: [
            ]
        },
    states: {
        "Base State": {
            "${symbolSelector}": [
                ["style", "height", '42px'],
                ["style", "width", '124px']
            ],
            "${_boton}": [
                ["style", "left", '0px'],
                ["style", "top", '0px']
            ]
        }
    },
    timelines: {
        "Default Timeline": {
            fromState: "Base State",
            toState: "",
            duration: 0,
            autoPlay: true,
            timeline: [
            ]
        }
    }
}
};


Edge.registerCompositionDefn(compId, symbols, fonts, resources, opts);

/**
 * Adobe Edge DOM Ready Event Handler
 */
$(window).ready(function() {
     Edge.launchComposition(compId);
});
})(jQuery, AdobeEdge, "EDGE-5531445");
