How do you drag objects in the list into the canvas?

Question: How do you drag an object from a list onto the canvas? Approach The ability to drag an object from a list straight onto the canvas is something you often need in a scene editor. You put a List on screen, each item corresponds to a building, and the user can drag the building into the scene. It works the same way as dragging things from the Flash library onto the stage. We can store the ClassName corresponding to each item in that item; when dragging starts, we create an instance of it and let it follow the mouse. Only when the mouse is released over a valid area of the canvas do we add it to the new DisplayObjectContainer.

Flash

Can't set the size of the Loader?

Problem: var loader:Loader = new Loader(); loader.loadBytes(byteArr); return loader; After that, trace(loader.width,loader.height) gives (0,0), and as soon as you change the width and height via lo...

Flash

Internal mechanisms of Flash Player 10.1

This article was reposted here after I saw it on http://riaoo.com/?p=1658; the original content comes from http://blogs.adobe.com/xwlin/2010/04/flash_player_101_-_adobe_max_2009.html and http://blogs.adobe.com/xwlin/2010/04/flash_player_101_-_adobe_max_2009_1.html Speaker: Lee Thomason (lthomaso@adobe.com) Translator: Lin Xiaowei (xwlin@adobe.com) PrefaceTime: the 21st of this month. Location: Beijing International Convention Center. Adobe is about to hold a two-day Flash Platform technology summit. I’ll have the honor of joining Ely Greenfield as co-speaker for the <> session, handling both the speaking and the translation. Ely Greenfield is a Senior Principal Scientist in the Apollo Integrated Runtime group, and he gave a superb talk on this topic at Adobe MAX 2007. I googled up a comment from a guy who attended the 2007 MAX conference about Ely himself and his talk: “I think Ely’s topic (Flash Player Internals) was the best of all the topics at MAX…” “Ely is that legendary guy who wrote most of the Flex Charting Framework in three days with his eyes closed”… The 2009 Adobe MAX still has a Flash Player Internals session, but the speaker is Lee Thomason (another hardcore veteran — Flash Player architect, nicknamed Player Guy, said to be the number one Flash Player guy). This is a very in-depth topic, and the talk moves fast: in one hour he covers as many aspects of the player architecture as he possibly can. Here I’ve summarized and translated the gist of his talk for your reference.

Flash

Adobe CS5 suite download links are available now

“Adobe CS5 Master Collection (Official Win_Mac Release)” (Adobe Creative Suite 5 Master Collection) CS5 [disc image]: http://www.verycd.com/topics/2814048 Also, “Adobe Production Premium Suite” (Adobe.Creative.Suite.5.Production.Premium) CS5 [archive] http://www.verycd.com/topics/2818598/ 51AS’s CS5 download page: http://www.51as.com/as3/as3-268.html This post is a personal collection and will be updated over time. ps: Piracy hurts the industry — free resources should only be used for testing and learning.

Flash

[Repost] Apple Slaps Developers In The Face

This article is reprinted from http://theflashblog.com/?p=1888 [Adobe would like me to make it clear that the opinions below are not the official views of the company and are entirely my own.] By now you have surely heard about the new iPhone 4.0 SDK language that appears to make creating applications in any non-Apple-approved languages a violation of terms. Obviously Adobe is looking into this wording carefully so I will not comment any further until there is an official conclusion. [Sentence regarding Apple’s intentions redacted at request from Adobe]. This has nothing to do whatsoever with bringing the Flash player to Apple’s devices. That is a separate discussion entirely. What they are saying is that they won’t allow applications onto their marketplace solely because of what language was originally used to create them. This is a frightening move that has no rational defense other than wanting tyrannical control over developers and more importantly, wanting to use developers as pawns in their crusade against Adobe. This does not just affect Adobe but also other technologies like Unity3D.

Flash

Flash SEO Tool

I stumbled on Flash SEO tool — an SEO tool for Flash sites that helps get your Flash site crawled by web spiders. The project will soon be available for download on Google Code http://code.google.com/p/flashseotool/. Current features: HTML menus and submenus for web spiders Title, meta, keywords and description Friendly URLs Simple, automatic updates straight from your AS3 code Features coming later: Generating a Google sitemap Deep linking integration support Integration with Delicious, Twitter and friends Generating RSS

Flash

xrope - a simple layout library for native AS3 display objects

Bookmarking an AS3 library: xrope by eidiot (http://eidiot.github.com/xrope/zh.html) — a simple layout library for native AS3 display objects. Features Works with native AS3 display objects, with ...

Flash

With HTML5 here, flash won't get far?

Ever since news of HTML5 got out, the new waves have been pushing the old ones forward, and more and more people have started paying attention to HTML5. From last September until now, I’ve read quite a few articles arguing that Flash will be replaced by HTML5. Recently I came across another one, “With HTML5, How Much Farther Can Flash Go?”, and it struck a nerve: http://blog.csdn.net/cping1982/archive/2010/02/23/5321010.aspx Thanks to the author Pengling Sanqian for sharing these valuable thoughts — the article is well reasoned and well supported. Having read it, I’d like to add a few personal points. 1. Times Have Changed — Flash Won’t Necessarily Repeat Applet’s FateWhether Flash lives or dies depends on many factors, and there’s no need to compare it to Applet. The historical context and user demands have all changed, so the old lessons no longer apply. True, Flash’s shortcomings have always been there (not long ago, even the iPad — touted as offering the “best web experience” — stubbornly refused to install Flash because of performance issues, leaving many web pages unable to display fully). But whether a product is good or bad is only part of the odds of winning; operations, promotion, and user demand matter just as much. A bad product doesn’t necessarily fail to make money, and a good product doesn’t necessarily make money either — there’s a certain fate in it all, and whoever wins the hearts of users wins the world.

Flash

What you need to know about developing an RTMP server using FluorineFx

This article is a document translated specifically for my partner to read; since it might help some folks, I’m also posting it for reference by anyone who needs it. If it doesn’t fit your situation though, I can’t take responsibility. Also, this article was exported directly from Word (page size A3), with way too much redundant code, and I can’t be bothered to clean it up; brothers with a display resolution width below 1280 may see misaligned styling when reading, so please bear with it. Overview:The FluorineFx open source library provides a set of features for the .NET framework, implementing FLEX/FLASH remoting, Flex Data Services and real-time messaging. .NET frameworks supported by FluorineFxMicrosoft .NET Framework 1.1 (1.1.4322) Microsoft .NET Framework 2.0 (2.0.50727) Microsoft .NET Framework 3.5 (3.5.21022.8) Mono 1.2.4 (.NET framework support is backward compatible)

Flash

Pure AS3 calendar control for Flash

Recently I was working on Flash and needed a calendar control, but Flash’s built-in component library doesn’t include a DateChooser for AS3, and searching around turned up nothing ready-made either, so I wrote one myself for AS3. (The rendered UI is based on com.thomas.DatePicker.DatePicker.) Sharing it with anyone else who needs one for Flash development.

Flash
123459