TwelvestoneFlash

How do I let Flash know where it is?


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
Candy Beard
 
2007-12-11

I'm working on a site which has Flash 'banners' at the top of all the pages.

Each page in a section (what we do, about our team, etc.) shares a banner. So all five pages in the What We Do section have the same Flash banner at the top, showing the same basic imagery/animation.

However, I'd like to be able to tell that Flash banner which page it's on, so that it can display animations unique to that page. (for example, a text slogan)

I'm thinking if I do a single SWF, it will be cached and not have to re-re-load on every page entry, correct? So that seems the way to go.

But I need to let the SWF know what page it's on. What We Do/Skill1 needs different animation than does What We Do/Skill2.

Can anyone tell me a way to do this that's so simple even I can understand it? Something with session variables (whatever they are), or something like that?

Danke.

persist
 
2007-12-11

I would use the swfObject Javascript code and use the addVariable to pass it a page name. On the first frame of your flash, check which string it is, and go to the proper section. http://blog.deconcept.com/swfobject/

^ automates the swf inclusion onto the page and allows for easy variable additions without a risk of caching.

Let me know if you need help with any of it.

Candy Beard
 
2007-12-11

Originally posted by: persist I would use the swfObject Javascript code and use the addVariable to pass it a page name.

I have no idea what you just said, but I'll follow your linky and see if I can make heads or tails of it.

Thanks.

jamiec
 
2007-12-11

Originally posted by: persist I would use the swfObject Javascript code and use the addVariable to pass it a page name. On the first frame of your flash, check which string it is, and go to the proper section. http://blog.deconcept.com/swfobject/

^ automates the swf inclusion onto the page and allows for easy variable additions without a risk of caching.

Let me know if you need help with any of it.

forest

Its really easy to use mc.

Candy Beard
 
2007-12-11

Everything's easy when you know how to do it. k

jamiec
 
2007-12-12

True, but a week ago i'd never even heard of swfobject and it was easy enough to pick up.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

How do I let Flash know where it is?