Glad you're loving the beta.
Currently, the only way to link to an external page is through adding some custom code in Flash Builder.
However, this is a feature we've totally been thinking about, so stay tuned for more info!!
To add this functionality in Flash Builder, just use the following snippet of code in the click event handler of a button or such:
navigateToURL( new URLRequest("http://www.adobe.com"), "_blank");
Does this answer your question?
That would totally help if I had more an idea of where to exactly place the line of code you gave (TY for the quick response btw).
This is all I get after I've imported it into Flash Builder, I even tried looking in my Flash book for more reference as to where I could add the OnClick option you speak of. -Mike
So, the button dispatches an event whenever it receives a click.
So, you could do the following:
Next, add a script block to your application, after </fx:DesignLayer> and before </s:Application>, which looks like this:
protected function handleClick():void
navigateToURL( new URLRequest("http://www.adobe.com"), "_self");
There's some more examples using buttons/events here in the flex language reference documentation:
Let me know how it works out for you, and again, this is a workflow we're thinking about and hoping to make easier for users in the future, stay tuned.
Here's one way to find the right spot:
1. Use the buttons above the code editor to switch to "Design" mode
2. Click to select the button
3. Switch back to "Code" mode -- the corresponding <s:Button> tag should now be selected
4. Add click="YOUR CODE" as an attribute on this tag
Except replace "YOUR CODE" with a snippet based on Tara's message above. Just make sure that, if you use "s within the code you use 's around the entire attribute, or vice versa (either one is allowed, as long as the quotes inside the code and the quotes wrapping the code are not the same type of quote).
Hope that helps!
Took a tad bit of common sense on my part...lol but I finally got it working and it's great! Now after I complete all 5 buttons (only one was set with animation properties), do i contiue to copy and paste the suggested code below </s:Application>? Either way, both of you have lead me down a great road of learning today! Thanks for your help. -Mike
i was successful at making my catalyst file buttons for external urls work in flash builder...
when i run the project in flash builder everything works exactly how i want it to...
but i know very, very little about flash builder and now i'm really confused
as how to get the flash builder file deployed to the web...
i know that i can't open up the modified .fxp file again in catalyst to republish
the new main.swf and main.html files, so i don't know what to do next...
any help would be very appreciated!
and i love catalyst!... will definitely be buying it when it is released...
nevermind... i got it...
export release build ;]
With all due respect, "this is a feature we've totally been thinking about"??? I've been using Adobe products since the beginning. Such an important feature such as being able to assign an external URL destination to a button action should be a core ability to the new program. Has anybody from Adobe even done a search to see how many end-users of Flash CS3/CS4 are becoming seriously frustrated with the lack of ability to link a simple button to a URL with all this "rocket science" software? OMG, I am actually beside myself when I consider this lack of program planning in relation to actual end-user's needs. Adobe, you need to QUICKLY come up with a "beta 1.2" version of Flash Catalyst that includes external URL linking. Fine-tune it later so the functionality can be incorporated with the totality of AS3. But, for now, when you click on your button object, a humble window should appear with the title "assign URL". Put it in the HUD. I am totally impressed with the Flash Catalyst concept. Flash Catalyst, as I see it, is a development of program architecture that could be the gateway to the next level of web design and programming. External URL linking is one "i" that seriously needs dotting. If you were Boeing, would you even consider the new 787 without a pressurized cabin? Even in its "beta" flight test evaluation stage? Come on, guys and gals in the Adobe development arena... ramp this capability up ASAP!
Message was edited by: floridaviper69 (for sp)
We tend to err on the side of caution when we talk about future/upcoming features, because as you're probably all too familiar, things can and do change unexpectedly in software development. We don't want to promise things and then ultimately not deliver them.
That said, unless some truly epic disaster unfolds, you will see a "Go To URL" action in the next public beta of Catalyst.
In the meantime, please keep in mind that beta 1 is just a work in progress. If it contained every feature needed or planned for 1.0, with all the i's dotted, it wouldn't be a beta anymore.
I've solved my dilemma with much appreciated help from Dan Carr. You guys are really on to something with Catalyst. I was a devoted Adobe fan before Catalyst. I am now a devout fan. I consider myself a truly serious creative person with respectable technical skills. When a company like Adobe comes up with a program like Catalyst, my excitement about how my creative envelope could expand gives me enthusiasm that I just can't get my arms around. Kudos-x-3! I can't wait to download the next beta!!! Also, I've worked with quite a few beta programs over many years. Beta 1 Catalyst disguises its "beta" status very well. Just, please, keep up the good work. You're working wonders for those of us out there that truly need what you do. Thanks for the response!
Glad to hear it! We definitely share your enthusiasm And we want to hear as much feedback as we can get!
After editing source in Flash Builder will those changes carry over to Flash Catalyst in the FXP file? Following the very helpful directions in this thread I was able to create the external URLs in Flash Builder. I notice when loading the same FXP file in FC that the URLs are not present. Any help would be appreciated.
Unfotunately no. I've tried a few different ways to get the FXP file to keep the button links intact while continuing to work within Flash Catalyst. So, if your goal is to have buttons with link abilities on them, make sure you save that for last to be done from Flash Builder. -Mike
Thanks for the response Mike. I can't wait for Beta 2 or the v1.0. Hope it coems withthe ability for specific item click events in datalist and external links.
Where exactly do you enter this information? I'm new at flash and coding and am completely lost. Thanks in advance.