Skip to main content
Participant
March 23, 2010
Question

Actions from Dynamic HTML to flash

  • March 23, 2010
  • 1 reply
  • 218 views

Hi guys,

I have a website that I'm creating an events page for. The intent is to have the text updated dynamically and the ability to create links in the .txt file that start a gallery in flash in a UILoader. The way I have it right now is that the links open a new page, I need to be able to link to the UILoader and specify a certain gallery to show up. I looked everywhere but I can't seem to understand how to do it. I saw that there was asfucntion but as I saw it's no longer in AC3.

Here is the link to the page: go to the events page and you'll see what I currently have. The text on the left is dynamic from a txt file this is the content of the file:

Here is a list of events:
<h1><a href='event01/index.html' target="_blank">Opening Event</a></h1>
The 1,600 square-foot space features: a curvilinear wall of walnut layered with illuminated fiber-optics; a bar clad in a shimmering skin of innovative custom metalwork and topped in seamless white Corian; a sweeping banquette with vivid blue leather seating backed by illuminated planes of woven grey texture; and a layered ceiling canopy of taut white membrane
<h1><a href="http://www.ashalaby.com/" target="_blank">Event two</a></h1>
Some other text goes here.

I need to change the href to something that will trigger flash to load a specific gallery. I have the UILoader in there now and it gets the file that I need. But it's missing the point all together of being dynamic.


I read somewhere that I could create a function that gets triggered by the href but I've tried it and don't seem to make it work. I'm no programmer I'm a designer, so this is a little over my head. I've just cracked the door on AC3 when I started this website last week & I feel that I've came a long way, but there is a whole lot more learning to do .

Please help!!

Thanks.

This topic has been closed for replies.

1 reply

Inspiring
March 23, 2010

I think you need to use AS3 ExternalInterface in Flash and JavaScript on your page to do that.