FORUMS: list search recent posts

[AS2] Sending variable in getURL javascript call

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Sam Mattern
[AS2] Sending variable in getURL javascript call
on Sep 11, 2008 at 4:07:24 pm

I want to open a popup window of static dimensions and configuration (no resize, no location bar, no status, no menu). However, based on login credentials, I need to open a different link respectively.

I've tried writing a JS function in the HTML and then calling:

//whatTript is the AS var that changes

I'm getting a "whatTript is undefined. My JS function is:

function LoadTript( tript ){'tript', etc
I've tried using "tript" with and without quotes. However, since the error on page is saying that "whatTript" isn't defined, I assume it's a problem with the javascript call from Flash.

Thanks in advance,

Return to posts index

Sam Mattern
Re: [AS2] Sending variable in getURL javascript call
on Sep 11, 2008 at 6:09:50 pm

Ok, nevermind. I figured it out. I tried it the easy way first, and it didn't work. So then I tried making it more complicated than it needed to be. Upon review of my original code, I forgot the second closing parenthesis. So here's the answer, where "WhatPage" is a String variable defined in Flash:


Hope that helps,

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved