Using Flash & Flex Together Jesse R. Warden Flex, Flash, & Flash Lite Consultant Universal Mind Blog:

Slides:



Advertisements
Similar presentations
Drawing, Skinning and Degrafa This presentation covers drawing, skinning and the use of Degrafa to make things easier. Understanding the basics of drawing.
Advertisements

Lab 10: Images and Skinning, Sound and Assets User Interface Lab: GUI Lab Oct. 30 th, 2013.
Cascading Style Sheets
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
UEC 01 : Computer Skills & Programming Concepts I 1PUA – Computer Engineering Department – UEC01 – Dr. Mona Abou - Of Lecture 10: Presentation Graphic.
XP Introducing Cascading Style Sheets With Cascading Style Sheets (CSS), you can create one or more documents that control the appearance of some or all.
Spring /6.831 User Interface Design and Implementation1 Lecture 10: Layout.
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
Cascading Style Sheets Controlling the Display Of Web Content.
Cascading Style Sheets Controlling the Display Of Web Content.
Introduction to Web Authoring Bill Hart-Davidson AIM: billhd30 Session 11
How to Use Microsoft PowerPoint What is PowerPoint? Presentation software that allows you to create slides, handouts, notes, and outlines. Slide.
Using Cascading Style Sheets (CSS) Dept. of Computer Science and Computer Information CSCI N-100.
HIGHER COMPUTING CSS. WHAT IS CSS? CSS: Cascaded Style Sheets used to separate a web site’s content(information) from its style(how it looks).
Paul Trani Adobe Certified Instructor/Expert Resources:
Chapter 4 Dreamweaver: Part II The Web Warrior Guide to Web Design Technologies.
Different ways to implement CSS. There are four different ways to use CSS in your web pages: – Inline CSS – Embedded CSS/Internal CSS – Linked CSS/External.
HTML - Quiz #2 Attendance CODE:
Cascading style sheets (CSS)
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 3 Key Concepts 1 Copyright © Terry Felke-Morris.
Multimedia & The World Wide Web winny HCI 201 Multimedia and the www.
CSS Cascading Style Sheets By Garrett Garman. CSS Why use Style Sheets? Separates Appearance and Structure Modularity Quick and Easy changes Flexibility.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
Today’s objectives  Complete web page  Using xhtml & CSS  Adding CSS to documents Embed url(File);  CSS.
Tutorial 6 By Sam INE 1020 Introduction to Internet Engineering 1 DHTML & CSS Tutorial 6.
Chapter 12 Working with Text. Text Field Types Static text – used to display information or to label buttons, forms, or navigation. Dynamic text – used.
Doman’s Sections Information in this presentation includes text and images from
CSS My favourite ICT lesson By Federico Boschi Cascading Style Sheets.
Just A Few More Fun Objectives 1 Having Some Fun With Java Script 2 Using Style Sheets.
Css. Definition Cascading style sheet (CSS) Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Cascading Style Sheets Orientation Learning Web Design: Chapter 11.
Working with Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 5.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Flash and Flex Can Hold Hands Techniques for Integrating Flash Content and Flex Applications FiTC - Hollywood October 5, 2006 Chafic Kazoun, Founder and.
PowerPoint Menus and Toolbars Michele Wisniewski CTS March 2004.
ALBERT WAVERING BOBBY SENG. Week 2: HTML + CSS  Quiz  Announcements/questions/etc  Some functional HTML elements.
MySQL and PHP Review CSS. Cascading Style Sheet (CSS) Style sheets are files or forms that describe the layout and appearance of a document. Cascading.
CSS Cascading Style Sheets. CSS Advantages Greater typography and page layout control Style is separate from structure Styles can be stored in a separate.
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
HTML - Quiz #2 Attendance CODE:
More CSS.
Cascading Style Sheets Robin Burke ECT 270. Outline Midterm The Layout Debate CSS properties Fonts Alignment Color CSS selection selectors pseudo-classes.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
Presentation Basics Some guidelines for creating PowerPoint slide shows.
Principles of Web Design 6 th Edition Chapter 9 – Site Navigation.
CSS Cascading Style Sheets. Cascading Style Sheet (CSS) A cascading style sheet (CSS) is a set of rules that define styles to be applied to entire Web.
Lesson 15: Cascading Style Sheets. Objectives Identify ways to apply Web page formatting with Cascading Style Sheets (CSS1 and CSS2) using various methods.
Cascading Style Sheets (CSS). A style sheet is a document which describes the presentation semantics of a document written in a mark-up language such.
Introduction to CSS. Why CSS? CSS Provides Efficiency in Design and Updates CSS relatively easy to use Can give you more flexibility and control Faster.
Copyright © 2006, Jumail, FSKSM, UTM Slide 1 Cascading Style Sheets (CSS)
OV Copyright © 2008 Element K Content LLC. All rights reserved.  Format Text  Format Lists  Format Images  Modify Page Background Applying Styles.
Web Design (12) CSS Introduction. Cascading Style Sheets - Defined CSS is the W3C standard for defining the presentation of documents written in HTML.
2006 Adobe Systems Incorporated. All Rights Reserved. 1 Flex for Flash Developers Sho Kuwamoto Sr. Director, Engineering Adobe Systems, Inc.
Video in Macromedia Flash (Optional) – Lesson 121 Video in Macromedia Flash (Optional) Lesson 12.
CSS Hadas Kahsay. Overview  What is CSS  Basic syntax of CSS Rules  How to link CSS style to html documents  Browsers and CSS  Advantages of CSS.
Cascading Style Sheets Primary readings Presentations Explain & review projects with class mates.
Web Technologies Beginning Cascading Style Sheets (CSS) 1Copyright © Texas Education Agency, All rights reserved.
Developing Web Applications with HTML and CSS “Selectors and Properties”
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
Creating Layouts with CSS. Span tag Here is some underlined text. Here is some blinking text. Here's some bold text.
JavaScript and Ajax (JavaScript Dynamic HTML (DHTML)) Week 7 Web site:
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 3 Introducing Cascading Style Sheets.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
1 CS428 Web Engineering Lecture 07 Font, Text & Background (CSS - II)
Lecture 9: Extra Features and Web Design Tarik Booker CS 120 California State University, Los Angeles.
HTML & CSS Contents: the different ways we can use to apply CSS to The HTML documents CSS Colors and Background CSS Fonts CSS Text CSS box model: padding,
CSS Introductions. Objectives To take control of the appearance of a Web site by creating style sheets. To use a style sheet to give all the pages of.
CONFIGURING COLOR AND TEXT WITH CSS Chapter 3. Cascading Style Sheets (CSS) Used to configure text, color, and page layout. Launched in 1996 Developed.
Chapter 4 Enhancing the Graphical User Interface
Presentation transcript:

Using Flash & Flex Together Jesse R. Warden Flex, Flash, & Flash Lite Consultant Universal Mind Blog:

Dealio Why Flash & Flex? CSS Skinning Flash

Why Flash & Flex? Both make SWFs Flex is not Flash Flash is not Flex Different Users Developers & Designers

Flex Isn’t Flash Flex has no timeline Flex has no library Flex has no drawing tools

Flash Isn’t Flex Flash has no MXML Flash has limited CSS Flash does not have the new components

Developer vs. Designer import Character; var a:Character = new Character(); addChild(a);

Flex Strengths Form based apps / wizards / heavy data entry Easy coloring of components Layout engine Separation of code and controls Programmers like it

Flash Strengths Designer Tool Easy to integrate animation, sound, & video Timeline Drawing Tools

Flex Without Flash All apps look the frikin’ same “Flex apps look like Flex apps” Branding… what’s that? No differentiation between competitors Limited design == limited ease of use Limited ease of use == less successful product

Flex With Flash Applications look the way your designers want Better animations Better integration & modifications of video and sound Better user experience (assuming your IA rocks) Less compromise

Design Tools in Flex CSS Skinning Flash

Flex CSS Master file Inline Applied

CSS – Masta’ Blasta’ Application { modal-transparency: 0.5; background-color: #990000; } Saved as index.css. Applied like:

CSS Inline Label { font-size: 14px; font-weight: bold; }

CSS Inline & Applied.myHeader { font-size: 14px; font-weight: bold; }

No CSS? <mx:Label text="Game Tools Online" fontSize="18" color="#ffffff" fontFamily="Trebuchet MS" fontWeight="bold"/>

CSS Global Selectors Affect all components in the entire app LinkButton { text-decoration: "underline"; } LinkButton

CSS Custom Global Selectors Extend to make easier & more flexible // saved as MyLinkButton.mxml MyLinkButton { text-decoration: "underline"; }

Skinning Filtered Programmatic Images

WinAMP Skins - Same App, Different Style

Skinning - Filters Built-in to MXML: Blur, Glow, Dropshadow Other filters available through ActionScript

Skinning - Filters <mx:Box xmlns:mx=" xmlns:flash="flash.filters.*">

Skinning - Filters

Freely licensed under Creative Commons - BY-SA-1.0 Source:

Skinning - Programmatic Override updateDisplayList Utilize a programmatic skin

Skinning – Programmatic Base Classes class MySkin extends ProgrammaticSkin class MySkin extends Border class MySkin extends RectangleBorder

Skinning - Programmatic protected override function updateDisplayList( unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(); var g:Graphics = graphics; g.beginFill(0xFF0000); g.lineTo(300, 0); // ect. g.endFill(0); }

CSS Skin Applying Button { upSkin: ClassReference(“MySkin”); downSkin: ClassReference(“MySkin”); }

Enter t3h Flash Animations Complex buttons & transitions Short videos / video elements Moving design elements

The Big D’s When do you use Flash instead? When do you use states & transitions vs. Flash? When do you make your own component?

Sample Design

Dissecting the Design Background? Definitely Flash. Load a SWF.

Dissecting the Design Buttons? Custom component or SWF skin.

Dissecting the Design Side attachment (vertical blue line on left)? Load a SWF.

Dissecting the Design Animating controls? Flex states & transitions.

Dissecting the Design Title? Embed a font. Saffron (FlashType) it if you are able. Border? Embed / load a PNG. Text? Color through CSS.

The Font Decision Embedded font == no Saffron (FlashType) Use Flash, way more RAM (4 megs potentially) Other than TTF? Use Flash.

Embed { src: url("assets/fonts/EuropeExt-Bold.ttf"); fontFamily: "EuropeExt-Bold"; font-weight: "bold"; } Button { font-family: "EuropeExt-Bold"; }

Embed { src: url("assets/fonts/EuropeExt-Bold.swf"); fontFamily: "EuropeExt-Bold"; font-weight: "bold"; } Button { font-family: "EuropeExt-Bold"; }

No Anti-Aliasing? Windows XP ClearType gets disabled sometimes… Usually from filters cacheAsBitmap also sometimes affects it

States & Transitions + Flash Some animations easiest to do in transitions Some impossible How do you know? Experience. Diffing animations vs. design vision

States & Transitions + Flash Flash Animates better: use Flash, load SWF

States & Transitions + Flash Flex makes animation more flexible: use transitions <mx:Move xFrom="100” duration="{ANIME_SPEED}"/> <mx:Blur blurXFrom="{BLUR_AMOUNT}“ blurXTo="0“ duration="{ANIME_SPEED}"/>

Why Flash? Flash Design contribution == predictable viewing Programmers don’t care == predictable playback Not another VB6

Why Flash? Designers can make easier to use apps Designers can make cooler looking apps Designers can showcase the brand

Less of this…

…and more of this!

Conclusions Flash makes Flex better Through sound, animation, and video More design control Saffron font engine (FlashType) Better design == more usable app More usable app == more bling for teh w1n! (more money)

Conclusions New employment opportunities Flex Developers code Flash Designers lay the funk!

Thank you! Questions? Jesse R. Warden Load Skins at runtime (like WinAMP) e.html