How do I tell my flash movie which frames to display depending on the page?
Hi,
I'm creating a php website with a flash movie that
incorporates the navigation. The movie shows an image for each
section and this image doubles as the navigation. The website uses
the same php template throughout the site for each page.
Here's the thing: I would like each page within the site to
display the rollover / active state of the section that the page is
in, rather than the movie playing fully each time the visitors
visits a different page.
The .fla file and .swf can be viewed here:
http://preview.hosts.co.uk/~swinsidelodge-hotel.co.uk/templates/swinside/img/header.fla
http://preview.hosts.co.uk/~swinsidelodge-hotel.co.uk/templates/swinside/img/header.swf
So when a visitor is on a page in the hotel section, I want
the flash movie to play frames 201 to 205 and when in the booking
section frames 221 to 225 rather than the whole movie.
Is there any way of doing this?
Thanks,
Konrad
Thanks Gorka,
I looked it up and found this useful summary:
http://probertson.com/articles/2006/12/14/deep-linking-flash-application-states/
However, I'm now trying to figure out how write the flahs
vars so it can see what section / folder the page is in so that the
swf knows to play the same frames for both
swinsidelodge-hotel.co.uk/pages/hotel/awards.php and
swinsidelodge-hotel.co.uk/pages/hotel/guest-comments.php. So
basically it doesn't look at the last bit of the url but the first
bit... I would like the flash vars to be dynamic so that when the
client adds a new subpage in one of the sections the swf will still
know which frames to play.
Any suggestions?
Thanks,
Konrad
Similar Messages
-
How can HTML call a Flash movie?
Greetings Everyone!
I'm sincerely hoping that someone has the answer for me. I'm
a newbie, but trying so very hard to understand... :) I've read
books, pages & pages of this forum, 'net searches - I haven't
found a complete answer to my challenge so far - thanks in advance
for any help you can give...
Here's where things are:
1) I've created a series of swf Flash movies that loop (at a
particular size so they can play inside of an html table cell)
2) I've created html buttons in another cell
What I'm trying to do:
1) Like a swap file in HTML (where you click a button and an
image changes elsewhere on the page, click another button, and that
image swaps to a different image file)
I want to have a flash movie play on a click of a button, click
another button, and a different flash movie plays in the same
spot.
The challenge is the interaction between Dreamweaver and
Flash and getting HTML to talk to Flash.
Here's the code direction I've been heading ...
...IN MY HTML code...
I have a onMouseClick event for each button link. In this
code I set some variable names inside it.
onMouseClick="setFlashVariables('sendmovie','myMovie=activeMovie1')"
---- this would be for button 1.
onMouseClick=
"setFlashVariables('sendmovie','myMovie=activeMovie2')" ---- this
would be for button 2
onMouseClick
="setFlashVariables('sendmovie','myMovie=activeMovie3')" ---- this
would be for button 3
Basically, I'm setting a 'myMovie' variable to 'activeMovie1'
or 'activeMovie2' or 'activeMovie3' when one of the buttons is
clicked.
If 'myMovie' variable is equal to 'activeMovie1' by clicking
a link, this will tell a flash movie: (" Hey flash! Variable
'myMovie' is equal to 'activeMovie1'. Act accordingly."). When the
2nd button is clicked, 'myMovie' will be equal to 'activeMovie2'
and so on.
I need to declare the 'myMovie' variable in my flash movie -
how do I do that?
...IN FLASH...
1. I need to create one variable which will act as a variable
receiver from HTML. (What I called "myMovie")
2. I gather I need to create an IF statement so that
"myMovie" is set to which "activeMovie" ( it could be
activeMovie1/activeMovie2/activeMovie3 etc ) ,
----->Question:
Where should the IF statement be and
How should it be written?
Admittedly I don't know Action Script 3 very well.
if myMovie is equal to "activeMovie1"
then load a movie. (This movie will be a movie related to my
1 Button.)
else if myMovie is equal to "activeMovie2"
then load a movie. ((This movie will be a movie related to
your 2 Button.)
else if myMovie is equal to "activeMovie3"
then load a movie. ((This movie will be a movie related to
your 3 Button.)
Here's where I'm stuck....
1) If I've already made my movies into swf files where does
an IF statement go?
2) I'm missing the mechanics of how to connect the dots here
- how do I get button 1 to load movie 1 and start playing
automatically? When I click button 2, movie 1 is replaced by movie
2 and starts playing automatically.
It's a detailed explanation (I know) - I'm hoping someone has
an answer for me that's equally explicit. Thanks so much much for
taking the time to read it!!Anybody?
-
How Can I Get A Flash Movie to Access Local Files
I have a customer that has created a Flash movie to run off a CD. The movie is basically a set of menus with links to access local files in the same directory as the movie. i.e. Main folder (to be root of CD) has the movie, a Documents folder with PDFs, a Movie folder with wmv and mov files, etc.
The problem arrises when you click on a link to a file, a web browser is launched, and the browser tries to display the target file. The movie was designed on a Windows system, and, mostly it works in a Windows environment, however, the links totally crap out on a Mac because the URLs are pc centric.
He is a rookie flash programmer so I am trying to help him set up proper links to the files, so that the files will (hopefully) launch the proper local app and not a web browers. i.e. if the link points to a PDF, the Adobe Reader is launched; if the link is to a mov file, then QuickTime is launched....
Is there a way to do this? All the tutorials I have found all seem to expect the flash movie to be running on a web server, and as such do not work when running the movie off a CD.
Any help or suggestions would be grealy appreciated.
A response ASAP would also be greatly appreciated as the customer needs to deliver 200 CDs of the project for a presentation tomorrow morning - I have to create the CDs...
TIAHi there,
Maybe you would want to use swfObject, i've been using it for
a long time now.
http://blog.deconcept.com/swfobject/
cheers -
How can I tell if my EMET GPO is in place instead of the local xml file on a computer?
Hi,
I did the following commands on my test machine with EMET 5.1 installed:
emet_conf --delete_all
emet_conf --refresh
emet_conf --list
There were applications that came up but how can I tell if it is really coming from GPO and not the local configuration file that came with EMET 5.1? Am I suppose to see a "greater than symbol" prior to the name of the application or no?
When I ran rsop.msc on the machine, I can see that my group policy in place. But I thought I'm suppose to see a greater than symbol (like below) - which means the list of apps are coming from the GPO:
Executable Path
Mitigations
>7z.exe *\7-Zip
DEP SEHOP NullPage HeapSpray EAF MandatoryASLR BottomUpASLR
>7zFM.exe *\7-Zip
DEP SEHOP NullPage HeapSpray EAF MandatoryASLR BottomUpASLR
>7zG.exe *\7-Zip
DEP SEHOP NullPage HeapSpray EAF MandatoryASLR BottomUpASLR
>Acrobat.exe *\Adobe\Acrobat 8.0\Acrobat DEP SEHOP NullPage HeapSpray EAF MandatoryASLR BottomUpASLR
>Acrobat.exe *\Adobe\Acrobat 9.0\Acrobat DEP SEHOP NullPage HeapSpray EAF MandatoryASLR BottomUpASLR
>Acrobat.exe *\Adobe\Acrobat 10.0\Acrobat DEP SEHOP NullPage HeapSpray
Am I wrong? Is that an EMET 3.1 "thing" only? Please let me know.
Thanks!Never mind. I got it. If you do an "Emet_conf --List" it will turn out something like this that indicates you are getting your policies from GPO
-
How to get rid of a window which says: CalendarAgent wants to use the "login" keychain
How to get rid of a window which says: CalendarAgent wants to use the "login" keychain
I would get free EasyFind (Spotlight will be a total waste of time), and search for caremefile and caremefile.info. If it comes up with anything, right-click and select move to trash, or just destroy. Since you didn't install anything, shouldn't be necessary to authenticate with the admin password before it will move to trash. Could also click on reveal in finder, which will allow you to see the actual location. Set it up as per the screenshot below.
-
ibooks author, how do I get the standard book pages background into my document. I have published one book so far which does not display with a book pages background or options for font size.
No on the book title, no problem there.
The issue is: my book pages appear as on white paper, no background that resembles a open book and also no option to change fonts. The book was created in iBooks author, there was a problem going with the "Publish" menu route so I was instructed my Apple to "export" the file and submit that. I think that's the problem after reading that iBooks author is a hybrid epub file.
Thanks for getting back to me. -
How can I repeat my flash animation (my frames)?
Hi Flash forum members
Can you help me somebody: How can I repeat my flash animation (my frames) many times?
I will be looking forward to hearing from you,
SultanIt depends on what you mean and how your design is done.
You can copy and paste frames as many times along a timeline as you, though creating a movieclip of one set and placing that to extend the full length of the timeline would produce the same result.
If the problem is that your animation stops when it is done, you need to be sure to not have any code in place that will stop it. -
How to keep track of which tab is currently active in the page using Session object?
Hi,
Just curious as to whether it is possible to have a PL/SQL event fire on an active tab.
The reason is I want to keep track of which tab is currently active on the page is that I have "generic" forms and reports published as portlets that I wish to be able to determine from the session object what page/tab the user is coming from and apply certain restrictions etc.
kind regards,
Matt.
nullHi Konstantina,
Yes You can do like that 2012-->q1-->January
Steps:
1. Create time dimension hierarchy as by following like Total--> year--> Quarter--> Month--> if you need you can keep Description.
2. Drag the Year column from period dimension table to the dimension hierarchy of year.
3. Drag the quarter column from period dimension table to the dimension hierarchy of Quarter.
4. Drag the month column from period dimension table to the dimension hierarchy of month.
5. Drag the hierarchy to period dimension table in presentation layer.
In Answer side keep as it as Default: drill in primary and secondary interaction under column properties.
For more refer : http://mkashu.blogspot.com
Regards
VG -
After I get on a website or open an e-mail, as I move my mouse to click on something the page slides up under the task bar and I have to click on the edge to get it back very annoying. Does anybody know how to get rid of this problem. I just started happening recently. Had my Mac for over two years.
After I get on a website or open an e-mail, as I move my mouse to click on something the page slides up under the task bar and I have to click on the edge to get it back very annoying. Does anybody know how to get rid of this problem. I just started happening recently. Had my Mac for over two years.
-
How can I publish my flash movie in one swf file in V.2
Hi
When I publish my movie to flash format , skin swf file is
segregated from main movie swf file . How can I publish my movie
only in one swf file ? I want to merge skin and main movie files
together in one swf file .Hi Corona,
The screen size is whatever you captured or specified during
the recording or new movie setup process. This will cause the
playback control to be placed "on top of" some portion of the
captured background, but there are two ways around that problem.
1) When you set the red recording area before recording, drag
the bottom of the recording area downward about 35 pixels below the
application window (assuming you are capturing an area that
includes a "bottom" or even an application window - grin). For this
to work, it is best if you do your recording against a
solid-one-colored desktop background, so the "extra" area at the
bottom doesn't include desktop images that you don't want in the
capture (even though that area will not be visible in the end ...)
OR...
2) Use the Project > Resize Project dialog to increase the
palette size on the bottom, taking care to leave the original movie
the same size. This will effectively do the same thing as
Suggestion #1, create a "blank" area at the bottom of the movie on
which there is room to mount the playback control bar.
Best of luck, Corona, and omid02. Hope this helps, in
conjunction with the advice that Rick has already offered.
. -
How to Change(Replace) a Flash Movie Icon
Hi Guys,
I have created a flash movie for my company and I have been asked to send the swf file with our company Icon instead of regular flash icon.
could you please give me an idea how I can do this?
I really need help regarding this!
Best RegardsIf you are sending a .swf file, or a .fla file, then whoever uses it will determine what the default program to open that file type will be on their machine, which will determine the file type icon it dispays on that machine.
-
How do I center my flash movie in dreamweaver
Hi!!
I currently have a behavior assigned to a slice I made in
imageready. In dreamweaver I assigned a pop up browser
window to it...it will be a link to a flash movie(.swf) I
made, but I don't know how to alter the code to make the browser
window centered on the screen!! Right now it opens on the top of
the screen.
Any help will be greatly appreciated.
thanks in advance!!Thanks Gorka,
I looked it up and found this useful summary:
http://probertson.com/articles/2006/12/14/deep-linking-flash-application-states/
However, I'm now trying to figure out how write the flahs
vars so it can see what section / folder the page is in so that the
swf knows to play the same frames for both
swinsidelodge-hotel.co.uk/pages/hotel/awards.php and
swinsidelodge-hotel.co.uk/pages/hotel/guest-comments.php. So
basically it doesn't look at the last bit of the url but the first
bit... I would like the flash vars to be dynamic so that when the
client adds a new subpage in one of the sections the swf will still
know which frames to play.
Any suggestions?
Thanks,
Konrad -
How to detect end of flash movie (SWF file) in Javascript
I have used Dreamweaver CS4 to integrate my SWF file as shown
below. So far so good. See GoToNext()
my website
What I wouldd like to do is have the SWF movie trigger a
javascript function in my html page when the video is stopped
playing (i.e. when it is finished) There are no controlls in that
SWF file - it is basically am add banner. I would think this would
be easiest done by rasinng an event in SWF that is communicated to
javascript, where I can add an event listener, and thus trigger my
function.
How can this be done in the simplest way?
<div id="bodyFlash"
class="clearfloat"><p> </p>
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="760"
height="150" id="FlashID" title="Chillifire Banner">
<param name="movie" value="flash/chillifire.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0
r65 and higher to download the latest version of Flash Player.
Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall"
value="Scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it
from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash"
data="flash/chillifire.swf" width="760" height="150">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall"
value="Scripts/expressInstall.swf" />
<!-- The browser displays the following alternative
content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of
Adobe Flash Player.</h4>
<p><a href="
http://www.adobe.com/go/getflashplayer"><img
src="
http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
alt="Get Adobe Flash player" width="112" height="33"
/></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
...on the last frame in the banner file you can use the
ExternalInterface class to call a specific JS method, and even pass
data if needed. -
I teach games development using Flash Professional CS6, and one of my students has photosensitive epilepsy. He is finding that the 'strobing' effect which occurs when he executes Test Movie on a movie with errors in its script is triggering headaches which can be a precursor to a fit. Obviously this is making it very difficult for him to complete his lab and assignment work. Is there any way of preventing a Flash movie from running if it contains a syntax error?
I have created a workaround by adding a bunch of extra frames to the start of the movie which will display a "SYNTAX ERROR" message if the script doesn't run - this gives my student a few seconds margin to quite the movie before the strobing begins. I have a single frame at the start with a goto statement which jumps over those error frames if the code doesn't have any syntax errors.
This seems to be working ok, but it's an ugly solution - does anyone know of a better way to deal with this?
Thanks.1.In Preferences you can check "open test-movie in tabs".
2. Having done that you could write a jsfl-script which switches the focus (immeadiately after you test the movie) to another tab in the same register card, thus, forcing the possible "corrupt" testmovie in the background. If are no compiler errors , the testmovie can be made available by simply switching to the test-movie tab, if there are compiler errors, you can close it without having to look at it.
Another option would be to setup FlashDevelop as compiler trigger of Flash.
You have to change these basic properties in your project:
FlashDevelop will only launch the test movie if it compiles flawless, inside Flash.
FlashDevelop will act as a "bouncer" to Flash. -
Can I prevent the rapid flashing which occurs when testing a Flash movie which has a syntax error in
I teach games development using Flash Professional CS6, and one of my students has photosensitive epilepsy. He is finding that the 'strobing' effect which occurs when he executes Test Movie on a movie with errors in its script is triggering headaches which can be a precursor to a fit. Obviously this is making it very difficult for him to complete his lab and assignment work. Is there any way of preventing a Flash movie from running if it contains a syntax error?
Ask in the Flash forums.
Mylenium
Maybe you are looking for
-
well ihave an iphone 4 almost brand new!!! and today when i had a call i had to put my speaker on for the other person to hear me!! im not sure why is this happening please need help ASAP!!! ( I have tried to clean the earphones jack and nothing)
-
Is it possible to delete / retract a post?
Is there any way to remove a post you made? For example, if I posted a question and put some duke dollars on it, then found the answer to my own question before I got any replies, could I retract my post and reclaim my duke dollars? Thanks.
-
Is there a supported flash player ? I need it to get on some websites !
I need to get on a few websites that require flash player. Is there a supported one for my ipad2?
-
DeviceDataControl / displaying an image: application quits arbitrarily
When trying to implement the display of a photo saved on the device (as described in the Developer Guide, section 9.4.1 "To Display an Image using the Device Data Control"), the application just quits altogether whenever navigation arrives to the tas
-
How can I install and run lookout 6.1 on windows server 2008 64-bit without errors?
How can I install and run lookout 6.1 on windows server 2008 64-bit without any errors? I was unable to start the lookout applcation after I install the lookout 6.1 on windows server 2008 64-bit. (error code: 0xC0000142). Please help! Thanks