Adobe

option up and down

Kicking myself for not finding these sooner so, posting in line with the current trend of highlighting little Flex time-savers. Two ActionScript editor short-cuts (and probably apply to any Eclipse code editor?)…

1. Select some code in the ActionScript editor and press Option-Up or Option-Down, and the selected block of code gets moved accordingly. Or just place the cursor on a line if you only wish to move a single line. Saves a load of messing with Cut-Paste.

2. Need to duplicate a line? Place the cursor at the start of the line and press either CMD-Option-Up or CMD-Option-Down, and the current line (or selection if you have one) gets duped above or below the cursor respectively.

With either of the above, if you make a selection, you don’t need to be character accurate. The movement is applied either to the line touched by the cursor, or the lines touched by the selection. i.e. If you select part of a line, the whole of that line is included in the selection to be moved.

Posted by creacog in ActionScript, Eclipse, Flex, Flex 2, Flex 3, 1 comment

flex, mac, external browser

Ted Patrick has been quite prolific of late at publishing little productivity hints and tips. I think this one from a couple of weeks ago is worth echoing and noting the workaround for the problem it raises on a Mac.

We are setting up Builder to launch the help pages into an external browser. The key advantage of which being that the code samples can then be copy/pasted. On a Mac there is a recognised bug in eclipse that if you choose Firefox as the external browser, and it is NOT your normal system default browser. Basically Eclipse attempts to launch a second instance of Firefox which will generate the “Only one copy of Firefox can be open at a time” dialogue…

Firefox close dialogue

So to get around this, you have two options.

Option 1, if you have Firefox as your default browser for the entire system, simply choose “Default system Web browser” in the Eclipse preferences panel.

Option 2, if you want to keep something else set as your system default browser e.g. Safari, but would use Firefox for displaying Flex Builder help, you need to either edit or create a new external browser entry using a command structure as per comment 5 on the eclipse bug sheet. Essentially the following settings work…

  • Location: /usr/bin/open
  • Parameters: -a firefox %URL%

Flex Builder > General > Web Browser >Edit external browser

Posted by creacog in Bug, Eclipse, Flex, Flex 2, Flex 3, Mac OS, 1 comment

flash, flex and vice versa

I have a small AS3 project where I need to keep the SWF quite small. I really want to use the Flex Builder environment to do the coding, and ultimately produce a target or targets suitable for inclusion both in Flash and/or Flex projects.

Two very helpful posts of the last couple of days with respect to setting up a suitable environment:

Posted by creacog in Adobe, CS3, Flash Platform, Flex 2, Flex 3, 1 comment

flash ‘n hardware

Looking forward to this month’s LFPUG meet-up on the 26th July and seeing what can be done with a Wiimote and a Make Controller Kit. Full details on the site.

Posted by creacog in Flash Platform, User Groups, 3 comments

a little fireworks CS3 bug

Well in my opinion incorrect user-interface behaviour rather than a bug. I just used Adobe’s report a bug form, but ironically my Safari crashed when I hit the submit button, so I’ve currently got no idea if this went forward.

The issue concerned is not new and not really a big deal, but I just had to process a pile of images and it bit me so many times I had to get it out of my system by writing about it…

The interpretation of the tab key within the properties panel for certain selected tools is in my opinion incorrect and is inconsistent with established convention.

Example 1: Marquee tool selected:

1. Set the style to Fixed Ratio or Fixed size
2. Double-click the marquee width property
3. Type with desired width.
4. Hit tab

At this point I’d expect the focus to tab across to the Marquee height property. But it doesn’t. It sets the focus on the marquee width property and selects it. I need to hit Tab a second time to get to the height property.

I’ve been caught by this so many times. It is impossible to learn to accommodate to this odd behaviour because in every other application I have ever used, tab takes focus to the next input field.

Example 2 : Eraser tool selected:

This shows more clearly the logic which has been implemented.

1. Double-click the value of the Size property
2. Type a new value
3. Hit tab

Again, instead of tabbing to the next input field (Edge) the focus remains at the Size property – value selected.

4. Double-click the Edge property
5. Type a new value
6. Hit tab

