blog.ashier.com flash / flex / air development
rss rss comment

SWFAddress to PureMVC

Download Sample File that uses (PureMVC 1.7.1)
Download Sample File that uses (PureMVC 2.0.1)

I’ve been making my self familiar with PureMVC so I am practicing a little. I was also curious about integrating PureMVC with SWFAddress in Flash CS3, so I have decided to port the flash example at http://www.asual.com/swfaddress/ using PureMVC.

While testing, I encountered a problem, when you change the query parameters directly into the browser’s address bar, then click a button inside the movie, it is still functional but the link in the browser is not changing anymore… I still don’t know how to fix it. :) Anyway….

The demo can be viewed here, and you can download the source code here.

Tags: ,

9 Responses to “SWFAddress Example Ported to PureMVC”

  1. Rostislav BULGARIA Says:

    Great! I also was interested in trying something similar.

    The problem you’ve experienced probably happened in Firefox. It’s an old Mozilla issue that has been fixed in the upcoming Firefox 3.

  2. Ashier de Leon Says:

    Yup probably, I haven’t tested it yet in IE. :) Thanks for the info.

  3. William McBee Says:

    I must be doing something wrong, because this is part of a big project that was handed to me and this implementation will change the URL, but not allow for the browser to update when previous (within the program) or back button (via the browser) is used.

    Any other examples exist?

  4. Ashier de Leon Says:

    What you’ve experienced probably happened in Firefox. Same thing happened to me while developing this. It is a Mozilla issue wherein when you change the URL directly in the browser and try to navigate inside your movie, the browser’s URL won’t update.

  5. William McBee Says:

    It’s not only FF, it’s in IE as well. The update isn’t forced into the browser at all; it’s being run by the Flex program and the program is updating the browser, but not the actual app itself for some reason. I’ve come to suspect it’s the implementation of the SWFAddressProxy, but I’m still tracing.

  6. Ashier de Leon Says:

    hmmm… that’s weird. Is it possible to post the files so I can help you debug?

  7. William McBee Says:

    This is a huge project. And by huge, it’s ugly… and huge. I’m now debugging the ApplicationFacade, ChangeContentCommand, SWFAddressProxy and ContentProxy - the last is for some other issue - but I’m starting to think it’s something small in the first three files.

    What all would you need to see? If you’re able to see, my e-mail account is what I’m using to post.

  8. SWFAddress Ported to PureMVC - Updated for PureMVC 2.0.1 | blog.ashier.com Says:

    [...] have updated my “SWFAddress Ported to PureMVC” example to support PureMVC [...]

  9. blog.ashier.com | flash / flex / air development | » Blog Archive » PureMVC - SWFAddress Template Says:

    [...] just noticed that the source code for Porting SWFAddress to PureMVC has been repackaged and modified by Pickle of http://allflashwebsite.com. Pickle made an awesome [...]

Leave a Reply