List Info

Thread: Parameters showing as 'undefined'




Parameters showing as 'undefined'
country flaguser name
United States
2007-04-28 04:20:09
I have an application that's calling AS functions from JS. 
All the 
functions I've added previously have no parameters, and they
work fine.

I then added a function that needs a parameter.  I can see
that it's 
getting called, but the parameter value is undefined.

The JS side is something like this:

	gFlashProxy.call('SetPlaybackPos', 12);

I dropped a debug statement into FlashProxy.call() to see
what the query 
string is and got this:

	lcId=1177751782749&functionName=SetPlaybackPos&t0=n
um&d0=12

It looks sane to me....

Then on the Flash side, I have this to debug things:

	function SetPlaybackPos(pos)
	{
		Alert.show('playback pos: pos');
	}

This says "playback pos: undefined".  Why?

_______________________________________________
Flashjs mailing list
Flashjsosflash.org
http://osflash.org/mailman/listinfo/flashjs_osflash.org

Inserting Flash modules using innerHTML in IE6?
country flaguser name
United States
2007-05-04 11:14:03
Hi all -

I have a <div> that contains a visual aid for a
web-based instructional
system. As the user advances through a lesson, different
visual aids
need to be displayed, so I'm using the <div>'s
innerHTML property to
swap in a new image or Flash module as necessary

This works beautifully in Firefox 2. IE6 displays images
fine, but it
doesn't display any Flash modules that are inserted in this
manner. I
just get an empty <div>.

I tried placing the <object> and <embed> tags
directly on the page, and
it works fine. It's only when they're inserted using
innerHTML that IE
refuses to display them.
 
Has anyone run into this before? I know it's *possible* to
insert Flash
into a document in this way in IE6 - because I came across a
couple of
web pages talking about it - but I can't figure out why it's
not working
for me.

Travis Miller
PHP Programmer
tmillerfsiholding.com
x18741
 


_______________________________________________
Flashjs mailing list
Flashjsosflash.org
http://osflash.org/mailman/listinfo/flashjs_osflash.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )