Link to home
Start Free TrialLog in
Avatar of webdork
webdork

asked on

Flash Dynamic Images Problem

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

_root.createEmptyMovieClip("contain",0)

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.

contain.loadMovie(var1)

Error opening URL "file:///C|/Inetpub/wwwroot/Vtour/undefined"
Avatar of Billystyx
Billystyx

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

Billystyx
Avatar of webdork

ASKER

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.
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.
Billystyx
Avatar of webdork

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of Billystyx
Billystyx

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial