Freeze Position On Rollover
I have found a script that makes a bunch of movie clips move away from the mouse. So the MC are constantly in movement basicly. I would like to know how can I freeze the movies/buttons when I rollover. So I can select them cause currently, they just move away from the mouse... I need them to stick to the mouse when I rollover. Even better would be to make them smoothly stick to the mouse instead of freezing. Just like if they were attracted to it. ( It doesn't make too much sense since the initial effect is to make them go away from the mouse ). What I would need actually is a script that would make the MC stick to the mouse and when I am over one of them, the others move away from the selected one... check out the FLA.thanks!
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 01-21-2007, 01:14 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Freeze A Position?
I have an image following the mouse using the following borrowed script:
onClipEvent (enterFrame)
diffX = _root._xmouse-_x;
diffY = _root._ymouse-_y;
_x = _x+diffX/15;
_y = _y+diffY/15;
the movie contains a button that, on release FREEZES the image at THAT position of release.
Need help with an expression that represents the position of the movie at that moment in time.
Any help would be greatly appreciated!?
Random Position On Rollover
hey,
i have 10 boxes that, when any 1 is rolledover they all randomally change their horizontal position across a 600 pixel width. once they settle into their new position, they can be rolledover again, and again eachtime changing to a new position. if they reach the end - or the begining of the 600 pixel width they continue the other way until their randomally generated position is reached.
so, how do i do that? can someone please help me, cause i dont know where to start.
On Rollover Image Scroll To Position.
Ok, as the title says I am trying to get an image to scroll to a postion on mouse over. I understand how this might work but I am not sure how teh sction script would go.
I assume I need to do something like:
on (rollOver) {
xpos=_root.movie._x
if (xpos != /*some new positon*/) {
/*here is where I get meessed up I want "movie" to scroll to
the new x postion. But considering that new x position may need to be added to or subtracted from to get to it I don't know how to write it. I know I need it to ease out into it's final position so i know I need to divide. But getting the thing to start moving in the proper direction in the first place.*/
/* Can an if statement include another if statement. that way I could do someting like: */
while (xpos != newxpos ){
if (xpos<newxpos) {
xpos +=3/1.5}
else if (xpos>newxpos) {
xpos-=3/1.5}
}
any suggestions? If what I have just written makes no sense to anyone.. what I am attempting to do can be found at: http://www.adultswim.com/shows/cowboybebop/index.html
The character profiles section.
Thanks for any and all help!
adam
Horizontal Scrolling Determined By Rollover Or Mouse Position
I've got a question. I've searched the forums for something similar and can't find an answer.
I have a 1600px wide jpeg, I'd like to have it so that I can have a flash file in a 500px wide website, where you can roll over arrows in the bottom left and bottom right corners, to scroll this image left and right.
An example can be seen at:
http://www.7forallmankind.com/women.html
You can ignore the rollover's for the particular women on that page, I just want the scrolling left and right functionality as seen there.
I tried a decompiler on the above file, but the action scripting went over my head.
Easy, beginner/intermediate flash help would be greatly appreciated.
Pdf Freeze Up
I created a button wich opens a pdf file from my flash movie.
Everything works fine until I close the pdf. It closes but the flash movie does not respond any more after that.
Running Win XP, Flash MX, Acrobat 6
Any help?
[F8] Why Does This Freeze?
The following movie freezes up for no discernable reason, there's not even any actionscript or tweening or anything. It's just shapes in keys:
http://www.mentalpicture.net/misc/test.html
The small web file (http://www.mentalpicture.net/misc/test.swf) runs fine directly in the flash player, just not in a browser. ANY browser.
Here's my source file: http://www.mentalpicture.net/misc/test.fla
Umm... help?
--max
Freeze Everything But This
Hi,
I was just wondering if there is a way to stop the functionality of all movieclips except one that is in focus. For instance, I have a file with a bunch of buttons and clickable clips etc. When a certain button is clicked a movieclip appears. When this happens I don't want anything to be clickable until that movieclip is closed. Is there a way to do this other than going through and setting the enabled property of everything else to false?
I guess it would be nice if there was a way to say "Freeze everything but this."
Thanks for any ideas!
The Big Freeze
Importing graphics, either directly or to the Library, freezes my system. Any ideas / solutions?
Thanks!
The Big Freeze
Importing graphics, either directly or to the Library, freezes my system. Any ideas / solutions?
Thanks!
Pulishing .hqx - Causes Freeze.
I need to publish an .hqx from my pc so I can unstuff it on the mac.
For some odd reason I can't publish the mac projector without my MX freezing from this particular file( i can publish anything else, and i can publish the mac projector with other files) The file is very small, just the following:
fscommand("fullscreen", "true");
fscommand("allowscale", "false");
fscommand("showmenu", "false");
loadMovieNum("interface.swf", 10);
loadMovieNum("intro.swf", 1);
Any thoughts?
Thanks!
Flash Freeze
ok i made a swf and it has a preloader after the preloade it plays the right fram for about 2 seconds then it freezes
however if you rightclick the flash and deselect the play mark it unfreezes
whats going on
to see what im talking about you can check the web demo
http://home.earthlink.net/~careyant/...eslideshow.htm
note:i am aware that the previous goes back too many frames and theres no background because this is suposed to be a swf that will be loaded onto a diffrent flash
and for future refrence how do you get a transparent background so this swfs background does not show on the main file???
Flash Freeze
ok i made a swf and it has a preloader after the preloade it plays the right fram for about 2 seconds then it freezes
however if you rightclick the flash and deselect the play mark it unfreezes
whats going on
to see what im talking about you can check the web demo
http://home.earthlink.net/~careyant...ieslideshow.htm
note:i am aware that the previous goes back too many frames and theres no background because this is suposed to be a swf that will be loaded onto a diffrent flash
and for future refrence how do you get a transparent background so this swfs background does not show on the main file???
Can You Freeze An External Swf?
i am loading an external swf into my main movie with a play button on the interface of my main movie:
on (release) {
mc_holder.loadMovie("about.swf",0)
}
I need it to stop though when a user clicks a stop button. How do I stop an externally loaded movie clip so it freezes or pauses and can it also be told to start at the beginning of the clip again if they clicked a rewind button?
thanks
Preloader Freeze Please Help Me
Hello, I have a problem and was looking for a solution for it (many told me my site sometimes freeze while loading) and I was wondering why. I know so many flash movies that have a solid preloading (like it never freezes while it loads) so how come I'm experiencing those problems. Please someone help me out with a a solution that works.
here is the link of my site: http://ninja.at/will
I'm looking foward for a hero to provide a solution ^^
It would be deeply appreciated
Freeze Frame
I have an flv file that is being streamed from a flash streaming server... I would like the users to see a particular frame when the page loads. Then once they hit play the video will start playing from the beginning....
Right now when my page loads it just shows a black screen due to the face that the video fades up in the beginning. So I would rather show a frame of the video.
[F8] Preloader Freeze
Upon the first load of the site in a new browser window (both IE7 and Firefox) the preloader freezes and the rest of the site does not load. Hit refresh and everything works fine. Have you seen this before? Searching for this issue on the forums I've seen similar issues but no clear, consistent resolution. ActionScript below may offer some clues. Thanks in advance.
Code:
class Preloader extends MovieClip{
private var target_mc:MovieClip;
private var progress_mc:MovieClip;
private var pct_str:String;
private var dispatchEvent:Function;
public var addEventListener:Function;
public var removeEventListener:Function;
function Preloader(){
// initialize with EventDispatcher so the preloader can broadcast events
mx.events.EventDispatcher.initialize(this);
}
public function startPreload(t:MovieClip){
// set a reference to the timeline that is loading
target_mc = t;
// reveal the preloader clip
this.gotoAndPlay("IN");
}
private function onAnimateIn(){
this.stop();
// this is called from the preloader mc timeline on the last frame of the 'in' animation
// starts checking the load progress of the target movie clip on each frame
this.onEnterFrame = this.checkLoadProgress;
}
private function checkLoadProgress(){
// get the total bytes and the loaded bytes of the target clip
var bl = target_mc.getBytesLoaded();
var bt = target_mc.getBytesTotal();
// calculate the percentage of bytes loaded
var pct = bl/bt;
// get the current frame and total frames of the progress clip
var cf = progress_mc._currentframe;
var tf = progress_mc._totalframes;
// calculate the frame that corresponds with the load percentage
var f = Math.ceil(tf * pct);
// if the current frame of the progress mc is less than the value of f then let the clip play
// otherwise, stop the progress clip to wait for f to catch up with the current frame
// this prevents the animation from jumping ahead if the target clip is loading faster than
// your progress animation
if(f > cf){
progress_mc.play();
}else{
progress_mc.stop();
}
// set percent display in preloader_mc based on percentage of frames that have played
this.pct_str = (Math.round(cf/tf * 100)).toString();
// if the clip is entirely loaded, and the progress clip has played all the way through
// then the preloading is complete
if(bt > 20 && bl == bt && cf == tf && progress_mc){
onPreloadComplete();
}
}
private function onPreloadComplete(){
// stop the check load call
this.onEnterFrame = null;
// animate the preloader
this.gotoAndPlay("OUT");
}
private function onAnimateOut(){
this.stop();
// dispatch event that tells any listeners that the preloader is done
dispatchEvent({target:this, type:'onPreloaderOut'});
}
}
Freeze Button
It'd be nice to know how to make a button that freezes where you are at.. such as if http://www.munitedinc.com/storage/index.php was playing and i pressed a freeze button, everything would stop [like on the frame i guess] and when I press it again it plays.
XML Brain Freeze
Hi, I'm hoping someone can help me identify where I'm messing up. I've got a fairly simple class for loading my XML docs. I'm calling the same function in two different contexts- the first from a list of buttons, the second from an incrementing navigation element (i.e. next document / last document).
For some reason the class will not load the XML from the second context, the incrementing nav, but it will from the first, the list of buttons. Tracing out the paths produced by the function gives the same results, just no XML is loaded.
Good to note I'm using a custom event class which adds an ID number to each event so the proper document is retrieved, as they are not ordered by ID and are not necessarily sequential in the database from which they are pulled.
Code is below, pulling my hair out with this. Much thanks in advance,
Alex
XMLLoader Class
ActionScript Code:
package {
import flash.display.Sprite;
import flash.events.*;
import flash.utils.*;
import flash.net.*;
import flash.xml.*;
public class XMLLoader extends Sprite {
var xmlLoader:URLLoader;
public var xmlDoc:XML;
public function XMLLoader(url:String){
loadDoc(url);
}
public function loadDoc(url:String){
// Specify the location of the XML doc
var xmlRequest:URLRequest = new URLRequest(url);
// Create an object that can load external text data
xmlLoader = new URLLoader();
// Register to be notified when the XML finishes loading
xmlLoader.addEventListener(Event.COMPLETE, loadIndicator);
// Load the XML
xmlLoader.load(xmlRequest);
xmlRequest = null;
}
function loadIndicator(e:Event):void {
xmlLoader.removeEventListener(Event.COMPLETE, loadIndicator);
xmlDoc = new XML();
xmlDoc.ignoreWhitespace = true;
xmlDoc.condenseWhite = true;
xmlDoc = XML(xmlLoader.data);
handOff();
}
function handOff():void {
var completeEvent:Event = new Event(Event.COMPLETE);
dispatchEvent(completeEvent);
completeEvent = null;
}
public function safePassage(){
xmlLoader = null;
xmlDoc = null;
}
}
}
functions used to load the XML documents
ActionScript Code:
// project click listener is called when either a menu item is clicked
// or when a forward or backward button in the navigator is clicked.
// both events pass menu events which pass ID:uint
function projectClickListener(e:MenuEvent):void {
currentProject = e.ID; // the ID of the document passed with the event
var projectPath:String = "xml/projectPage.php?projectID="+String(currentProject);
if (xmlLoader) xmlLoader = null; // reset loader if exists
xmlLoader = new XMLLoader(projectPath); // instantiate new loader
xmlLoader.addEventListener(Event.COMPLETE, projectCompleteListener); // add event listener for load complete
}
// projectCompleteListener passes the XML doc to the various
// elements which will parse it
function projectCompleteListener(e:Event){
// reset graphic elements
clearGraphics();
hideMenu();
// reset xml object, load new content
if (projectXML) projectXML = null;
projectXML = new XML();
projectXML = xmlLoader.xmlDoc;
//redraw graphic elements with new content
drawImageViewer(0);
// remove the event listener that called this function
xmlLoader.removeEventListener(Event.COMPLETE, projectCompleteListener);
// clean up the xmlLoader object
xmlLoader.safePassage();
}
The MenuEvent Class
ActionScript Code:
package com.officevsoffice.uibuilder {
import flash.events.Event;
// all purpose menu UI handler
public class MenuEvent extends Event {
// define constants for menu states
public static const MENU_CLICK:String = "menuClick";
public static const MENU_OVER:String = "menuOver";
public static const MENU_OUT:String = "menuOut";
// reference if this is the current menu item
public var isCurrent:Boolean;
// reference the ID for this menu item
public var ID:int;
function MenuEvent(type:String,
ID:uint = 0,
bubbles:Boolean = true,
cancelable:Boolean = false,
isCurrent:Boolean = false) {
// pass parameters to super class constructor
super(type, bubbles, cancelable);
// store menu item's state
this.isCurrent = isCurrent;
//store the menu item's ID
this.ID = ID;
}
// override Event class default methods
public override function clone():Event {
return new MenuEvent(type, ID, bubbles, cancelable, isCurrent);
}
}
}
Mac Preloader Freeze...
I have created a preloader modifying the code in the tutorial on this site, to display the loading via a movie clip as opposed to percentage text. The problem is that for no particular reason it freezes occasionally when I view it on a Mac. It works like a champ on Windows and never fails.
Here is the test link:
http://www.changethethought.com/dev.html
Any ideas? Here is the preloader code:
ActionScript Code:
onClipEvent (load) {
percent = 0;
onClipEvent ( enterFrame ) {
loading = _parent.workHolder_mc.getBytesLoaded();
total = _parent.workHolder_mc.getBytesTotal();
percent -= ( percent-( ( loading/total)*100 ) )*.25;
per = Math.round( percent );
this.gotoAndStop( per );
if (percent > 99) {
_parent.gotoAndPlay("in");
}
}
Freeze A Scene?
This is my first shot at using "Play" and "Replay" buttons in Flash that are commonly seen online. I can get the button ActionScript to work, but I don't know how to make Flash permanently remain on the scene with the button until the user clicks on it. I can stretch the amount of time Flash remains on that scene by adding more frames, but I can't make it last forever. What ActionScript do I need?
CS4: Freeze On Import From AI
Is anyone else having the problem of Flash (CS4) freezing up when trying to import .ai files, or even when trying to cut and paste from .ai to Flash?
I'm trying to import a half page of copy, and it's killing Flash. Yes, you read that right: copy. Simple text. Nothing fancy. Kills Flash.
I'm trying to wrap this project up, but this glitch is literally stopping me in my tracks.
Any ideas?
Flash 9 Freeze
A site I created in MX 2004 will not publish in Flash 9. It's very strange. I can open it in Flash 9 but everytime I go to publish an swf it crashes Flash. I tried publishing as a Flash 8 swf and it worked. When that file was posted on-line it crashes my browsers when I go to the site but only some of the time. I tried re-installing and it didn't fix anything.
My client wants me to update his site using the newer flv encoder. I don't know what to do since you can't publish in version 7 with the new encoder.
Anyone else running into this problem. I have created sites in Flash 9 that work fine. It's just the older files I created in MX 2004 that are causing problems.
Thanks.
Server Freeze With FMS
Hello everyone,
I have created a voice chat with the communication components with Flash MX. I am running FMS on Windows 2003 Standard Ed Dual Pentium 4 1GB Ram on a T1 Shared line. Every once in a while the server freezes and the only way to restart is using the Reset button on the server. I know the problem is coming from FMS because I uninstalled FMS and my server was fine. I checked the CPU usage and it seems fine. I dont know how else to debug this!
Can someone help me out figure out this problem. Any piece of advice or information would really help!
Thanks in advance
Freeze During Publishing
im creating a slide presentation, i had about 10 slides.. everything was fine
today i added 2 more slides, with pretty much the same content as the previous 10, and now when i try to export it freezes
i cant think of any reason as to why. no complex actionscript/overly large file sizes.. nothing :o
Brain Freeze
so shoot me, I'm starting with basics in classes to build my confidence, yet hit an obvious rock
ActionScript Code:
for(i=0;i<5;i++){var tempPage:Page = new Page(this, i, 106*i, 0, 0, 104, 71)}
I get only 1 item, as yes... I only declaring one variable. How do I increment whilst calling a class?
Thanks plz
How To Freeze The Timeline...
Hi everyone...
I am currently working on a little project which involves progressive flv's which are synchronized with some other flash animations which happen inside different movie clips on the timeline.
Basically, my .fla has only one frame on the _root, and then everything else is inside movie clips inside a holder movie clip on the stage.
I know how to pause and play my .flv using ns.pause(); etc... the problem that I am having of course, is that when I pause my .flv, the rest of the swf goes on playing, because I don't know how to pause it along with the video.
If anyone could help me on this, I'd really appreciate it.
Thanks! (ps: I have a deadline coming up...)
I Need To Freeze The Timeline (help)...
I am trying to create a piece of actionscript that can stop the timeline on a particular frame for a specified amount of time (preferably in seconds) and then continue to the next frame.
My goal is to be able to do this without creating nunerous frames with the same image on it to simulate this effect. I believe it is pretty simple...but i'm not sure where to start.
Thanks in advance for any all help.
Peace.
Flash Movie Freeze On Mac
I've tested my movie on OS9 and when you hold down the scroll bar.. it stops the movie...
No problems on any version of windows.... is this just a Mac-in-crash issue?
Um.. Why Does This Code Freeze Flash?
Any reason why this code would freeze flash? I haven't programmed in flash in a long time.. been programming in other languages. This seems like just a basic loop.. but the conditional is never being met I guess? the script is non-terminating for some reason..
onClipEvent(load) {
for(n=1; n < (550/12); n++) {
duplicateMovieClip(this, "box"+n, n);
setProperty(this, _x, (n*12));
}
}
Flash Brain Freeze
I am trying to do a simple thing but i cant fiqure it out.
I have a menu that slides in the movie.I want a button to make the movie slide back out,and another button to make it slide back in.
But if you press the slide in button,when it is has already slid in,nothing happens.and visa versa.
Does anybody know what i am taling about?
Sliding Menu (freeze)
I am working on this sliding menu but can't seem to get the obvious to work.
I've set it up so you have to click on the menu on the side. It slides out and a button appears on the menu. (nevermind this button) Another button appears on the stage, (this button will be an invisable button).
rollOver on this button should tell the movie to goto frame 6 (sending the menu slide back into place.
But when I do this the buttons disappear.
Seems like the movie is going to frame 6, but not continuing with it's course of closing.
Freeze And Fade Control
I have a movieclip containing 6 layers and 130 frames. each layer contains its own child movie clip.
All child movie clips have stop(); in their last frame and so does the parent movieclip.
Once my parent movieclip has finished playing, I want to be able to alter its Alpha value to 70% without making the clip restart.
I thought if I could have a second clip which is a copy of the last frame of the first, then I could change the Alpha value on that instedad.
Any ideas on how I can create this second clip??
Tim.
Stop/freeze Button
hola peeps...
I am fiddling on flash mx and have a button with an up, over and down state
on release of the button I would like it to stay in the down state but I can't figure out how to make that happen...
any help as always would be greatly appreciated!!!!!
thanx!
Complete System Freeze
Hello,
I would like to ask your attention for the following problem.
It seems to be the case that whenever I run a flashmovie in internet explorer or Firebird (those are the only browsers I tested in so far) and I scroll content inside the flash movie with a flash based scroller, that my entire system freezes up (reboot required).
A good example of a guaranteed freeze is browsing the flash exchange section of www.macromedia.com
The freeze doesnt always happen instantly. Sometimes after a few minutes and sometimes sooner.
Has anyone ever experienced the same? And if so, what can I do?
System specs:
Windows XP
P3 600Mhz
256 RAM
GEforce FX Geforce FX 5200 (with latest drivers)
flash player 7.0.19.0
Urgent Please: SendAndLoad Sometimes Freeze
Hi All,
this is my first posting...
I have a problem that I cannot resolve (maybe I'm stupid). I'm building a Flash based poker game: it communicate with a PHP server where load and send variables.
THE PROBLEM is that often it freeze AND I must restart flash to make it works again... The code below is the first step
of the game... sometimes works... sometimes not... or sometimes works but it stops in the next phase of the game (PLEASE SEE ATTACCHED FILE: YOU MUST "BET" SOMETING TO START).
In the code below there is a function (success) that checks if the datas are loaded successfully... well it NEVER tell me "file loaded successfully")...
... WHERE I'M WRONG ???
THANKS THANKS THANKS ALL YOU WONDERFUL PEOPLE
SORRY FOR MY BAD ENGLISH
var gameurl="http://dns.everland.it/casino2/game.php";
// CREO UN OGGETTO IN CUI SALVARE LE SCELTE DELL'UTENTE
varSender = new LoadVars();
// CREO UN OGGETTO IN CUI SALVARE LE RISPOSTE DEL SERVER
varReceiver = new LoadVars();
//PRENDO LE VARIABILI PER INIZIARE IL GIOCO
varSender.sendAndLoad(gameurl, varReceiver, "POST");
varSender.onLoad = function (success){
if (success){
trace("File loaded successfully");
}
}
varReceiver.onLoad = function(){
// ASSEGNO LO STATO
_root.stato = varReceiver.stato
// ASSEGNO E CONFIGURO LA SLOT
_root.slotmachine.wheel1.gotoAndStop(varReceiver.s lot1);
_root.slotmachine.wheel2.gotoAndStop(varReceiver.s lot2);
_root.slotmachine.wheel3.gotoAndStop(varReceiver.s lot3);
_root.slotper = varReceiver.slotper;
//ACCENDO IL MOLTIPLICATORE DELLA SLOT
_root.slotmachine["per"+_root.slotper].gotoAndStop(2);
//ALTRE VAR
_root.points=varReceiver.point;
_root.bet=varReceiver.bet;
_root.magic=varReceiver.magic;
_root.credits=varReceiver.credits;
_root.jackpot=varReceiver.jackpot;
_root.win=varReceiver.win;
_root.id_vincita=varReceiver.id_vincita;
_root.totwin=varReceiver.totwin;
// CONFIGURO I PULSANTI
_root.pulsante0=varReceiver.pulsante0;
_root.pulsante1=varReceiver.pulsante1;
_root.pulsante2=varReceiver.pulsante2;
_root.pulsante3=varReceiver.pulsante3;
}
LoadMovie Streaming Freeze
Hey all, I am having a problem when loading an external movie clip that is streaming a audio file.
When it begins to load the external clip the parent clip freezes for a breif moment(about 1.5 to 5 sec. depending on browser) but then plays as normal.
I understand that it may be just a lot of data coming through at once but the movie I'm loading the clip into has been fully preloaded before the external clip it told to load.
Any information on how to correct this or better methods of streaming an audio file would be much appreciated.
Thanks
Is There A Way To Freeze Timelines From Playing?
Let's say you make a game, with many sounds and movieclips, but as in a real game, you can pause and resume the game... But how do we manage to do this in flash? Is there a way to pause timelines so sounds and movieclips stop from playing?
(You don't want to pause the game and see your player die while the game is supposed to stop!!!)
I know that using stop() on sounds and mc might stop them, but it will be really long if you have many things...
Also, if you use stop() on sounds and mcs, on resuming you'll have to use
play(), but you don't want every mc to play if they didn't have to...
Flash Object Freeze Only In IE
Hey Guys
I have flash carousels in some of my webpages. The problem is whenever I'm going to a page with carousel, everything loads up fine but then IE freezes.
It is still working, but with a VERY BIG delay... If you click on a link you will have to wait for about a minute or more until IE is starting to load up again and respond to your click...
In firefox it works perfect without any problems...
Please check it out at wwwDOTangelsfantasyDOTcom (warning: adult content). It should be in any main category.
Thank You Yair
Slideshow Freeze-up Halfway Thru
I have created a two minute slideshow using Flash MX and a simple piece of actionscript with photos fading into the next. My movie runs fine for the first minute or so (13 of 27 photos), then stops fading although it continues to change photos. I am attaching the .fla file...can someone (smarter than me) spot the problem? I'd be forever grateful.
Here's the file http://www.naffskingdom.com/test 1.fla
Simultaneous Flvs Freeze
Please help,
In my swf, I'm playing 5 flvs simultaneously (w/o any playback components).
The thing is, the videos studder and freeze the first time played -- while loading.
Can anyone suggest a possible remedy for this choppy playback problem (how can I preload flvs)?
note: the videos only play smoothly once they're loaded / cached.
here's a link to the test version site:
http://test.galaxy61.com/v26_Jan3/flash.html
check out the video (flv) trains.
Thanks in advance for any advice.
Several Calls To GetURL Freeze IE
My website is a Flash portal to several webpages, which are called via several getURL commands from textHtml links in a dynamic text box. I am using Actionscript 2.0
This is the getURL command:
Code:
var myscreenWidth;
var myscreenHeight;
myscreenWidth = System.capabilities.screenResolutionX;// get screen width
myscreenHeight = System.capabilities.screenResolutionY;// get screen height
if (myscreenWidth >= "1024") {// limit window size to 1024 in width
myscreenWidth = "1024";
}
if (myscreenHeight >= "768") {// limit window size to 768 in height
myscreenHeight = "768";
}
trace(myscreenWidth);
trace(myscreenHeight);
openWin = function (txtParameters) {
var argsArray = txtParameters.split ("|");
trace(argsArray[0]);
trace(argsArray[1]);
getURL("javascript:NewWindow('" + argsArray[0] + "','name','" + myscreenWidth + "','" + myscreenHeight + "','" + argsArray[1] + "'); void(0);");
};
This is a sample of the link in the text file.
Code:
HTMLTxt=<a href='asfunction:openWin,http://ttalbot.com/adirectory/index.html|no'><b>Sample link</b> - just for testing purposes</a>
And this is the HTML page javascript:
Code:
<script language="javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>
While testing my website, I call each of these webpages, clicking on the links, to see if they are working fine, and all seems fine at first, with the pages opening as desired, however, I find that after clicking on the 8th or 9th link IE starts freezing before the page is loaded.
To be more specific, clicking the link fires up IE, which opens but with a blank page, as if loading the webpage, but nothing happens and IE ends up freezing.
I also found out that closing IE and flushing the DNS from the command prompt (ipconfig /flushdns) resets IE and I can go back to opening the webpages, but the problem returns after opening a few more...
Does anybody have any idea what is going on here?
I will be happy to provide more information if such is needed...
Thanks
Complete System Freeze
Hello,
I would like to ask your attention for the following problem.
It seems to be the case that whenever I run a flashmovie in internet explorer or Firebird (those are the only browsers I tested in so far) and I scroll content inside the flash movie with a flash based scroller, that my entire system freezes up (reboot required).
A good example of a guaranteed freeze is browsing the flash exchange section of www.macromedia.com
The freeze doesnt always happen instantly. Sometimes after a few minutes and sometimes sooner.
Has anyone ever experienced the same? And if so, what can I do?
System specs:
Windows XP
P3 600Mhz
256 RAM
GEforce FX Geforce FX 5200 (with latest drivers)
flash player 7.0.19.0
BIG LoadMovie, Freeze .exe. Any Clues?
HI, im trying to work arround some loadmovie problems. im triying to load
a very big .swf (10mb+) and it seems to freeze the .exe until the swf has
loaded. all mc in main stop, until the loading is completed, including progress bar or preloaders.
any ideas??
thanks
Progressive Download Freeze Up
I have a betasite I am working on and I have a flv player on it. My movies are freezing up mid way and I get the Buffering Line animation.( Barber Pole) but I know the movie has completely loaded. Has anybody had experience with this?
please check out the beta and give advice. any would be appreciated. http://beta.opticflare.com/video/video_room.html
thanks
tw
Importing Class Causes Freeze
here's the code, on the swf's _root:
import com.website.package.Application;
//Application.Main( this, "Menu" );
even with the second line commented out, we get a big freeze, whole seconds of wait. the movie just completely stops playing, even an onEnterFrame method on the _root won't run until the import is finished. just nothing but waiting for the code to import. Application.as links off to an MVC architecture with a whole bunch of additional classes etc. and the inclusion of this line is enough to turn a 3K swf into a 443K swf.
erk! what can you do about that?!?!?
r
Help With AS To Freeze Bitmapdata Animation
I am using BitmapData to create an animated flag waving with Actionscript. This is for an ad, so the coded animation needs to stop after 30 seconds. I would like to "capture" an image from the animation and use this for the last frame instead of just removing the dynamic clip from the stage. Does this make sense?
Frustrating Timeline Freeze
Hi everyone, I'm a bit of a lurker and think this is an ace site, I need to come out of hibernation and ask for help though, this is driving me mad and I'm not nearly Flash-proficient enough to get my head around what exactly's wrong.
I've built a Flash site, and after the preloader finishes, the playhead runs down the timeline to the first section where it stops and displays a news ticker and 3 "diary" boxes (it's a band website). The ticker and the diary boxes all call upon seperate text files in the same directory to get their content.
This works absolutely fine in the Flash offline preview, but as soon as I put the .swf online it breaks somehow - the playhead runs to the first section and stops as it should, but it doesn't display the diary boxes, the news ticker, or the navigation AT ALL, and all buttons seem to break! Incidentally, the mp3 player featured on the site still works fine though. Why does the rest of it work as it should offline though, but break online?
Online example here
Zipped .fla here
I'm tearing my hair out over this as I don't know Flash very well, but have an important deadline for tomorrow! The project looked like it was all going to plan until I gave it an online test. Hopefully it's something simple. If anyone can fix this within about 12 hours I'll be eternally in their debt!
Streaming Audio Freeze
Has anybody had a problem where the browser freezes for a few seconds when you load the streaming audio, or is it just me?
Im using this code:
bgmusic = new Sound();
bgmusic.loadSound("cynic.mp3", true);
bgmusic.start();
to stream the background music, but it seems to pause right when it starts. If you want to see what I'm talking about go to.
www.new-valley.com/enhanced/index.htm
Thanks for any advice.
|