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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash, ASP and loading images

Status
Not open for further replies.

csiwa28

Programmer
Apr 12, 2001
177
I'm new with integrating flash with asp and I have a question. I'm trying to display an image and make that a clickable link and the image is not showing up.

Here's my code:

link = &quot;<br><a href=&quot;&quot; src=&quot;&quot;checkout.gif&quot;&quot;></a>&quot;

output = &quot;output=&quot; & link

Response.write output

However if I just use text as link it works.
link = &quot;<br><a href=&quot;&quot; to MSN</u></b></a>&quot;

output = &quot;output=&quot; & link

Response.write output

I don't know what's wrong because the image is in the same directory as the swf file and the asp file?
 
Your code is almost flexy was it not for the too happy deployment of quotes.... :)

dim link, link2
link = &quot;<br><a href= src='testfoto.jpg'></a>&quot;
output = &quot;output=&quot; & link
Response.write output

...worx fine on my server,..you get a pict with a link msn.com...

Does this help??.....

GreetZ
RuupY
 
The problem is that Flash cannot dynamically load in image files - you can retrieve plain text, variables and (with certain limitations) HTML formatted text but anything else will be rejected. It's one of the major differences between Flash and Generator.

The only way to load images into Flash at runtime is to have your JPEG or GIF coverted to a SWF and then to use loadMovie I'm afraid.

 
Well, if you have the big bucks... You can allways get Generator, or try JGenerator (it's free!) here:

Regards,
mywink2.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top