Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Mediator or Proxy  (Read 3855 times)
jeffyamada
Newbie
*
Posts: 4


View Profile Email
« on: November 18, 2009, 01:46:16 »

I'm writing several methods in javascript to handle the scroll position of very tall flash piece. I'm using PureMVC within flash and am wondering if I should interact with the javascript functions using a Proxy or a Mediator.

My initial instinct was to use a Proxy since it will be setting and getting data, but it occurred to me that none of this data is "model" data, and the scrollbar and browser scroller are actually more UI components.

Any guidance would be hugely appreciated, many thanks in advance!
Logged
Joel Hooks
Courseware Beta
Sr. Member
***
Posts: 146


baby steps

 - 46288188  - passport@provinsal.com  - joeltuff
View Profile WWW Email
« Reply #1 on: November 18, 2009, 02:07:14 »

You can mediate the surrounding HTML wrapper on the view. That's how I'd approach it anyway. If there was data transfer happening, then I'd put that on the model, but conceptually I think you're on the right track here.
Logged

http://joelhooks.com - my ramblings about developing with actionscript and python using pureMVC and django respectively.
jeffyamada
Newbie
*
Posts: 4


View Profile Email
« Reply #2 on: November 18, 2009, 02:13:13 »

Awesome, thanks! I think since I'm only transferring information like current scroll percentage I'll opt to mediate. Thanks for the reassurance!
Logged
Pages: [1]
Print