-
Notifications
You must be signed in to change notification settings - Fork 1
Primeiro João Parte 4
Lucas de Macedo Terças edited this page Aug 13, 2017
·
11 revisions
port entry animation
region backgroundReg
width="100%" height="100%"
zIndex = "1"
end
region screenReg
width="100%" height="100%"
zIndex = "2"
region frameReg
left="5%" top="6.7%"
width="18.5%" height="18.5%"
zIndex="3"
end
region iconReg
left="87.5%" top="11.7%"
width="8.45%" height="6.7%"
zIndex="3"
end
region shoesReg
left="15%" top="60%"
width="25%" height="25%"
zIndex="3"
end
end
media background
src = "media/background.png"
rg = backgroundReg
end
media animation
src = "media/animGar.mp4"
rg = screenReg
area segDrible
begin = "12s"
end
area segPhoto
begin = "41s"
end
area segIcon
begin = "45s"
end = "51s"
end
bounds = "nil"
end
media choro
src = "media/choro.mp4"
end
media drible
src = "media/drible.mp4"
rg = frameReg
end
media photo
src = "media/photo.png"
rg = frameReg
explicitDur = "5s"
end
media icon
src = "media/icon.png"
rg = iconReg
end
media shoes
src = "media/shoes.mp4"
rg = shoesReg
explicitDur = "6s"
end
onBegin animation do
start background
delay = "5s"
end
start choro
delay = "5s"
end
end
onBegin animation.segDrible do
start drible end
end
onBegin animation.segPhoto do
start photo end
end
onBegin animation.segIcon do
start icon end
end
onEnd animation do
stop background end
stop choro end
end
onSelection.RED icon do
set animation.bounds
var = "5%, 6.67%, 45%, 45%"
end
start shoes end
stop icon end
end
onEnd shoes do
set animation.bounds
var = "0,0,100%,100%"
end
end<ncl id="syncInt" xmlns="http://www.ncl.org.br/NCL3.0/EDTVProfile">
<head>
<regionBase>
<region id="backgroundReg" width="100%" height="100%" zIndex="1"/>
<region id="screenReg" width="100%" height="100%" zIndex="2">
<region id="frameReg" left="5%" top="6.7%" width="18.5%" height="18.5%" zIndex="3"/>
<region id="iconReg" left="87.5%" top="11.7%" width="8.45%" height="6.7%" zIndex="3"/>
<region id="shoesReg" left="15%" top="60%" width="25%" height="25%" zIndex="3"/>
</region>
</regionBase>
<descriptorBase>
<descriptor id="backgroundDesc" region="backgroundReg"/>
<descriptor id="screenDesc" region="screenReg"/>
<descriptor id="photoDesc" region="frameReg" explicitDur="5s"/>
<descriptor id="audioDesc"/>
<descriptor id="dribleDesc" region="frameReg"/>
<descriptor id="iconDesc" region="iconReg" explicitDur="6s"/>
<descriptor id="shoesDesc" region="shoesReg"/>
</descriptorBase>
<connectorBase>
<importBase documentURI="../causalConnBase.ncl" alias="conEx"/>
</connectorBase>
</head>
<body>
<port id="entry" component="animation"/>
<media id="background" src="../media/background.png" descriptor="backgroundDesc"/>
<media id="animation" src="../media/animGar.mp4" descriptor="screenDesc">
<area id="segDrible" begin="12s"/>
<area id="segPhoto" begin="41s"/>
<area id="segIcon" begin="45s" end="51s"/>
<property name="bounds"/>
</media>
<media id="choro" src="../media/choro.mp4" descriptor="audioDesc"/>
<media id="drible" src="../media/drible.mp4" descriptor="dribleDesc"/>
<media id="photo" src="../media/photo.png" descriptor="photoDesc"/>
<media id="icon" src="../media/icon.png" descriptor="iconDesc"/>
<media id="shoes" src="../media/shoes.mp4" descriptor="shoesDesc"/>
<link id="lMusic" xconnector="conEx#onBeginStart_delay">
<bind role="onBegin" component="animation"/>
<bind role="start" component="background">
<bindParam name="delay" value="5s"/>
</bind>
<bind role="start" component="choro">
<bindParam name="delay" value="5s"/>
</bind>
</link>
<link id="lDrible" xconnector="conEx#onBeginStart">
<bind role="onBegin" component="animation" interface="segDrible"/>
<bind role="start" component="drible"/>
</link>
<link id="lPhoto" xconnector="conEx#onBeginStart">
<bind role="onBegin" component="animation" interface="segPhoto"/>
<bind role="start" component="photo"/>
</link>
<link id="lEnd" xconnector="conEx#onEndStop">
<bind role="onEnd" component="animation"/>
<bind role="stop" component="background"/>
<bind role="stop" component="choro"/>
</link>
<link id="lIcon" xconnector="conEx#onBeginStart">
<bind role="onBegin" component="animation" interface="segIcon"/>
<bind role="start" component="icon"/>
</link>
<link id="lAdvert" xconnector="conEx#onKeySelectionStopSet_varStart">
<bind role="onSelection" component="icon">
<bindParam name="keyCode" value="RED"/>
</bind>
<bind role="set" component="animation" interface="bounds">
<bindParam name="var" value="5%,6.67%,45%,45%"/>
</bind>
<bind role="start" component="shoes"/>
<bind role="stop" component="icon"/>
</link>
<link id="lEndAdvert" xconnector="conEx#onEndSet">
<bind role="onEnd" component="shoes"/>
<bind role="set" component="animation" interface="bounds">
<bindParam name="varSet" value="0,0,100%,100%"/>
</bind>
</link>
</body>
</ncl>-
-
- Parte 1 - Mídia
- Parte 2 - Link
- Parte 3 - Region
- Parte 4 - Links e Regions
- Parte 5 - Context
- Parte 6 - Reúso de Mídias (Refer)
- Parte 7 - Interatividade
- Parte 8 - Múltiplos Dispositivos (RegionBases Diferentes)
- Parte 9 - Adaptação de Conteúdos (RuleBase e Switch)
- Parte 10 - Settings
- Parte 11 - Efeitos de Transição (TransitionBase)
- Parte 12 - Navegação por Teclas
- Parte 13 - NCLua
-