At this point instead of tabbing to the next field (Opacity), you tab back to the Size property!

In summary, it seems the implemented behaviour is that the first use of tab within a field-set of the properties panel always tabs to the first item of that field-set, the tab sequence is thereafter obeyed until you leave the field-set. I feel the behaviour should always be to tab from the current field to the next.

I’m a programmer rather than graphics dude and I use Fireworks infrequently. So many times I’ve typed a width, tab, then a height only to find I’ve just overwritten the width with the height – no big deal – but a tad annoying!

Posted by creacog in Adobe, Bug, CS3, Fireworks, 1 comment

essential actionscript 3 published today?

I don’t have my hands on it yet. I do have it on pre-order. Although at time of writing, Amazon is still showing it as ‘not yet published’, today is the official publish date. If it’s predecessors are anything to go by, this really will be the one book any ActionScript programmer should always have to hand. For more information and samples, check the author’s blog.

Update: Must be in high demand! Going to have to wait until at least 11th July 2007 for my copy.

Update (14 July 2007): my new “Estimated arrival date: 25/07/07 – 30/07/07” from Amazon.

Posted by creacog in ActionScript, Adobe, CS3, Flash Platform, Flex, Flex 2, Flex 3, 0 comments

my experience with Adobe UK Licensing – horrible

I really didn’t want to write this post. Much of my time is used advocating Adobe tools and technologies to colleagues and clients. I’d rather be exploring and blogging on the integration of work-flow of CS3 and Flex. But after exchanging with Adobe UK License Support, something in the order 28 emails since 26 April, and following a brief 30 days of the free trials, I am now unable to use CS3 Web Standard until Adobe gets around to sending me the installation media.

UPDATE: Resolved 22-June-2007

in the beginning…

In the MacroMedia days I was signed up to DevNet. Expensive. But a key benefit to me was the immediate availability of new product versions and serial numbers. When DevNet was discontinued I followed the advice in the discontinuation email at the time, to purchase a 24 month MVLP subscription. This purchase was made in January 2006 – right in the middle of the transition to Adobe – which probably caused the first couple of problems.

problem 1 : MVLP to AOO ?

In January of this year whilst in the process of purchasing Flex Builder 2 I made a couple of approaches to UK Licensing

  1. To see if I should purchase Flex Builder 2 through AOO
  2. To to see if my MVLP needed to be migrated to AOO

To the first point, I was invited to contact “Adobe Local Office for Enterprise Customers”. It became clear that the lead time to fulfilment was going to be too long so I eventually purchased Flex Builder through the Adobe UK On-line store – expensive but quick. To the second point I simply received the reassurance “Please be informed that as long as your maintenance is valid when the new version will come out ,you will receive the free upgrade automatically.”. This turns out to be a standard fob-off reply and is not based on the information of my original question.

problem 2 : MVLP agreement lost

As the release of CS3 was imminent, I had seen forum messages of other developers who had been migrated to AOO (begrudgingly), and had received email notifications with respect to CS3. Neither of these had happened for me so I contacted License Support UK again. The alarm bells rang with this part of the reply: “Since July 2006, all M.V.L.P client information has started to migrate into a Adobe Domain. Thus, I have searched and I cannot seem to find this maintenance agreement.”. Yet the rest of the email seemed to reassure me that “The account will automatically receive the upgrade information and media.”. However the fact the agreement couldn’t be found suggested to me that nothing would happen automatically, and I had to insist that some investigation take place and supplied all my certificate information.

problem 3 : MVLP to cover upgrade? – some doubt

“These details pretain to a Normal license protocol.” The suggestion here seemed to be that the MVLP certificate did not entitle me to upgrades. Somewhat confusing as it was for that reason it was purchased – I already had the rights to use Studio 8, I didn’t need MVLP to continue using it. I was invited to scan and send the certificate for further research – and did so.

Responses had been quite quick so far. At this point the ‘question’ was escelated to something called “L3 licensing”. The response from which requested details of the reseller and the invoice. Ironic, as this had been purchased directly from Adobe / Macromedia – no reseller.

problem 4 : Adobe response times here-on-in are SLOOOOOW

