Flash Dynamic Images Problem

Posted on 2005-03-27
Medium Priority
Last Modified: 2010-04-17
I cant get images to load in a flash file while calling the image string from an asp file.

loadVariablesNum("http://localhost/vtour/1.asp","") //This seems Ok because I can get the the var to load into a text box


var1 = "images/flowers.jpg" //DEBUG: This works too, but if I comment out this line and try to call the image string from the asp page I get an error.


Error opening URL "file:///C|/Inetpub/wwwroot/Vtour/undefined"
Question by:webdork
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 18

Expert Comment

ID: 13642230
This works too, but if I comment out this line and try to call the image string from the asp page I get an error.

With the above comment, how is this being called?
BTW I think this may be specifically flash related - ask if you can move itover and you may get a quicker answer


Author Comment

ID: 13642254
I debug the script by plugging in a literal ("images/flowers.jpg") as a var1 value. with the debug line in place the image displays.

If I comment out the line to get the image url string from the asp page, I get the undefined error.

The asp page writes the correct string because I can see the var1 value in the dynamic text box.
LVL 18

Expert Comment

ID: 13642272
Definitely a flash problem - if you can please post the doc and I will take a look. Otherwise, post a snippet from the debug->listVariables of the test movie screen.

Author Comment

ID: 13642287
Debug Var List:

Level #0:
Variable _level0.$version = "WIN 7,0,19,0"
Variable _level0.

var1 = "images/flowers.jpg\r\n"
Edit Text: Target="_level0.T1"
    variable = "var1",
    text = ,
    htmlText = ,
    html = false, textWidth = 0, textHeight = 0, maxChars = null,
    borderColor = 0x000000, backgroundColor = 0xFFFFFF, textColor = 0x003333, border = false,
    background = false, wordWrap = false, password = false, multiline = false,
    selectable = true, scroll = 1, hscroll = 0, maxscroll = 1,
    maxhscroll = 0, bottomScroll = 1,
    type = "dynamic",
    embedFonts = false, restrict = null, length = 0, tabIndex = undefined,
    autoSize = "none",
    mouseWheelEnabled = true, condenseWhite = false, styleSheet = undefined
LVL 18

Accepted Solution

Billystyx earned 2000 total points
ID: 13642563
that may be your problem then - var1 = "images/flowers.jpg\r\n"
why is it returning \r\n?


Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question