Coder Social home page Coder Social logo

helpfulrobot / sunnysideup-flash Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sunnysideup/silverstripe-flash

0.0 2.0 0.0 67 KB

add flash objects to your Silverstripe application

Home Page: www.silverstripe-webdevelopment.com

License: Other

PHP 49.48% CSS 5.46% JavaScript 39.69% Scheme 5.37%

sunnysideup-flash's Introduction

Flash Module

Developer

Nicolaas Francken [at] sunnysideup.co.nz

Requirements

see composer.json

Documentation

This module allows you to add flashObjects the "correct" way. You can either use a DataObjectDecorator OR just use pre-configured data for your flashobjects

@source http://code.google.com/p/swfobject/wiki/documentation @see http://www.swffix.org/swfobject/generator/

Allows insertion of Flash Files the "proper" way.

/* How can you use HTML to configure your Flash content?

You can add the following often-used optional attributes [ http://www.w3schools.com/tags/tag_object.asp ] to the object element:

* id
* name
* class
* align

You can use the following optional Flash specific param elements [ http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_12701 ]:

* play
* loop
* menu
* quality
* scale
* salign
* wmode
* bgcolor
* base
* swliveconnect
* flashvars
* devicefont [ http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_13331 ]
* allowscriptaccess [ http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16494 ] and [ http://www.adobe.com/go/kb402975 ]
* seamlesstabbing [ http://www.adobe.com/support/documentation/en/flashplayer/7/releasenotes.html ]
* allowfullscreen [ http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html ]
* allownetworking [ http://livedocs.adobe.com/flash/9.0/main/00001079.html ]

*/

Quick implementation of a youtube video

  1. add the following to your controller class:

     function FlashObjectData() {
     	$obj = new FlashObject()
     	return $obj->CreateYouTubeVideo("Test Video", "v_A2flQJa20");
     }
    
  2. in your template, add

<% include FlashObject %>

DONE NB: there is no need to add the FlashObjectDecorator in your config file.

** ALSO SEE: http://code.google.com/apis/youtube/player_parameters.html http://code.google.com/apis/youtube/js_api_reference.html

Installation Instructions

  1. Find out how to add modules to SS and add module as per usual.
  2. Review configs and add entries to mysite/_config/config.yml (or similar) as necessary. In the _config/ folder of this module you can usually find some examples of config options (if any).

sunnysideup-flash's People

Watchers

James Cloos avatar helpfulrobot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.