|
-
Hi gang,
I'm building a site that uses a frameset. Flash (menu.swf apx. 120 Kb) in one frame and HTML-content in the other frame.
Links both from flash and from html respond in both frames.
http://test.nozebra.dk/OI_partners/docs/main_FRAME.htm
(a halfdone version for testing - only DK and BE work in right frame)
By assigning a variable to menu.swf like below the movie can check for the variable 'active' and then jump to a frame accordingly.
// ...
<param name=movie value="menu.swf?active=about">
<param name=quality value=high>
<embed src="menu.swf?active=about" quality=high
... //
I had hoped that 'menu.swf' only had to load one time but.
it's seems that the cache loads a new movie for every variable...
menu.swf?active=about
menu.swf?active=europe
menu.swf?active=us
menu.swf?active=contact
... and so on!
If anybody has ANY bright ideas - I'll buy you a polar-beer
Podenph
[Edited by podenphant on 12-17-2001 at 12:06 PM]
-
I figured out a workaround.
In case somebody else faces the same problem I'll let you know.
I'm making a sizewise small empty.swf?active=value that loads my bigger swf. with my menu and flash contents into _level1.
Then I can trace the varible active in _level1.
If i bother I can preload all my empty.swf's with differing variables on the first visit to the page.
menu.swf?active=about _level10
menu.swf?active=europe _level20
menu.swf?active=us _level30
menu.swf?active=contact _level40
... and so on!
keywords: frameset, frames, html, parameter, variable from html, PARAM, EMBED, cache, preload,
-
You can pass parameters to the flash movie, and back to the html using javascript.
In this example I pass a date value from flash to the html page, and then from the html back into flash.
This may only work because of the 'reloading' you mention.
Personally, I think its unwise to use frames, and a little backward not to just do the whole site in flash, then have an automatic alternative for non flash users (who wouldn't be able to see the menu anyway).
An even better way would be to use cold fusion/asp/php, which would not necessarilly require a database.
http://www.3rd-angle.com/cal/launch.html
1. click in the field.
2. Select a date
3. Click go, the variable is sent to the html.
The flash is closed
4. Click the date again, the date is sent to flash.
Probably not that useful.
M@
-
will this work with flash 3?
im working on a similar problem however i need to save my swf's for flash 3. will any of this work in flash 3?
I need to get variables from the html for my idea to work.
thanks in advance
-
Hi,
I am not sure whether browser - javascript integration appeared with F3 or F4. In any case it has to be done the old-fashioned fscommand way (look up the gory details in your actionscript manual or on macromedia's website) rather than with a geturl("javascript:do_something()")
Also passing vars into a running flash movie does not work in some browsers - the popular exceptions are N6 for all platforms and IE for Mac.
Musicman
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|