This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define 'youtube.videos.List' | |
extend:'Ext.List' | |
xtype:'videoslist' | |
config: | |
title:'Videos' | |
itemTpl:'<div class="clearfix"><img src="{thumbnail}" /><p>{title}</p></div>' | |
store:'Videos' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define 'youtube.store.Videos' | |
extend:'Ext.data.Store' | |
config: | |
model:'youtube.model.Video' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define 'youtube.controller.Videos' | |
extend:'Ext.app.Controller' | |
requires:[ | |
'Ext.data.proxy.JsonP' | |
] | |
config: | |
refs: | |
videosList:'videoslist' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ext.define 'youtube.model.Video' | |
extend:'Ext.data.Model' | |
config: | |
fields:[ | |
{name:'title',type:'string'} | |
{name:'thumbnail',type:'string'} | |
{name:'href',type:'string'} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfset urlstring = 'http://twitpic.com/photos/jbuda' /> | |
<cfhttp url="#urlstring#" method="get" /> | |
<cfset rawUrl = toString(cfhttp.filecontent) /> | |
<cfset pos = 1 /> | |
<cfset imageArray = arrayNew(1) /> | |
<cfset regexp = '>div class="profile-photo-img"<(.*?)>/div<' /> | |
<cfset found = refindnocase(regexp,rawUrl,pos,true) /> | |
<cfloop condition="pos lt len(rawUrl)"> | |
<cfset found = refindnocase(regexp,rawUrl,pos,true) /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.progressbar.events { | |
import flash.events.Event; | |
import mx.collections.ArrayCollection; | |
[Bindable] | |
public class ProgressBarEvent extends Event { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.progressbar.managers { | |
import flash.events.*; | |
[Bindable] | |
public class ProgressBarManager extends EventDispatcher { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.progressbar.views.model { | |
import com.progressbar.events.ProgressBarEvent; | |
import com.progressbar.views.ProgressBar; | |
import flash.events.IEventDispatcher; | |
[Bindable] | |
public class ProgressBarModel { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<EventMap xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="http://mate.asfusion.com/"> | |
<mx:Script> | |
<![CDATA[ | |
import mx.events.FlexEvent; | |
import com.progressbar.events.*; | |
import com.progressbar.managers.*; | |
import com.progressbar.views.model.*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" width="300" height="93" headerHeight="16" xmlns:view="com.progressbar.views.*"> | |
<mx:Script> | |
<![CDATA[ | |
import com.progressbar.views.model.ProgressBarModel; | |
[Bindable] |