サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
大そうじへの備え
blog.gskinner.com
One of the trickier things to do in Flutter is to get the size of things. Generally there are 3 use cases you might have: Measure your own context Measure your parents contextMeasure a child context The first 2 are quite simple so we’ll just skim them. The 3rd is more interesting. Measure your own size To get your own size, you can just do: Note: The first time this runs the size will be zero, Flu
Stack(children: <Widget>[ /// Main Content Area contentStack.padding(top: topBarHeight + topBarPadding), /// ... various AnimatedPanels surround the content area ] ) .positioned(left: leftContentOffset, right: contentRightPos, bottom: 0, top: 0, animate: true).animate(animDuration, Curves.easeOut), If the above .positioned or .animate syntax looks a little foreign, it’s because we made use of the
Visit gskinner.com News and views on the world of interactive media from the gskinner team We’ve been working really hard on a lot of great stuff over the last couple months, and I’m thrilled finally to be able to share it with the world. CreateJS We’re going to be releasing EaselJS and a number of companion libraries under the new umbrella name “CreateJS”. CreateJS will be a suite of modular libr
I’ve been doing a lot of work with JSFL the last little while, and was starting to get frustrated with the inability to define my classes and methods in separate files. I did some hunting around, and found a couple of solutions that worked by putting objects in an implicit global scope, but this doesn’t seem to work in CS5. After some messing around, I came up with an approach that seems to be wor
There were a lot of requests for tweening support in EaselJS, so to address this I thought I’d try writing a companion tweening library. I started in on this a couple days ago, and just posted the very early results to a new GitHub repo. This is very much pre-alpha, untested, undocumented, and subject to change, but I thought I’d share it and solicit feedback. It has a simple but powerful API that
Visit gskinner.com News and views on the world of interactive media from the gskinner team It’s no secret that I like building music visualizers, or that I’ve been playing with HTML5 a fair amount lately. Given that, I thought I’d combine the two interests, and build a music visualizer using JS, the canvas & audio elements in HTML5, and the EaselJS framework. The primary challenge was that Javascr
Visit gskinner.com News and views on the world of interactive media from the gskinner team Alongside the release of EaselJS v0.3 we’re also releasing the first version of Zoë, a free Adobe AIR application for exporting SWF animations as sprite sheets (single images containing a grid of animation cells), including frame data for use with EaselJS. This means you can use Flash Pro to lay out your ani
Last year the Flutter Team released an excellent codelab that explained the process of adding an iOS or Android “Home Widget” to your Flutter app. As it turns out, it’s surprisingly easy! Adding Widgets is a fairly happy path as they can be added using the built-in UI flows in XCode or Android Studio. The development can also be done in the respective IDEs, complete with robust code-hinting, debug
Visit gskinner.com News and views on the world of interactive media from the gskinner team BitmapSlice9 is a command for Flash Pro that preps bitmaps for use with Scale9. Among other things, this makes it easy to use bitmap skins for controls, which is quite common for games and mobile apps. In short, it slices your target bitmap into rectangles with custom bitmap fills according to the applied Sc
Visit gskinner.com News and views on the world of interactive media from the gskinner team When I built the original PerformanceTest, I hacked it together quickly to meet a specific need I had at the time. As I used it, I found I needed more capability, and I became increasingly frustrated with both the messy code, and the poorly thought out API. In response to feedback, and my own frustrations, I
Visit gskinner.com News and views on the world of interactive media from the gskinner team Since the iPad’s release, it’s been nearly impossible to avoid debates (and more often, flame-wars) about Flash, its flaws, and its future (or lack thereof). Honestly, I’m pretty sick of the discussion. Early on, I wrote up a huge article dealing with the most common themes, misconceptions, and outright lies
Visit gskinner.com News and views on the world of interactive media from the gskinner team I’m a big fan of ASDoc! I use it to document all of my major library releases (ex. GTween, SPL, Wander, etc). ASDoc allows you to write simple comments in your AS3 classes, then generate HTML documentation from them. This is great in that it allows developers to maintain source code and documentation simulta
Visit gskinner.com News and views on the world of interactive media from the gskinner team I just uploaded an update to the Wander motion class I released a couple weeks ago. This version has some new features that I’ve added as I needed them, like: targetObject: set the Wander to use the x/y of another display object as it’s target x/y. There are lots of possibilities with this: you can follow an
Visit gskinner.com News and views on the world of interactive media from the gskinner team I recently put together a simple class for managing “wandering” motion in AS3, and thought I would share it. It’s a pretty flexible class, with a lot of different options: specify speed x, y, and rotation targets specify constant trend strength to move towards the target. specify a count and a delayCount to
Visit gskinner.com News and views on the world of interactive media from the gskinner team I love Adobe AIR! I think it’s an amazing platform with a huge amount of potential. However, AIR has one problem that could earn it a bad reputation before it has a chance to truly realize that potential – idle CPU usage. Try this on a Mac: open FlashCS4. Create a new, completely empty FLA and publish it as
Visit gskinner.com News and views on the world of interactive media from the gskinner team I recently decided to retest my results on uint, int and Number performance to see what had changed in Flash player 10 (more on that in my next post). I got a little carried away, and wound up building a generic performance testing harness for ActionScript 3. I’ve been meaning to do this for awhile, but hadn
In most projects there are tons of events that are dispatched, but that have no listeners subscribed to them. This shouldn’t be an issue, but it turns out that the Flash Player deals with these events inefficiently. Luckily it’s pretty easy to patch this for specific situations. The code below will run about 5X faster than a standard dispatchEvent call when there is no event listener for the event
Visit gskinner.com News and views on the world of interactive media from the gskinner team Here’s a simple tech demo showing a 3D music visualizer using the flash player 10’s new 3D APIs, with a rotating sphere that transitions into a disc using GTween. Nothing too complex, but the result is kind of neat, and it is simple enough to serve as a quick entry into using the new APIs if you’re getting s
Developer Oriented (consistent AS3 experience) gTween is built for ActionScript 3 developers from the ground up. It uses a more conventional instance-oriented model, rather than a static interface. It also leverages the AS3 event model instead of callbacks (see Events). This provides a familiar, consistent experience for AS3 developers to work with tweens. Here’s a simple example of setting up a t
Overview There is a general misunderstanding that any source code released without an explicit license is in the public domain (see below) and is free and clear to use. In fact, quite the opposite is true – any source code released without a license is afforded implicit protection under copyright law. This applies even if there is no copyright notice. Implications Without specific permission from
I often talk about the important role visualization plays in my work. I personally don’t really understand things until I can see them. One example of this that I showed at FitC this year was the SparkTable tool I use to visualize and compare easing equations. It’s very simple, but I’ve found it very useful when trying to choose between two similar eases, such as a quintic versus exponential ease.
It seems like every UI design we are asked to implement these days has what I call “designer scroll bars” – skinny little tone on tone scroll bars that have no scroll arrows. While I’m not a big fan of these scroll bars for a number of reasons (not least of which is usability), they are still something we’re required to do on a fairly common basis. Luckily, in Flex 3 hiding the scroll arrows, and
Visit gskinner.com News and views on the world of interactive media from the gskinner team After having my creative mojo refueled at Flash on the Beach, I’ve started playing around with some of my old experiments again. One of my favourite older experiments is my vein logic â�� it’s just such a beautiful example of recursion, and can be applied to so many things (like veins, vines, trees, more tre
Visit gskinner.com News and views on the world of interactive media from the gskinner team I finally got the time to finish off my fire effect Flash CS3 component, which makes it easy to add flames and other cool effects to objects on stage. I am also releasing the AS3 source code that powers it, which is one of the most requested piece of source code I’ve had. Here’s a simple sample SWF that lets
Visit gskinner.com News and views on the world of interactive media from the gskinner team I recently built a simple class called FrameScriptManager that allows you to set actions on any frame referenced by number or label at runtime from within a bound class. This allows developers to associate code with specific points in timeline animations or transitions, without having to modify the FLA. Beca
A few months ago I built a class that makes establishing two way communication between SWFs via LocalConnection much easier. This is useful for talking between different SWFs embedded on the same HTML page, but especially for communicating between an ActionScript 3 application SWF, and loaded ActionScript 2 content SWFs. It’s fairly easy to use, just create a SWFBridge instance inside each SWF wit
Visit gskinner.com News and views on the world of interactive media from the gskinner team UPDATE: Official Adobe AIR support, August 21 Adobe has released official support for AIR in Flash CS3. We’ll keep the AIR panel available, but it’s unlikely it will be updated any further. Get the Flash CS3 update for AIR. Currently, you can only create AIR (formerly Apollo) applications with FlexBuilder. A
Visit gskinner.com News and views on the world of interactive media from the gskinner team When we were invited to build a sample application for the Digg API contest, my first thought was to do something cool with another new release. We’ve been doing a ton of work with Apollo (our “gTimer” time management app for example), and I decided it would be fun to do something more “creative” with it. Th
Visit gskinner.com News and views on the world of interactive media from the gskinner team To continue the Extension goodness, here is an uber-handy AS3 class that we built the second we had access to AS3. VI. AS3 String Utils With the advent of regex in Actionscript, string methods become easier, and in some cases a lot faster. It also gave us a good exercise in AS3. This class is found in the co
次のページ
このページを最初にブックマークしてみませんか?
『gskinner blog』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く