Ramblings

February 3, 2012

FlashBuilder, the yellow question marks, the import “foo.bar” could not be found – find touch as a temporary workaround?

Filed under: flash, flash builder — Tags: , , , , , , , — michaelangela @ 11:22 pm

I was working on a Flash Pro project, coding in FlashBuilder. The way to go. The nearest I can tell is when running a debug build for some reason the project lost something. The legendary yellow squiggles with the ? marks appeared all over the place. I couldn’t get it to go away. It’s in git so I just checked it out in a new folder without the project files and could keep moving. After another debug build, it happened again. Not sure on that bit. But I found that doing ANY change in the file and saving the imported file would suddenly make the file usable again.

import com.foo.bar.MyClass

Open up MyClass and do anything that allows FlashBuilder to save it. The quickest was space/delete/save. If you have FlexFormatter on make sure auto format isn’t on if you don’t want to reformat 3rd party libraries when doing this. So it seemed that anything you change, so that it saves, brings the file back into FlashBuilder’s list of valid imports. But when you close the project and reopen it, the invalid imports are back.

That got me to thinking… if I just touch the file would that do it? It did. Now we’re in business.

find . -type f -print0 | xargs -0 touch

That did the trick. All the files are back in business. It’ll happen again but at least I have a quick way to get it working so refactoring, finding usages, hiearchy and all that goodness works again.

This is FlashBuilder 4.5.1.

January 19, 2010

2.5D in Flash

Filed under: 3d, flash — michaelangela @ 7:45 pm

Looking at doing some experiments that may require 2.5D in Flash. These two libraries look helpful:

coordy — Some Random Dude

coordy is a Flash layout toolkit that allows you to easily organize items in various layout patterns.

and

Elemental 4D – Practical 3D for Flash Media

The first time I experimented with 3D flash is a very clear memory. I was young, and naive, full of hope and romantic dreams. Her name was Sandy.. 3D… 3.0, and she tempted me with her new thinking and careless and free download. I learned a lot about 3D from Sandy, and to this day, I reminisce of our beautiful times together. But sometimes love just isn’t meant to be. The pressures of designs needing exact dimensions on displayed objects, vector graphics, and perfectly predictable placement of objects tore us apart. 3D just isn’t how most designers design. They think they want 3D, but the moment something has lines that aren’t perfectly parallel to the edges of the browser (as 3D often does) they are not amused. And let me tell you, telling an illustrator that he/she should learn 3D math so that they can predict how your program will display their objects when moved around does not go over well.

Helpful AS3 libraries

Filed under: as3, flash — michaelangela @ 7:38 pm

Tools & Libraries at AlecMcE.com

AS3 Libraries

I use the following third-party AS3 libraries:

December 11, 2009

HP SWFScan Flash security tool

Filed under: as2, as3, flash, security — michaelangela @ 10:50 am

Too bad it’s windows only. I wonder if it would run under wine… at any rate the idea is pretty good. I’ll have to do some more reading to see if it lives up to its promise.

Register now to download FREE HP SWFScan and start securing your Flash applications

HP SWFScan, a free tool developed by HP Web Security Research Group, will automatically find security vulnerabilities in applications built on the Flash platform.

December 2, 2009

DrupalService makes it easy to use Drupal as a data source for a Flash site

Filed under: as3, cool, drupal, flash — michaelangela @ 9:46 am

I had to do a quick project earlier in the year for a photo gallery tied into Drupal. I used Dash Media Player for it because of it’s built-in Drupal service integration. This looks like a great way to make an easily customizable backend for a Flash/Flex based site without having to code all the internals for the communication which of course makes a very powerful system. Looking forward to trying this out.

DrupalService as a bridge between flash and drupal at dpdk Open Source

Drupal is a multiple award winning opensource content management system. With the drupal services module, it’s possible to consume data from drupal in flash. Drupal is a very powerful tool to provide data to flash movies and with the community investing much time in drupal services, now is a great time to be using drupal to power your flash websites. Services will be part of the drupal 7 core release.