A week passed with no word, so I sent a nudge. The reply “Please be informed that we received your email and we re-escalate your request to the local office,we will contact you as soon as we will have an answer.”

Six days later I nudge again. The reply : “I apologize for any convenience this matter may have caused you but I’m still waiting for an answer, your issue has already been escalated from the Local office to the Licensing team and as soon i will have an answer I will contact you by email or by phone.”

Another week passes. I nudge again – rather more forcefully. But the reply looks familiar: “Your request has already been escalated from the Adobe Local office to the Licensing team and we are still waiting for a response, I will re-escalate your complaint and I will contact you as soon as I will have an answer.”

problem 5 : Welcome to the Adobe Licensing Web Site

Without announcement, on the same day at 10:22pm I received login details to the licensing site. However upon logging in my account contained nothing. No certificate. No license. No products. No serial numbers. No downloads – nothing.

I gave it a few days and checked again – no change. Time to send another nudge. The reply: “The order has been place under a wrong account number that’s why you can’t see anything. I asked if we can send the certificates that contains the serial number to your adress email and if we can send you free install CD. I am waiting for an answer, and we will contact you as soon as possible once a solution has been found.”

So, waiting again!

It is clear that UK License support do not have authority to act and are continually waiting on some other authority at each step of the process.

Another 5 days and I nudge again, 1 day short of the expiry of my trial period on CS3 products.

problem 6 : I got the certificate – now what?

By return, I had received the certificate via email. Followed by a message : “… and also we escalate your request to claim the media coupon codes.”

I was hopeful, but despite the invitation on the Flash CS3 “Software Setup” dialogue to enter the serial number on my Adobe Open Options license, the serial number is rejected.

problem 7 : trial period over, and I am without CS3

More days have passed. Apparently “its not possible to use a volume license serial number on your trial versions. Converting Trial Product to TLP or CLP Volume Licenses: Customers must uninstall the trial version and install the software using the correct media.”

And guess what? : “There was an error with the media coupon codes and the local office working with your issue”

wrapping it up

As I write this, I am waiting and fuming. I have been given no time frame during which in which I can expect fulfilment. There is a limit as to how long I can delay my work. If it comes to it I will have to go to a shop and buy it all again – can you imagine the anger that will brew up.

Frankly the people who have dealt with my emails have been curtious at every stage. However it appears to me that they are not empowered, and are probably inhibited by the processes implemented within Adobe. This goes on to enforce my opinion of Adobe’s split personality where the tool development, product evangelisation and support from the technical side of the business is second to none. But on the business side, the pricing, licensing policy and procedures are something of a let-down with plenty of room for improvement. It is particularly galling that one of the reasons given for inflated pricing outside the US, is the cost of locally employed personnel.

I have asked on a number of occasions for the contact details of a senior manager to whom I can raise my concerns. So far that information has been omitted from any replies so I gave up and blogged here to get it off my chest.

I haven’t seen many similar complaints out there. Is my case a one-off? This has been my first experience of Adobe Volume Licensing. Should I try to get out and back to standard methods of software purchasing?

I write this one day short of 7 weeks since the start my communication on this. Who knows when it will end? I’ll post an update here when there is final resolution.

UPDATE: Looks like I’m not the only one suffering, check this on the Adobe user to user forum. – How do Adobe expect their customers to be in any way satisfied with this crappy process? There really does seem to be no-one in-charge.

UPDATE (22 June 2007): As I write this, I’ve just done a 2 hour round trip to collect the package from UPS. I missed the first delivery attempt – I didn’t know the package had shipped. Stayed in all day for the second delivery attempt, but somehow between the first and the second the delivery address got messed up on the parcel – so it went back to the depot. (This whole process is jinxed). Now to see what’s in it and if it works. Note: my “Easy to use” licensing service lets me log-in – but then contains no menus, no options, nothing!

