Sajiid,
Understand that this is for a daily business news site, paid for by
subscribers; about three reporters generate 10~15 stories per day. Stories
and headlines are stored in a database and fetched for display by date. The
retrieval is done with a PHP script which feeds an XML stream to the movie.
Within the movie the XML is parsed and stored in two parallel arrays, one
for headlines, the other for the stories.
The news is presented in two TextAreas, the left one holding the headlines,
the right one the associated news story.
The headlines are created by processing the array of headlines, writing out
each as follows:
"<A HREF='asfunction:_root.addStory,"
+ i
+ "'><b>"
+ tempLink +
"</A></b><BR><BR>";
Where "i" is the index of the array ( and the sole parameter allowed for
asfunction() ) and tempLink is the headline text. The break tags space out
the heads so that they are legible.
Clicking on a headline calls addStory, the indices of the two arrays match,
and it assigns the corresponding story to the story TextArea.
Note that we retrieve at most 15~17 stories, most are around 500~750 words
- thus it's only one hit on the server. The XML is parsed once, and
headlines and stories are assigned to their respective arrays.
Storage in parallel arrays means that when a headline is clicked there is
next to no latency - all processing is local and the story appears
near-instantaneously. It's quite possible, if one is a fast reader, to bang
down the list of headlines and quickly scan the lead paras in 90 sec or so.
This is probably more than you want or need to knnow. Others may have
different strategies, but this works.
Oh, and we did it all in Flash because the first thing the movie does is
authenticate the user, the text cannot be cut/pasted, and the material
which is created and owned by allnovascotia.com stays with allnovascotia.com.
Regards - Miles
At 02:32 PM 1/31/2006, Sajid Saiyed wrote:
Thanks Miles,
That saves me from trying :)
If there is any workaround, I would be interested.
-- Sajid
On 1/31/06, Miles Thompson <[EMAIL PROTECTED]> wrote:
> At 08:45 AM 1/31/2006, Sajid Saiyed wrote:
>
> >Hi,
> >Is it possible to create named anchors in dynamic text field?
> >
> >Something similar to HTML named anchors where a link in the text jumps
> >to another position with that anchor name.
> >
> >I searched the archives but could not get an answer.
> >
> >-- Sajid
>
>
> No -- tried last fall, was hoping to link a list of headlines to stories.
>
> Links can be used to trigger asfunction() or to do something in the
browser.
>
> Miles
>
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.1.375 / Virus Database: 267.14.25/246 - Release Date: 1/30/2006
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 267.14.25/247 - Release Date: 1/31/2006
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders