Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Supporting Technologies > Server-Side Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-11-2003, 01:26 AM   #1
Ashley
Registered User
 
Join Date: Mar 2003
Location: Oakland, California
Posts: 33
Default loadVars - External HTML - href interacting w/ flash?

I'm using a loadVars command to load in HTML formatted text from an external .txt file. What I am trying to do is make a link (<a href="url">) from my external text file, set a variable and then call out a flash function. Can this be done?

for an example of exactly what I'm trying to do... goto:
http://www.donsuemor.com/0.9.html
When it's done loading... Click the "madeleines" button
Then click "serving suggestions"

you'll notice an underlined link in the first and second line ("DonSueMor Madeleine"). If you click that, it tells flash to load in differant content. Right now that text is built into flash, however I would like to load it in from an external txt file if it's possible.

Thanks a lot for any help
Ashley is offline   Reply With Quote
Old 07-11-2003, 01:33 AM   #2
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Howdy...

I am not 100% sure if I understand your question, but I think you need to use 'asfunction' to do that...

Do the search in the forum with that term and check these threads as well...
http://www.actionscript.org/forums/s...threadid=26564
http://www.actionscript.org/forums/s...threadid=28483
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 07-11-2003, 02:25 AM   #3
Ashley
Registered User
 
Join Date: Mar 2003
Location: Oakland, California
Posts: 33
Default

Hey thanks a lot... that worked... except for one minor detail

this is what I got...
<a href='asfunction:_global.loadNewContent,this'>

problem is I want "this" to represent the actionscript "this". As in the location of the current timeline.

I assume while I'm loading my text file I would have to save "this" as a variable and send it to my text file. Maybe using the "loadVarsObject.send
Ashley is offline   Reply With Quote
Old 07-11-2003, 02:32 AM   #4
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Um... I don't know how you have set up your function, but maybe you can try eval() function with the argument??? Like eval(argInTheFunction) or similar???
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 07-12-2003, 02:16 AM   #5
littleRichard
Registered User
 
littleRichard's Avatar
 
Join Date: Feb 2003
Location: Florida
Posts: 289
Default

asfunction can only pass 1 string argument. so you can't pass a object refernce through it. you'll have to send the full path to whatever object as a string and evaluate it in the function. kinda like what CyanBlue said.

<a href='asfunction:_global.loadNewContent,_level0.so meclip.anotherclip'>
littleRichard is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:24 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.