UPDATE (22 June 2007): It works! I used the Adobe Uninstaller utility to remove the trial versions of CS3 products then installed from the supplied media. Entered the serial number once. And we are in action for all the apps. What a relief. The whole process took 8 weeks. (Admittedly the last 4 days was due to messing about with the courier). If I added up the chargeable time I wasted in this process, it would have been more efficient – as well as more convenient – to have thrown away the old license and bought the software afresh. Reliance on this as a business model is not something I would recommend to Adobe. I guess mine was a special case? But it has revealed weakness after weakness and failure after failure in the system. Adobe – you need a trouble-shooter! Seriously! When you have a case that doesn’t fit the normal process, you need a human to cut through the normal red tape.

The remaining residual problem, is that I now have two accounts on the Adobe Worldwide Licensing site. On one account I can log-in, see all the controls, but not find my certificate or any other content. On the second account I can log-in, but once there, none of the menus are available. I can’t do anything other than log-out again! Fortunately the certificate was emailed to me a couple of weeks ago.

I dread having to deal with AOO licensing in future.

Update (10 July 2007): My account on  the Adobe Worldwide Licensing site is finally fixed.

Posted by creacog in Adobe, CS3, License, 1 comment

tile or repeat an image into a flex application background II

Back in November 2006, I made a step-by-step post of how to locate, copy and adapt the ApplicationBackground class from the Flex SDK, in order to tile an image across that background.

This is simply an update to that post, this time with source-code and the addition a sample of a tile image within a Canvas. You are free to take and re-use this code as you see fit.

The following examples use a programmatic skin approach, and rely on the image being embedded at compile time. This is a quick and dirty method. For more information on programmatic skins, please refer to Aral Balkin’s Quick-Start on the Adobe site.

You can get your hands on the source with a right-click (control-click on a Mac) on the following examples.

Application tile background

In this sample we have created our own ApplicationBackground class and and applied it within the Application tag. You can change the repeat policy by uncommenting the appropriate line within uk.co.creacog.skins.ApplicationBackground . Choose this link if you wish to view example 1 in a new window.

You need JavaScript and Flash plug-in 9 to view this sample.

Canvas tile background

The key thing to be aware of is that the component background is actually controled by the a decorator class primarily designed to control the component border. So in this example we are applying our uk.co.creacog.skins.CanvasBackground to the borderSkin of the Canvas component. I added a slider to control the corner radius to demonstrate that we can have both rounded corners and a tile background. Note: that the borderStyle of the the Canvas need to be set to “solid” in order for the borderSkin to be invoked. In addition the onus is upon us as the programmer of the skin to respond to the cornerRadius values. In this case by calling drawRoundRectComplex.

Should we need a drop-shadow, again the onus is upon us to implement it within our custom skin. I did not take the example that far. The information you need to do so is in Aral’s article.

Again, choose this link if you wish to view example 2 in a new window.

You need JavaScript and Flash plug-in 9 to view this sample.

Other ways

Other authors have documented approaches with variations which might suit you better. You may find the following useful…

If you know of better ways, please do add links to the comments.

I haven’t got my hands on the Flex 3 beta yet. I have my finger’s crossed that these approaches might become obsolete with the new framework?

Posted by creacog in ActionScript, Adobe, Flex, Flex 2, 7 comments

good stuff coming in the form of Flex 3

It was pretty good to see some of the new stuff coming in Flex 3 during the developer day this week at Adobe Live London. We were a tough audience and didn’t give much of a WOW feedback – sorry! Largely I think because much of the new stuff demonstrated I think we might have claimed a right to expect – such as re-factoring support and improved work-flow with the rest of CS3.

Not covered on the day, but would have got a WOW from me is ‘Framework caching’, described by Ted on Flex today.

To me this was not expected, however I tend to think it has been a long-time coming and is one of the most significant improvements within Flash Platform in a long time. I came to Flash very late (MX2004) and primarily worked with components. (I came to Flex even later – V2.) It always struck me as a little odd that Adobe/Macromedia placed such great emphasis on keeping the plugin download small which then had the knock-on of vast quatities of band-width wasted as the same component code is transmitted time after time and where you least desire it -hitting the load time of your SWF. However now being able to cache the framework now means only the code specific to the application need be transmitted. Much more net-friendly. I can’t wait!

Posted by creacog in ActionScript, Adobe, Flex, Flex 3, 0 comments