PDA

View Full Version : Flash control question...


antizero
2-1-04, 02:25 PM
I want to have a Flash movie on each page of a site, but I only want it to play on the first page. On the other pages, I want it to go to the last frame and stop (so it's just a static image). That last frame will have a button to re-play the movie. I just don't want the animation to start over on EVERY page, but I want it available. I don't want to make more than one version of it, due to loading times.

Is there a way to embed controls/commands for the Flash into the html?

satis
2-1-04, 10:20 PM
I know you can use php in flash. Here's a tutorial that kinda talks about it... I'm sure if you did some searching you'd find better examples.

http://www.phpbuilder.com/columns/hill20011214.php3

anyway, you could start a session (or set a cookie) and just have flash check the variable before it starts playing. If it's empty, gotoAndPlay(1), if not gotoAndPlay(500). Or whatever. Anyway, that's probably how I'd do it.

HATEAGENDA
2-3-04, 02:46 AM
What you could do is have the site load in the flash movie. I did it for one of my sites to save upload time and easy updates. http://www.killpact.com if you want to see what it is and how it works. here are the different scripts i used.

On the frame you want the page to load on use the following action
loadVariblesNum("example.txt", 0);

On that frame have a dynamic text area and for it, give it the the options of Multiline, Render text as HTML, and for the Var: text

then create a movie clip (i called mine controller) for scrolling. on the 5th frame of the movie i put the following actions

if (_root.up) {
_root.text.scroll += 1;
} else if (_root.down) {
_root.text.scroll -= 1;
}
gotoAndPlay(1);

then make a couple of buttons
for the actions of the buttons use:
UP button:
on (press, release, rollOver) {
_root.up = true;
}
on (releaseOutside, rollOut, dragOut) {
_root.up = false;
}
Down:
is the same exept _root.down

it will load your example.txt in your flash as normal html but in the example.txt file it needs to start out with text=
from there just enter your code from the <body> to the </body>

on my site i used those scripts on the home page, shows, and most of the bios.

YvetteKuhns
2-3-04, 11:14 AM
See http://rip-flash.com/ and excuse the intro page. Steve hasn't had time to update his own portfolio. This guy uses PHP and Flash to do all kinds of things. He integrated Flash with the phpBB forum on his own site.

See http://fountainsdecorandmore.com to see the rotating images. This is not completed, since we are still planning to get the images to link to the correct product pages. The images pause on mouseover and there is a description.txt file that can display the descriptions. I replaced the images, but I haven't changed the descriptions yet.

Contact Steve for any help.