Ask a Question related to Macromedia Flash, Design and Development.
-
S. Elliott \(timberfish.com\) #1
Re: Problem converting array string back to numeric
I'm afraid I don't know enough about your situation to help. How are you
sending your values to ASP? It sounds to me like this is more like an ASP
thing than Flash. Give me some more information on how you're sending data
to ASP and how you're using it there.
--
Shane Elliott
[url]www.timberfish.com[/url]
"Chris Watt" <eyeworks@ozemail.com.au> wrote in message
news:C5wTa.169$0h6.12151@nnrp1.ozemail.com.au...array.> I am loading a series of picture dimensions from an XML file into annumeric.> I then want to place the appropriate image dimension in an .asp header. As
> the array stores the number as a string I need to convert back to anothing> Using the Number function works fine in "Test Movie" and even on personal
> web server but testing proper over the internet the function returns> and I get a zero sized img tag!
>
> What am I doing wrong?
> TIA
> Chris.
>
>
S. Elliott \(timberfish.com\) Guest
-
string becomes numeric?
Hi, I am trying to dump a query out into an excel. I found that a varchar datatype column will be converted to numeric in the Excel. For... -
Problem back converting files from CS
We have an issue with CS not being able to save files in earlier Ill formats, specifically version 5.5. CS does not appear offer anything between v3... -
Byte array to string and back - newbie question
Hi, I am trying to implement DES algorithm as described in the Microsoft article at... -
Converting a Byte Value to its Numeric Value
How do I do that? This is for some bit-diddling, but the logical functions like AND require numeric expressions, per the book. AS -
php array problem string to integer
I have something like the following : $text = "<HIDDEN>0</HIDDEN><HIDDEN>1</HIDDEN>"; //Suppose that the array $hidden contains a list of... -
Chris Watt #2
Re: Problem converting array string back to numeric
I have the following script for a button to enlarge a thumbnail picture on
view in the flash movie to open up a new pop up window:
on (release) {
//customize the window that gets opened
// get full size image dimensions stored in array
var a = Number(_global.hpxValue[_global.index]);
var b = Number(_global.vpxValue[_global.index]);
// width of new window
var w = a + 50;
// height of new window
var h = b + 90;
// values for img tag of new window
var picW = a;
var picH = b;
// location of image for img tag
var link = _global.imageLinks[_global.index];
// text for picture caption and alt text
var desc = _global.imageDescription[_global.index];
//convert array index to picture number for new window title
var index = _global.index +1;
//build asp header
var target = "gallery.asp?link=" +link+ "&hpx=" +picW+ "&vpx=" +picH+
"&desc=" +desc+ "&ind=" +index;
//create new window
getURL ("javascript:NewWindow=window.open('"+target+"','p opWin','width=" +
w + ",height=" + h + ",left= '+((screen.width/2)-(" + w/2 + "))+',top=
'+((screen.height/2)-(" + h/2 +
"))+',toolbar=No,location=No,scrollbars=No,status= No,resizable=No,fullscreen
=No'); NewWindow.focus();void(0);");
}
The gallery.asp grabs the information using the QueryString object:
<%
Dim imageTarget, hor, ver, caption, index
imageTarget = Request.QueryString("link")
hor = Request.QueryString("hpx")
ver = Request.QueryString("vpx")
description = Request.QueryString("desc")
index = Request.QueryString("ind")
%>
Viewing the new window source the information for image alt text and image
file location are supplied correctly but ( as I can also see as the new
window briefly displays the full asp header) that the hpx and vpx values are
"".
What do you reckon?
Chris.
"S. Elliott (timberfish.com)" <myemail@isprivate.com> wrote in message
news:S6FTa.180$2U.25579775@newssvr21.news.prodigy. com...data> I'm afraid I don't know enough about your situation to help. How are you
> sending your values to ASP? It sounds to me like this is more like an ASP
> thing than Flash. Give me some more information on how you're sendingAs> to ASP and how you're using it there.
>
> --
> Shane Elliott
> [url]www.timberfish.com[/url]
>
>
> "Chris Watt" <eyeworks@ozemail.com.au> wrote in message
> news:C5wTa.169$0h6.12151@nnrp1.ozemail.com.au...> array.> > I am loading a series of picture dimensions from an XML file into an> > I then want to place the appropriate image dimension in an .asp header.personal> numeric.> > the array stores the number as a string I need to convert back to a> > Using the Number function works fine in "Test Movie" and even on> nothing> > web server but testing proper over the internet the function returns>> > and I get a zero sized img tag!
> >
> > What am I doing wrong?
> > TIA
> > Chris.
> >
> >
>
Chris Watt Guest
-
S. Elliott \(timberfish.com\) #3
Re: Problem converting array string back to numeric
Do a test to see that the Flash data is correct. So you can trace the value
of target to make sure that it's what it should be (including all of the
values like hpx and vpx). At least then you'll know whether the problem is
in your Flash code or your ASP page evaluating what it receives. Everything
you have looks okay, but without knowing what your global values actually
are evaluating to, I can't say for sure what could be wrong.
Also, try enabling the address bar in the pop-up window so you can see the
query values that are actually being passed. This will help you identify
the problem too. Or at least where the breakdown occurs. Also, in your
getURL there's no need to return a window name, so instead of this...
javascript:NewWindow=window.open(
You'd have...
javascript:window.open(
That may be causing problems. I think you're trying to do too much in the
getURL. I would just call a JS function you have defined on the HTML page
that accepts a bunch of parameters and you can setFocus in that function.
I've never tried to do it the way you are and am not sure if it will even
work. Building your own function and calling it is better practice and will
help you identify the problem. You could then call that function from HTML
and see if it works without Flash involved. If it does not, then you know
Flash isn't at fault.
--
Shane Elliott
[url]www.timberfish.com[/url]
"Chris Watt" <eyeworks@ozemail.com.au> wrote in message
news:CcGTa.19$Rd7.1330@nnrp1.ozemail.com.au...+> I have the following script for a button to enlarge a thumbnail picture on
> view in the flash movie to open up a new pop up window:
>
> on (release) {
> //customize the window that gets opened
> // get full size image dimensions stored in array
> var a = Number(_global.hpxValue[_global.index]);
> var b = Number(_global.vpxValue[_global.index]);
> // width of new window
> var w = a + 50;
> // height of new window
> var h = b + 90;
> // values for img tag of new window
> var picW = a;
> var picH = b;
> // location of image for img tag
> var link = _global.imageLinks[_global.index];
> // text for picture caption and alt text
> var desc = _global.imageDescription[_global.index];
> //convert array index to picture number for new window title
> var index = _global.index +1;
> //build asp header
> var target = "gallery.asp?link=" +link+ "&hpx=" +picW+ "&vpx=" +picH+
> "&desc=" +desc+ "&ind=" +index;
> //create new window
> getURL ("javascript:NewWindow=window.open('"+target+"','p opWin','width=""))+',toolbar=No,location=No,scrollbars=No,status= No,resizable=No,fullscreen> w + ",height=" + h + ",left= '+((screen.width/2)-(" + w/2 + "))+',top=
> '+((screen.height/2)-(" + h/2 +
>are> =No'); NewWindow.focus();void(0);");
> }
>
> The gallery.asp grabs the information using the QueryString object:
> <%
> Dim imageTarget, hor, ver, caption, index
> imageTarget = Request.QueryString("link")
> hor = Request.QueryString("hpx")
> ver = Request.QueryString("vpx")
> description = Request.QueryString("desc")
> index = Request.QueryString("ind")
> %>
>
> Viewing the new window source the information for image alt text and image
> file location are supplied correctly but ( as I can also see as the new
> window briefly displays the full asp header) that the hpx and vpx valuesyou> "".
>
> What do you reckon?
> Chris.
>
> "S. Elliott (timberfish.com)" <myemail@isprivate.com> wrote in message
> news:S6FTa.180$2U.25579775@newssvr21.news.prodigy. com...> > I'm afraid I don't know enough about your situation to help. How areASP> > sending your values to ASP? It sounds to me like this is more like anheader.> data> > thing than Flash. Give me some more information on how you're sending> > to ASP and how you're using it there.
> >
> > --
> > Shane Elliott
> > [url]www.timberfish.com[/url]
> >
> >
> > "Chris Watt" <eyeworks@ozemail.com.au> wrote in message
> > news:C5wTa.169$0h6.12151@nnrp1.ozemail.com.au...> > array.> > > I am loading a series of picture dimensions from an XML file into an> > > I then want to place the appropriate image dimension in an .asp> As> personal> > numeric.> > > the array stores the number as a string I need to convert back to a> > > Using the Number function works fine in "Test Movie" and even on>> > nothing> > > web server but testing proper over the internet the function returns> >> > > and I get a zero sized img tag!
> > >
> > > What am I doing wrong?
> > > TIA
> > > Chris.
> > >
> > >
> >
>
S. Elliott \(timberfish.com\) Guest
-
S. Elliott \(timberfish.com\) #4
Re: Solution
Glad to help
--
Shane Elliott
[url]www.timberfish.com[/url]
"Chris Watt" <eyeworks@ozemail.com.au> wrote in message
news:ijrUa.305$gS.20996@nnrp1.ozemail.com.au...as> When the xml file is read and values placed into the array they are reada> text values. Originally I was trying to convert the string array value toarray> new numeric variable at the time of needing to put it in the getUrl
> statement.
> I used the Number function at time of storage of the xml value in theperfectly> so storing numerics. This solved the problem and the pop up works> now.
>
> Thanks again Shane for having a look my problem.
>
> Chris.
>
>
S. Elliott \(timberfish.com\) Guest



Reply With Quote

