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 { | |
import reflex.containers.Application; | |
import reflex.behaviors.TouchScrollBehavior; | |
import reflex.components.Scroller; | |
import flash.display.Bitmap; | |
import flash.display.MovieClip; | |
/** | |
* @author David Ortinau <dave@davidortinau.com> |
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
<s:Scroller width="100%" height="100%"> | |
<s:VGroup width="100%" paddingTop="20" paddingLeft="20" paddingRight="20" paddingBottom="20" gap="20"> | |
<s:Group width="100%"> | |
<s:Rect width="100%" height="100%" radiusX="8" radiusY="8"> | |
<s:fill> | |
<s:SolidColor color="#F1F0E6"/> | |
</s:fill> | |
</s:Rect> | |
<s:VGroup width="100%" paddingTop="20" paddingLeft="20" paddingRight="20" paddingBottom="20" gap="20"> |
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"?> | |
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" | |
xmlns:s="library://ns.adobe.com/flex/spark" | |
creationComplete="view1_creationCompleteHandler(event)" | |
title="TextArea Workaround"> | |
<fx:Script> | |
<![CDATA[ | |
import mx.events.FlexEvent; | |
[Bindable] |
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
- (void)viewDidLoad { | |
{ | |
UIView * subView; | |
NSArray * subViews = [mySearchBar subviews]; | |
// loop through search bar pieces to get to the text field so you can | |
// set the delegate and then resign first responder on it | |
for(subView in subViews) | |
{ | |
if( [subView isKindOfClass:[UITextField class]] ) |
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
// What I usually do is have an XML manifest that lists all of my assets as loaders for LoaderMax to handle | |
// For example: | |
<?xml version="1.0"?> | |
<config idletime="90000" launchPosition="right" webServiceURL="" scaleFactor="1"> | |
<XMLLoader name="en" url="/assets/xml/content_en.xml" load="true" /> | |
<XMLLoader name="es" url="/assets/xml/content_es.xml" load="false" /> | |
<XMLLoader name="zh" url="/assets/xml/content_cn.xml" load="false" /> | |
</config> | |
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
# this is my route | |
match 'papers/:url_title' => 'papers#show', :as => :permalinkpaper | |
# this is the url being called | |
http://localhost:3000/papers/great-passion | |
# which properly matches to this controller#action for papers#show | |
def show | |
@paper = Paper.where(:url_title => params[:url_title]).first() | |
PaperHistory.add( current_user, @paper.id ) |
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
<android> | |
<manifestAdditions> | |
<![CDATA[ | |
<manifest android:installLocation="auto"> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | |
<uses-configuration android:reqFiveWayNav="true"/> | |
<supports-screens android:normalScreens="true"/> | |
<uses-feature android:required="true" android:name="android.hardware.touchscreen.multitouch"/> | |
<application android:enabled="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
/* CSS file */ | |
@namespace s "library://ns.adobe.com/flex/spark"; | |
@namespace mx "library://ns.adobe.com/flex/mx"; | |
@font-face { | |
src: url("assets/fonts/HelveticaNeueLTStd-Bd.otf"); | |
fontFamily: HelveticaNeueBold; | |
fontStyle: normal; | |
fontWeight: bold; | |
embedAsCFF: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
<s:Label text="HelveticaNeueBold" | |
textAlign="left" | |
fontSize="12" | |
fontFamily="HelveticaNeueBold" | |
fontLookup="embeddedCFF" | |
color="#5d5c62" | |
> | |
<s:filters> | |
<s:DropShadowFilter blurX="0" blurY="0" distance="1" hideObject="false" color="#ffffff" | |
inner="false" strength="1" alpha="1" quality="2" knockout="false" angle="90"/> |
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 { | |
// imports removed for brevity | |
import org.swizframework.core.BeanProvider; | |
import org.swizframework.core.ISwiz; | |
import org.swizframework.core.ISwizAware; | |
import org.swizframework.core.Swiz; | |
import org.swizframework.core.SwizConfig; | |
[SWF(width='1080', height='1920', backgroundColor='0xFFFFFF', frameRate='30')] |
OlderNewer