Make flash communicate with Javascript

dysphory

New Member
Hi guys,

I'm pretty new with javascript and have poor knowledge of Action Script...but I'm adventurous and curious enough to try to do websites haha :D.

Anyway :rolleyes:.

I've a website in Ajax, really simple, nothing complicated.
I click on a button which sends a value and display a page in a targeted div.

here what the links look like :

Code:
<h3>Menu</h3>
        <a href="#" onClick="ShowPage(1)">Page 1</a><br/>
        <a href="#" onClick="ShowPage(2)">Page 2</a><br/>
        <a href="#" onClick="ShowPage(3)">Page 3</a><br/>
        <a href="#" onClick="ShowPage(4)">Page 4</a><br/>

So when I click it changes ShowPage value.

Now I've to turn that stuff into a flash interface.
I know how to deal with flash and php but no idea how to send value from flash to javascript...

Basically, how make flash change the value of ShowPage in my javascript when I'll click on the button...

I'm sure it's really simple, as simple as IDontKnow ("ShowPage", "1") :D
But I've really no idea how to do that.

I hope someone here can help me with that...:eek:
 
Top