?
Solved

Flash Dynamic Images Problem

Posted on 2005-03-27
5
Medium Priority
?
189 Views
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

_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"
0
Comment
Question by:webdork
  • 3
  • 2
5 Comments
 
LVL 18

Expert Comment

by:Billystyx
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

Billystyx
0
 

Author Comment

by:webdork
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.
0
 
LVL 18

Expert Comment

by:Billystyx
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.
Billystyx
0
 

Author Comment

by:webdork
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
0
 
LVL 18

Accepted Solution

by:
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?

Billystyx
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Six Sigma Control Plans
Starting up a Project

615 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