We decided to release our nl.dpdk.services.gephyr package, which is a drupal as3 service which acts as a bridge between drupal and flash and features all the power of our as3 flash remoting package. It has the core functionality of the drupal services built in and is very easy to extend and to adjust to your needs. Furthermore, it makes use of all drupals’ security mechanisms via key and session based authentication.
It has more features and packs more power than any other opensource actionscript 3 based drupal package out there at the moment, so be sure to check it out.

November 24, 2009

Flash Functional Testing

Filed under: flash, functional testing, tool — michaelangela @ 2:25 pm

Looking into functional testing, i.e. testing a user interface to make sure it does what it’s supposed to. There are a lot of web tools which I’ll try to log here for future reference but I also wanted to note Flash resources as well.

flash-selenium – Project Hosting on Google Code

The FlashSelenium is the component adding Flash communication capabilities to the Selenium framework.

Basically, the FlashSelenium is a Selenium RC Client driver extension for helping exercise the tests against the Flash component.

September 9, 2009

And an example on how to use JSFL

Filed under: automation, cool, flash, tip, tool — michaelangela @ 1:14 am

And this is cool, too. I’m always looking for productivity tips and this is very cool. It really opens up a lot of possibilities.

deleteaso » Fix Textfields JSFL

Today Seb was having some issues when dealing with embedded fonts – read his post. He came up with some ActionScript ways to get around it. Well another way would be to use JSFL. A couple of my team members at Fuel Industries wrote the following JSFL script. It goes through your library and searches out any dynamic textfields. Once it finds one it makes sure it’s on a whole pixel, turns the auto kern off, embeds “UpperCase, LowerCase, Numerals, Punctuation” characters, and makes it not selectable. But you could make it do pretty much anything you can through JSFL.

Update multiple bitmaps at once in Flash CS3

Filed under: cool, flash, tip, tool — michaelangela @ 1:13 am

Just wanted to keep a note on this for future reference. Very helpful!

onebyoneblog » Blog Archive » Flash UI Panel to Edit the Properties of Multiple Bitmaps

Basically, it’s just as I described – you highlight multiple Bitmaps in your .fla’s library, adjust the settings (allow smoothing, lossy/lossless, jpg compression quality), then click on the “execute” button and – presto – all items are instantly changed.

September 2, 2009

Should I check it or not! Uncheck it, and leave a note

Filed under: as3, flash, flex, tip — michaelangela @ 12:12 am

Since this is being developed for others, the final concensus is to uncheck it and leave a README.txt that explicitly says so. 🙂

Accessing named MovieClips placed on the stage in Flash CS3 while staying true to OOP best-practices « dispatchEvent()™

I happen to agree with Sarah that the best way to work is to uncheck the checkbox and declare all of your variables yourself. This is the only way that really enforces good practices when you are using classes behind your MovieClips in the library.

September 1, 2009

More on strongly typed references to timeline instances

Filed under: as3, cool, flash, flex, tip — michaelangela @ 11:58 pm

And this states the issue well in a short sentence. Developing for Flash outside of the Flash IDE breaks into two camps if the “Automatically Declare Stage Instances” is checked or not. The solution mentioned below is another way (closer to the way I do) to get a reference not only as a movie clip but as a specific class object. That’s helpful when you’re adding linkages to your symbols with external classes.

Re: [Flashcoders] Automatically Declare Stage Instances andinheritance.

I think unchecking that box is the best way to handle this, but the other options presented are useful for working around these issues. My main worry seems to be incompatibilities with people who may write code using the box checked, which it is by default. It seems that this checkbox forks all AS3 code into two exclusive camps. I hope I make the right choice. 😦 C

On Mon, May 12, 2008 at 3:58 AM, Cor <[EMAIL PROTECTED]> wrote:
> This will do the trick:
>
> private var okButton:SimpleButton = getChildByName(‘okButton’) as SimpleButton;

Getting strongly typed objects from flash cs3

Filed under: as3, cool, flash, flex, tip — michaelangela @ 11:53 pm

I have done this for AS2 using Flash Develop, and something similar to it using PureMVC for a Flash CS3 project developed within FlexBuilder, but it’s nice to see it “approved” of sorts. The issue? How do you access objects on the timeline in a strongly-typed manner. The blog post itself describes the situation well and this solution handles it well enough for me. The good thing is with this solution is that the movie clip name can of course change in the FLA and you only have this to update to keep it in sync.

Flex and Flash Developer – Jesse Warden dot Kizz-ohm » Blog Archive » Designer vs. Developer: Declaring Stage Instances

I think I’ve seen this approach in the Essential ActionScript 3 book and I’ve used it.

1. Leave the option turned on, so the Flash IDE will generate all the properties.
2. For every thing I need to refer and use code hinting I would do the following:

private function get scroller { return this[“mcScroller”]; }

or something like this.

Another note on debugging Flash with Flex

Filed under: flash, flex, tip, tool — michaelangela @ 9:40 pm

Neato. Just making notes but it’s good to see. 🙂

BUT REMEMBER TO SET “Permit debugging”. Drove me crazy for a while until I saw I hadn’t… 😛

Big Bad Code » Blog Archive » Using Flexbuilder to edit and debug Flash Applications

Now you have the full power of Flexbuilder to code and debug and you still have the Flash IDE to layout movieclips and rapidly prototype things. Sweet.

Flash Builder 4 debugger is going to be even nicer?!

Filed under: cool, flash, flex, tool — michaelangela @ 9:38 pm

But we do have to wait until Flash Builder 4 is released. It’s in beta now but… well when I get some time…

mikemo » New Flex Builder debugger features: Conditional breakpoints, function calls from expressions, watchpoints, and more

I wanted to tell you all about some of the exciting debugger features we’ve been working on, which will be in Flex Builder 4, including several of the most common requests. All of the features listed below are in the preview release of Flex Builder that we gave out at MAX, with the, um, exception of exception breakpoints, which are not yet in the product. If you were at MAX, give these features a try, and let us know your feedback! If you weren’t able to make it to MAX, don’t worry, this stuff will eventually show up in a beta on Adobe Labs, and then of course in the final product as well.

Debug Flash CS3 with Flex Builder

Filed under: as3, flash, flex, tip, tool — michaelangela @ 9:36 pm

Lots of info on using Flex Builder to edit, but not so much on debugging. Just taking some notes.

Using FlexBuilder 3 to debug & edit Flash CS3 projects « The Morphic Group

Recently I was working on a project that due to a requirement had to be compiled in Flash CS3. Having spent the last few years exclusively using FlexBuilder I was shocked at the HORRIBLE AS3 editor and debugger in Flash CS3. I quickly tried to figure out how to edit and debug from FlexBuilder 3. I got some help along the way, and wanted to share the process.

September 27, 2008

Good AS2 class for textfields

Filed under: dev, flash, tool — michaelangela @ 4:29 am

Just taking a note on this. It looks quite useful.

Easy Custom Scrollbar Class for TextFields (AS2) | Taterboy.com: Graphics, Multimedia and Such

Here is the twin brother of the Easy Scrollbar MovieClip Class
that works with TextFields. It does not require the masking and is
perfect for Input TextFields. It has all the features of the MovieClip
version except for easing. TextFields scroll one line at a time which
is not very smooth.

August 30, 2008

Using Charles to test a SWF from a remote location

Filed under: cool, dev, flash, functional testing, tip, tool — michaelangela @ 12:36 am

I just wanted to make sure I keep this note handy. Charles is already very cool. This just makes it cooler. 🙂

Testing a SWF From a Remote Location (Deitte.com)

