PDA

View Full Version : RE: flash .swf linking with a dynamic site


elusya3d
03-19-2004, 05:36 PM
Hi everyone,

Is there a way to link from an .swf file (specific button) to a an existing dynamic page, and then be able to go back to that specific movie, timeframe. I found a post here that sends variables from the flash .swf file into html(the solution being to change to php) and then back to the flash file..using the get method....but can i do something similar with a dynamic website( its a miva merchant site) can this be done???
thanks so much
dominika

CyanBlue
03-19-2004, 06:45 PM
Howdy and Welcome... :)

Um... I guess this is the functionality that you need...

Flash movie gets the data from the HTML file that embeds the Flash movie... (You need to use FlashVars to do that...)

If you have the data available when your Flash movie is loaded, then you can use that data to go to a certain timeline or frame of your Flash movie... If that data is not available, then you can play from the beginning...

So, it drills down to something like this...if (_level0.someVariable == "someSpecificValueYouAreWaiting")
{
// forward to the specific timeline...
}
else
{
// start your movie from the beginning...
}

elusya3d
03-19-2004, 07:04 PM
hi,

what i am confused about is whether the dynamic site is html...basically the frontend of this site is one main movie that has about 30 movies loading into it..linked to this is a catalog/database/internetstore application..called miva merchant..i wasn't the one who created this miva merchant site (just uploaded all the data) so i don't know what kind of application it is...i don't believe its html...perhaps javascript? i'm new to scripting so pardon my ignorance...:)
i would like to put a link in each one of the loading movies to a specific category within the miva merchant site, and then also have a back button to take you back to where you started from...

in your solution i'm not sure what data i would insert?
specially if its not html? i'm a bit confused
thanks
dominika

CyanBlue
03-19-2004, 10:39 PM
I have no idea what sort of structure you are talking about, but see if I am right or not...the frontend of this site is one main movieMeaning that your SWF file is loaded while it is wrapped into the HTML page... and where is your miva merchant page??? Are you loading miva page and Flash page at the same time??? How does the interaction between two is performed???

mohsenke
04-01-2005, 04:37 AM
I'm not sure what exactly you're asking but the way I connected my flash movies to MIVA was by the query string. The connecting I needed was quiet minor so I hope it will help you:
I embeded the flash movie in the header and footer of the different pages, ie storefront, categories and product pages where you are allowed to code in HTML (if you don't know where that is write back)
This is the general code for embeding flash in HTML, please note the string after the fileName.swf ... you can pass as many variables as you want in this format: ... .swf?var1=something&var2=somethingelse" more info here: http://www.flashcfm.com/articles.cfm?id=1
the variable is accessable at _root.Product_Code


<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="300" HEIGHT="500" id="FLASHMOVIE" ALIGN="">
<PARAM NAME=movie VALUE="FLASHMOVIE.swf?ProductCode=%prodcode%"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#DBE8F2>
<EMBED src="FLASHMOVIE.swf?ProductCode=%prodcode%" quality=high bgcolor=#DBE8F2 WIDTH="300" HEIGHT="500" NAME="FLASHMOVIE" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>
</OBJECT>

%prodcode% is a miva token. there is a complete list of tokens here:
http://www.dominantdesigns.com/merchanttokens/tokenexamples.html

a token shows the dynamic value of a variable.

for more info post here.