At 12:26 PM 10/28/2005, you wrote:

> ><snip>
> > > <a href="asfunction:addStory,
> _root.arrStorys[6]">
> > > <b>BRUCE CLARKE'S SON<br
> > > />COPS A SECURITIES ACT PLEA</b></a><br><br>
> ></snip>
> >


<snip>
> When I click, nothing happens, unless it is trying
> to open a browser and
> I'm testing in the debugger or simply running the
> movie. I've added a
> trace() to addStory, nothing appears in the output
> window.
</snip>

 Miles, My suggestion. is to try the simpliest case
that could work, get that working and go from there.
have you tried someting ultra simple like:

In html: <a HREF="asfunction:myFunction">

In ActionScript:

function myFunction() {
   _root.myText.txt = "Called myFunction";
}

You'd have to put a textfield on the stage with an
instance name of myText of course. This way you can
test your code in a browser.

best of luck,
-Steven

Steven,

Good suggestion, and thank you, but it made no difference.

I pared down the addStory() function just as you suggested, even removing the trace() calls in case the movie was tripping over those. Just a simple assignment of "In addStory" to _root.txtNews.text. Like so:

        function addStory(){
        _root.txtNews.text = "In addStory";
}

A click on this link, taken from the output window:
        <A HREF="asfunction:addStory"> <b>NEIL LEBLANC WANTS TOP JOB</b></A>
should fire addStory.

addStory is in frame 1 of the movie, but then so is all of the other code (Which all works, including the function which build the lists and assigns it to the left-side text area, txtHead.)

It's starting to get bizarre. (Maybe txtNews and txtHead have to be on separate levels?) I have used asfunction() to call functions which load data from text files, etc.

I've tried putting a breakpoint ins addStory. It just does not seem to get called.

This thing is just playing DUMB, or more accurately it is as if asfunction doesn't exist, but won't throw a compile-time error.

I double-checked the Flash player that's running, it's version 7,0,19,0. Flash MX 2004 itself is version 7.2, Licensing version 4.0.0.32. And I've tried all of these things in IE 6, and in simple preview mode (Ctrl+Enter). The text area names and settings have been double-checked, yes they are enabled, HTML is set to true, etc. etc.

Do I need to compile with the "named anchors: option? Obviously not, just tried it and it made no difference.

Heck, I've even resorted to that venerable Windows 3.x trick and cold-booted the computer.

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to