Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OK Flash Gurus.... Im trying to use

Status
Not open for further replies.

nyne69ball

Technical User
Feb 26, 2001
52
US
OK Flash Gurus.... Im trying to use "asfunction" as an html type hotlink and Flash keeps throwing errors at me and shutting down.... i.e.

FAQList and Status are text boxes on the main stage...


FAQList = &quot;<b><i>FAQ's</i></b> <br> <br>&quot;;
Status = &quot;Calculating&quot;;
function myMovie (label) {
gotoAndPlay (label);
}
Q1 = &quot;<A HREF=\&quot;asfunction:myMovie,testing\&quot;>First Record </A>&quot;;
Q2 = &quot;<A HREF=\&quot;asfunction:myMovie,testing\&quot;>Second Record </A>&quot;;
Q3 = &quot;<A HREF=\&quot;asfunction:myMovie,testing\&quot;>Third Record </A>&quot;;
Q4 = &quot;<A HREF=\&quot;asfunction:myMovie,testing\&quot;>Fourth Record </A>&quot;;
Q5 = &quot;<A HREF=\&quot;asfunction:myMovie,testing\&quot;>Fifth Record </A>&quot;;
Q6 = &quot;<A HREF=\&quot;asfunction:myMovie,testing\&quot;>Sixth Record </A>&quot;;
NumRecords = 6;
for (i=1; i<=NumRecords; i++) {
Question = eval(&quot;Q&quot; + i) + &quot;<br>&quot;;
FAQList = FAQList + eval(&quot;Q&quot; + i) + &quot;<br></a>&quot;;
}
Status = &quot;Done&quot;;
stop ();

Any Ideas??? am I calling the function wrong or something?????
The FlashGuy :)
 
hi again FG,

can you elaborate a little. When the user presses on one of the links created in the 'table', are you're actions supposed to be telling an mc to go to a particular frame? ie: instead of all the 'testing' targets you would have 1,2,3,4.... ? Where are these actions located, in the main timeline, or on an mc event?

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Without knowing the bigger picture/use of this it's hard to offer an explanation to your problem, it could be a number of things. I can get it to work fine by redefining the variable 'testing' as 1,2,3 etc and can't see the problem you're having with this. You could even redefine the variable 'testing' dynamically, but without any info I'm gonna leave it and say: this works fine (albeit over-elaborate)!

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Thanks once again for all of your help everyone!!!! I have dismissed all other boards for this one, since this one is the most helpful. (Just thought I'd butter you guys up a little) ... :)

ok, down to business...

Here's the big picture:

I am creating an FAQ section for the Xtant website you saw earlier.

I'm trying to bring in all the FAQ questions from a database and list them in a scrollable text field. each one of these questions will be a hot link to call the specific question from the db to another dynamic text box next to the listed questions.

The way we handle this will determine the data exchange hotlink method we use for the rest of the site.

Oh by the way Dave If been wanting to contribute to youe Lets Draw application development... time is scarce but I would love to be a part of that!!!

Thanks All.... The FlashGuy :)
 
hi FG

So that's the complexity explained, I was wondering why everything was so intense. ;-)

Don't really know where to take this from here, is it fixed? What are you using for db: ASP and MSaccess? Is your ASP performing as desired? Or is the db an array within your movie?

re:Draw-beta. It's been taken off the shelf for public development I'm afraid (hence the thread is now gone). Pinkzeppelin Ltd requested removal for Copyright reasons. Sorry mate.

dave davdesign@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^
 
Well Dave... I am truly disappointed to heart we cant develop the Draw-beta. too bad.

Anyways, to the task at hand... We are using Cold Fusion rather successfully with the Flash interaction and Access for the initial db then converting to SQL when complete.

Heres the verdict:

Flash Calls the CF page CF pulls the data and sends in in a URL string which uses &quot;Split&quot; to produce an Array. We then assign a dynamic asfunction call in a loop to make the text &quot;Hot&quot;. We found that the function call using the goto command had to be placed inside a MC to provide a &quot;delay' otherwise the Flash player freaks for sone odd reason. The documentation that sparked this whole thing is in the FLash 5 Bible (Robert Reinhardt) pg 724. We tried to take it to another level amd ran into the error wall. Thanks to Robert's help, we were provided the hint about the necessary delay.

As it sits we are ready to try implementation with live data wish us luck!!! The FlashGuy :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top