Map Local
allows you to map URLs to local directories. This means that you can
test a SWF that should be on a remote site. It’s incredibly useful for
the large project problem I was having or for debugging problems on a
live site.

July 5, 2008

Flash CS3 Open Source “Liquid Components” by Byte Array

Filed under: as3, component, cool, flash, note — michaelangela @ 8:37 pm

I am just about to wrap up a project using Flash CS3 and… I wish I saw this earlier… 🙂

Liquid Components for Flash CS3 [ by Didier Brun ] < ByteArray.org

The “Liquid Components” have been created for the Flash people, freelance coders and designers who wish to integrate fully skinnable components in their website, games or little RIA applications.

June 30, 2008

How to add duration info to a FLV file with the flvtool2 command

Filed under: cool, flash, flex, flv, linux, one-liner, python, shell, tip, tool — michaelangela @ 1:37 am

Very useful. Sometimes some flv conversion tools don’t include info that is vital for playback. In this case, the seekbar wouldn’t show up in the player until after playback finished. I’ll be testing to see if this resolves it but either way, this is good to know. The first hint was this post stating that the duration metadata probably wasn’t present in the file. A quick test with flvtool2 showed that indeed there was NO metadata. Using the command shown here, the data was added. I might either wrap this up in a python wrapper to batch a directory with it, or just bite the bullet and learn more shell programming to loop through all matching files in a directory.

[edit] I guess looping in shell programming isn’t so bad:

ls -1 *.flv | while read file; do cat "$file" | flvtool2 -U stdin "$file" ; done

Add duration metadata into flv movie – Shell Script (Bash) – flv, movie, flash, duration, metadata, flvtool2

By default an flv movie doesn’t contain the duration metadata. Using the flvtool2 program it is injected like this into the movie file.

cat mymovie.flv | flvtool2 -U stdin mymovie.flv

June 15, 2008

Pure AS3 preloader

Filed under: as3, dev, flash, flashdevelop, flex, tip — michaelangela @ 12:09 am

Well I wasn’t making a game but I just went through what the author describes: finishing up the app, gotta set up the preloader. I did a manual version of this but I like this idea. However I am not using FlashDevelop. 😦 I am in the Flash IDE for compiling. I have thought of being able to just embed assets from Flash CS3 into a Flexbuilder / Flashdevelop AS3 project. And it seems to be becoming a popular thing to do.

gamepoetry » The Last Preloader You’ll Ever Need

Zero Effort Preloading

Based on the fundamentals established in the bit-101 article, I have
provided an AbstractPreloader class. You must subclass this class in
order to create a meaningful preloader for your game. These are the
steps required to get your preloader working:

  1. Extend the provided AbstractPreloader class.

  2. Override the following protected functions: beginLoading,
    updateLoading( percent ), endLoading. If your Main class is not called
    “Main”, then override the mainClassName function too.

  3. Embed the preloader with a single line of code.

  4. Be mindful of gotchas.

That’s it, really.

List all symbols and their linkages in a Flash file

Filed under: as3, flash, flex, functional testing — michaelangela @ 12:02 am

I am just wondering out loud… is this possible? Is there a way to list all the symbols in a Flash file and the classes linkages defined for them? Ah, perhaps better still, if the symbols are the same name as the class they are to link to, scan all the symbols and scan all the classes in the project and see if they are all linked appropriately.

It’s not so bad though. If you miss the linkage, you get a runtime error. It would be nice to catch it earlier though.

I suppose with a custom Flash panel it would be possible though. Seeing what some do, like the very cool and have-not-yet-had-time-to-try-out Gaia framework, it looks like something like this would really be possible.

June 10, 2008

Howto: Flexbuilder 3 to debug Flash CS3 projects?!

Filed under: as3, dev, flash, puremvc, tip, tool — michaelangela @ 7:50 am

I have to say… if you EVER have to code in AS3 for Flash, using Flexbuilder is just downright awesome. Code completion (that ignore case unlike the Flash IDE), refactoring support, all kinds of goodness in general. Man… even things like searching for references to a particular function throughout the code base of the project.  I used this while working on a data-heavy Flash project aided by PureMVC. Sweet indeed.

The Morphic Group » Blog Archive » Using FlexBuilder 3 to debug & edit Flash CS3 projects

Recently I was working on a project that due to a requirement had to be compiled in Flash CS3. Having spent the last few years exclusively using FlexBuilder I was shocked at the HORRIBLE AS3 editor and debugger in Flash CS3. I quickly tried to figure out how to edit and debug from FlexBuilder 3. I got some help along the way, and wanted to share the process.

May 4, 2008

Flash Javascript combo upload script…

Filed under: dev, flash, tip, tool — michaelangela @ 6:11 am

Pretty cool. Just making a note of it.

SWFUpload News | SWFUpload

SWFUpload is a small JavaScript/Flash library to get the best of both worlds. It features the great upload capabilities of Flash and the accessibility and ease of HTML/CSS. See it in action….

* Upload multiple files at once by ctrl/shift-selecting in dialog
* Javascript callbacks on all events
* Get file information before upload starts
* Style upload elements with XHTML and css
* Display information while files are uploading using HTML
* No page reloads necessary
* Works on all platforms/browsers that has Flash support.
* Degrades gracefully to normal HTML upload form if Flash or javascript is unavailable
* Control filesize before upload starts
* Only display chosen filetypes in dialog
* Queue uploads, remove/add files before starting upload

March 31, 2008

Yahoo maps released an AS3 version!

Filed under: as3, component, dev, flash, flex, map — michaelangela @ 6:52 pm

There once was an app that wanted a map, but alas there was no map for the app. The app was content to use AS2, but it was too slow, too slow it was. Then there was a hack, of modest maps. It was not quite released for use but it was there nonetheless so used it was. It was hacked until it and AS3 and Flex were friends and friends they were for a long time. Now comes Yahoo Maps AS3 so dearly wanted so long ago.

OK, ok enough of that. I couldn’t keep it up myself any longer (bad influence of Monty Python on me… the “Silly Police” should be here momentarily).

Yahoo announced Yahoo Maps AS3 which would have been great a long time ago… maybe for a future rev of an app I would like to do. 🙂

Yahoo! Developer Network – Flash Developer Center – Yahoo! Maps AS3 Component

The new Yahoo! Maps API is now entirely built in ActionScript 3.0. The Maps API now gives you an incredibly powerful map engine and the ability to create custom components, overlays and markers while consuming different webservices provided by Yahoo!, or your own. The YahooMap component is distributed as a SWC, to get started you need to include it into your build path using Flex Builder.

The Maps API contains a core set of widgets, markers, overlays and web services to enable you to interact with the map in every way.

January 3, 2007

SpringWidgets : Developers

Filed under: dev, flash, marketing, web20, widgets — michaelangela @ 7:55 am

‘nuf said. But it looks like it’s more for eye candy than fully functional widgets. I’m not sure if hitting APIs and linking to other sites is something that would be allowed…. And this is run by Fox Interactive Media.

SpringWidgets : Developers:

Do you have the next coolest thing to hit the desktop? Enlighten us. More importantly, enlighten the world. Through SpringWidgets, you can show off your talent to millions of users, share ideas with other developers, and be a building block in the playground of greatness. All the tools that you need to get started are here.

December 11, 2006

Widget Analytics and Marketing with Widgets

Filed under: flash — michaelangela @ 12:44 pm

Widgets and analytics, as well as examples of successful widgets…

Widget Analytics and Marketing with Widgets:

Online Marketing Blog has an interview with Lawrence Coburnon Marketing with Widgets and Widget Analytics – it’s interesting to read for a two reasons: A. Widget Analytics B. Examples of Successful Widgets.

Older Posts »

Blog at WordPress.com.