Flash Speedup For Browser?
Hi. I'm absoloutley sure there was some tweak in a form of a single line of code to speed it all up. I used to use it and I totally forgot what it was. Don't know if it was html or actionscript .. but something like <something>.ignore. Anyone?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 03-03-2007, 08:38 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Speedup My Script
Ok, so i have a big logo in the centre of my fla, and want some dots to fly around it.
The script is have so far is perfect, except for my cpu, and yours.
So could someone help me by tweaking this script so that it is faster?
if have a Main.as that looks like this:
ActionScript Code:
for(var i:Number = 0; i < 15 ; i++){
var fly = new Fly(Math.random()*800, i);
addChild(fly);
}
And i have a Fly.as that looks like this:
ActionScript Code:
package {
import flash.display.Sprite;
import flash.events.Event;
import caurina.transitions.Tweener;
public class Fly extends Sprite{
private var count:Number = 0;
public var breedV:Number = 800
public var hoogV:Number = 300
private var stip:Sprite = new Sprite();
private var tweenTime:Number = 1
private var speed:Number;
private var newX:Number;
private var newY:Number;
private var transition:String = "easeInOutQuad"
public function Fly(_start:Number, _i:Number){
count = _start;
stip.graphics.beginFill(0x9c9c9c);
stip.graphics.drawCircle(0,0,10);
stip.graphics.endFill();
addChild(stip);
speed = 0.5+(Math.random()*0.5);
if(_i % 2){
addEventListener(Event.ENTER_FRAME, draw);
}
else {
addEventListener(Event.ENTER_FRAME, drawR);
}
kleinB();
grootH();
}
private function kleinB(){
Tweener.addTween(this, {breedV:600, time:(Math.random()*1+tweenTime ), transition:transition, onComplete:grootB})
}
private function grootB(){
Tweener.addTween(this, {breedV:800, time:(Math.random()*1+tweenTime ), transition:transition, onComplete:kleinB})
}
private function kleinH(){
Tweener.addTween(this, {hoogV:300, time:(Math.random()*1+tweenTime ), transition:transition, onComplete:grootH})
}
private function grootH(){
Tweener.addTween(this, {hoogV:500, time:(Math.random()*1+tweenTime), transition:transition, onComplete:kleinH})
}
private function drawR(e:Event){
newX = Math.sin(count /100) * breedV;
newY = Math.cos(count/100) * hoogV;
stip.x = newX;
stip.y = newY;
count+=1;
}
private function draw(e:Event){
newX = Math.cos(count /100) * breedV;
newY = Math.sin(count/100) * hoogV;
stip.x = newX;
stip.y = newY;
count+=speed;
}
}
}
Because the main file contains more than this (like papervision object etc) it really needs to be as light as possible.
thanks
FLV Playback (Slowdown, Loop, Speedup) Help
Hey all,
what would be the best way to Increase an FLV's frame rate?
well, what i am looking to do is have a certain point of the video loop, and this loop would be at a perticular rate, and the user clicks on a button or so it would stop looping, pick up from where it is, and play at full speed.
any ideas? thanks in advance!!
Weird Song SpeedUp In Player
Ok, im not sure where the write place to put this is, so ill try here.
Ok I have this flash media player, and i have it drawing all the songs from an xml file where they are hotlinked to one of my hosting servers. Now all of the songs seem to work fine except one, which is sped up for some reason. The song itself is fine, its not like that if you download and play it, only if the swf plays it.
The link to the song is here:
http://www.cynicalpages.com/curtis/atreyu-yougiveloveabadname.mp3
Here is the swf that plays it, scroll down to song #6 and listen to it.
http://www.cynicalpages.com/1.html
Does anybody know why its doing this?
Full Browser Flash, Vertical Scrollbar Just Like Browser?
In short:
http://www.subdisc.com/
Look at the right scrollbar, how do I accomplish this?
The height of my site site is bigger than the Stage.height.
I could use a browser scrollbar via Java, but since I want to be free in design of every component I would rather use a flash scrollbar.
But how?
Full Browser Flash Detecting Browser Size Help.
http://akmphoto.net/akmdesign_new.html
Anyone know the AS to make it automatically check the size of the browser for the listeners.... _notice when you resize the browser it works perfectly...but not when it first loads up...any ideas?
Code:
// ***Stage aligned top left
Stage.align = "TL";
// *** Stop the stage from scaling with the browser window.
Stage.scaleMode = "noScale";
stop ();
// initiate postitions and scaling values for objects
fluid._x = (Stage.width + 200)/2
fluid._y = Stage.height/2
bottomstretch._height = Stage.height;
rightstretch._height = Stage.height;
topstretch._width = Stage.width;
rightstretch._x=201;
tutoriobutton._x = Stage.width - tutoriobutton._width
bottomo._x = (Stage.width + 200)/2
// end initial position setting
//create a listner that checks to see if the browser window is resized
sizeListener = new Object();
sizeListener.onResize = function() {
// change movieclip properties when the window is resized.
topstretch._width = Stage.width;
fluid._y = Stage.height/3;
fluid._x = (Stage.width + 200)/3;
bottomstretch._height = Stage.height;
rightstretch._height = Stage.height;
//*note* 200 is the width of the left column
tutoriobutton._x = Stage.width - tutoriobutton._width
bottomo._y = Stage.height/1;
bottomo._x = (Stage.width + 200)/2;
};
Stage.addListener(sizeListener);
Browser Display Size Of Flash Movie / Need To Have Browser Match Movie Size
Hello,
I am having a problem getting my flash movies to come up in the broswer w/out any extra space around the movie. I have published all 3 ways out of flash, and even made may changes to the Dreamwever file with no luck.
Is it possible to have my movie pop up and the browser be 600x440 w/out extra background?
Please send help!
Thanks,
xcaliber_1
Full Browser Movie, But Use Browser Scrollbar When Needed
Is there any way to make a full browser swf that, at a certain point, stops scaling to the stage and allows the browser to use it's native scrollbars?
For example, say my flash site has a top bar (it's y is always 0) and a bottom bar (it's y might be stageHeight - 15). Is there any way to tell the movie to stop scaling if the bottom bar's y is less than say 300, and from that point have the browser display it's scrollbars allowing you to scroll the content?
Using Flash To Open A New Browser Window - Exact Size Of Flash Movie?
Hi,
In Dreamweaver, I've previously used the 'open new browser window' behaviour from a link to display my Flash movies, and entered the .SWF filename as the URL to launch (this launches a browser window thatls exactly the size of the movie, no scrollbars, buttons etc). Can I do a similar thing with Flash's 'get URL' command, or does that only go to HTML/HTM files?
Cheers, Skratch
Using Flash To Open A New Browser Window - Exact Size Of Flash Movie?
Hi,
In Dreamweaver, I've previously used the 'open new browser window' behaviour from a link to display my Flash movies, and entered the .SWF filename as the URL to launch (this launches a browser window thatls exactly the size of the movie, no scrollbars, buttons etc). Can I do a similar thing with Flash's 'get URL' command, or does that only go to HTML/HTM files?
Cheers, Skratch
Any Way To Activate Flash Fullscreen Mode When Flash Movie Loads In The Browser
Hi all,
I want to activate Flash Fullscreen mode when flash movie loads in the browser. Without activating it through button clicks.
I tried for this using this type of code:
function goFullScreen()
{
Stage["displayState"] = "fullScreen";
}
goFullScreen();
But it is not working this way, it is working when I put this type of code:
function goFullScreen()
{
Stage["displayState"] = "fullScreen";
}
button.onRelease=function()
{
goFullScreen();
}
thanks in advance,
Vikas.
Any Way To Activate Flash Fullscreen Mode When Flash Movie Loads In The Browser
Hi all,
I want to activate Flash Fullscreen mode when flash movie loads in the browser. Without activating it through button clicks.
I tried for this using this type of code:
function goFullScreen()
{
Stage["displayState"] = "fullScreen";
}
goFullScreen();
But it is not working this way, it is working when I put this type of code:
function goFullScreen()
{
Stage["displayState"] = "fullScreen";
}
button.onRelease=function()
{
goFullScreen();
}
thanks in advance,
Vikas.
Flash In Dreamweaver: How Do I Get My Flash Movie To Open In A New Browser Window?
Anyone know how to make a Flash movie appear in it's own browser window when a link is clicked? I want the window to be exactly the size of the movie with no menu buttons, white border etc.
Don't think it can be too hard as I've seen it loads with Flash movies, but I'm a total newbie to Dreamweaver so any simple instructions would be massively appreciated!
Cheers, Skratch.
Flash SWFs Rendered Faster In The Flash Player Than In A Browser
I have a movie for which I set 40fps. When I view it in Flash MX itself or the Flash Player it's pretty fast - as I want it. When I view it through a browser - embedded in HTML - it's much slower (looks more like 24fps set in Flash). Has anyone seen this behavior before? Any idea on how to fix it - i.e. make be equally fast in Flash MX/Viewer and the browser? Thanks!
Flash Popup Wizard: Opening New Browser Windows From Flash?
Hello,
I once found a plug in for flash that allowed me to specify the size/position of the popup. The interface was orange. I have a different computer now, and can't find that plugin.......Any chance anyone know the name of the plugin so I can search for it?......Thank you....
Making A Flash Movie Open In Flash Player, Not A Browser
Hi, i know it sounds like a really obvious question but i can't figure it out. I did a flash movie for this site: -
localeyenewspaper.com
if you go to the sample newspaper and click a page opens with a flash movie in a html page. My boss now wants the user to be able to zoom in and read the paper, so i need it to open in the flash player to do this. all i did in dreamweaver was link the movie to the button and it automatically put it in the html page, how do i get it to open in flash player instead? thanks.
Flash Object Coming Out Of The Movie And Into The Non-flash Areas Of The Browser
Hey Everybody --
So I was on myspace and I couldn't help but to notice that one of the flash animated ads they were running had butcher knives (it was for some horror movie) coming out of the movieclip and into the browser. Does this make sense? Has anyone else seen this awesome special effect yet? I have been trying to find information on how to do it, I assume it is new in Actionscript 3 am I correct? I can't find anything on it, not even a tutorial but then I don't quite know what to search for either.
Can anyone explain how to do this or know what this special effect is being called/what I should search for?? Can anyone direct me to a tutorial or any information at all, I would greatly appreciate it.
Thanks!
Where To Get New Browser Profiles For Browser Compat Checks?
Does anybody know where I can get updated browser profiles for the browser compatibility check tool ("target browsers") in Dreamweaver MX 2004? My current list only goes up to IE 6 and Mozilla 1. I've looked around on the Adobe website and can't find anything, even in the Exchanges.
Thanks for your help,
Stephen
Help Regarding Flash , PHP , MySQL But Flash As A Projector File And No Browser Needs
hi guys
this is my problem
i have an cultural event in my college
so i need to make a program for registration of people participating in the event
that is when a person comes to the event he will come to the registration counter
then he will tell us his the following details
id (this will be generated by us)
name
college
college code
email
phone
events that he wants to participate
then i take down all the details in a html form and pass it to a php script which will store it in mysql database
then when its time for an event i make a query to the mysql database to give me a list of people participating in that particular event
then i take a print out and give it to the organizer of that event
i did all this in a html page
now my question is can i use flash for all the above purpose (not flash embedded in html but pure flash , that is i should not use a browser , i must a flash projector file if possible)
no browser involved , this is to make that more beautifull
i know how to handle form in flash and pass it to a php script but then when the flash file passes it to php script then i will be taken to a html page
i dont want that to happen
i want to remain in my flash movie itself
just like vb can do it i want to do it in flash (just like vb)
so my question is , is this thing possible or not
thanks guys
please tell me
if it is possible then gimme some hint on hopw to do it
thanks again
keenly awaiting a solution for this
thanks again
Question: Flash Player Versus Browser Flash
It seems there is a difference between what is installed for flash enabled browsers and the flash player (which opens swf's) in it's own window. Am I wrong about this or is this true.
My issue is that I have a swf file that I want people to download as opposed to viewing it on my site. My concern is that people will not be able to open it up.
Any ideas ?
TIA
SA
Php + Flash Problem, Flash Gets Values But Browser Also Prints Them
Hi,
I am working in a project using both flash and php working together as well as Smarty template engine.
I need to send variables from php to flash and I already got it by using loadVars, but the problem is that the browser keeps on writing the string:
when i pass the values like this echo 'variable=value' the browser also prints it.
Is there anyway of solve it or any other way to implement it without using loadVars.
Thank you
SWF Created In Flash MX 7 Won't Play In Browser W/Flash Player 9
I just noticed that my website, which I made from a template from templatesheaven.com, isn't playing in Flash Player 9 in a browser. It plays in the standalone player for some reason, but when I look at it on the web, it shows just the count-in (or whatever it's called, the pre-load), but stops when the counter hits 99% and the action never starts. The website is at:
www.gwhitty.com
I built it using Flash MX 7, but for all I know the template was made using Swish, which apparently causes problems with Flash Player 9. Anyone have any other ideas? Still plays fine in FP7, so I'm stumped. If I open my .fla file in Flash 9 and then export, will that likely fix the problem? Any ideas appreciated...
Flash 6 SWF Crashes Browser Running Flash 9 Plug-in
Here is the web site in question:
http://www.accurateimage.com/essrocvm/interface.html
It runs ok at first but when you click on the buttons at the top it will crash after a few
clicks. These buttons are sending out a call to the server and then loading XML.
This was developed and published in flash 6 and has run without crashes for the past 2
years, only Flash 9 causes these errors.
Any ideas?
Flash Browser Background W/ Centerd Flash Website
Hi all... I've been searching for this.. and also looked in some forums.. but nobody seems to know the answer to this..
How do I get this effect
www.robertreich.de
www.lechateau.com
www.hi-res.net
www.revolvercreative.com
If you stilll don't get me.. the effect is simply the flash background fills the whole browser window.. and also resizes with it while the main content (the site also flash btw) remains centered and doesn't resize with browser...
HELP!!
tnx..
Flash Browser
Hi,
I am wanting to create a Flash Web Browser.
I have created a price list in HTM Format and i want to create a flash browser which i can customise for the customers to view the HTM pricelist in apart from IE.
Thanks
Browser In Flash?
Is there a way to make a webpage be displayed within a flash movie???
Flash / Browser
If I click the back button on the browser is their a way to tell a flash menu what to do?
Flash / Browser
If I click the back button on the browser is their a way to tell a flash menu what to do?
Flash In Browser
Hiya,
I have a small problem, wondering if anyone had any ideas?
This .swf i have posted here, works fine when naviagting thru the menus (such as they are at the moment) in the flash player.
But when the swf is in a browser and viewed like this, the animations seem sluggish and not so smooth? its annoying me.
ne1 got ne ideas why?
cheers in advance
iduff@grdata.co.uk
Flash In Browser On A Mac
I am having trouble getting an image heavy website to play at even half the speed on a mac, anybody know of any tricks to make Macs pump along a little faster?
Flash In Browser On A Mac
I am having trouble getting an image heavy website to play at even half the speed on a mac, anybody know of any tricks to make Macs pump along a little faster?
Flash Browser
Hey guys,
i've got a simple question to ask.
How do you make a page integrated with flash fully?
What i meant is, the whole page in the browser is flash.
Flash Looks Different In Browser
ive made a flash menu that looks different when i put it in an html document. the height is the same and i set the quality to 100, but it still looks different.
here is the original and the flash file: flashtest.htm
how do i fix this?
Flash Web Browser
Hey, I want to make a projector that will load a specific URL into the player I have seen the Flash Browser made with Studio Pro but is there a way to do anything like this without it?
Thanks in advance!
No Flash On Browser(s)
My Flash files do not show on browsers (safari, explorer, firefox)
Using Flash8/Dreamweaver8, I create a folder on local site
- create/save a flash.fla
- embed video (video encoded.flv)
- add text to the stage
- publish preview (default & swf)
It works OK
I upload to remote: O
----------------------------
I open Dreamweaver 8
I check flash.html on browser, works OK
I upload to remote: 0
I create a new .html on dreamweaver
I insert a flash button
check local on browser OK
upload to remote: 0
I create a table border 1, insert an .swf in it & next to it
local OK,
remote= 0 (except for the table)
----------------------------
I uninstalled/reinstalled Flashplayer - no change
I already have older .htmls with flash buttons on the remote that work OK
Any suggestion?
Thanks,
DK
Web Browser In Flash
hi,
a flash can be embedded in a web page,
but what about a web page in a flash?
can it be done?
let's say i want my flash to have a frame of 800x600
and it can open web pages such as google.com or yahoo.com...
can it be done?
or can a flash run a php script from other server?
and show all the tables and any values generated by the server?
thx..
Flash Web Browser
Forgive me if this is old news. I am often a little behind the times.
I had wanted to create a flash based web browser without the use of special containers or FSCommand/ish stuff. I had thought it was impossible... I looked all over the internet, and couldn't find anything (except DENG, after aeons of searching, which I didn't want to use - since I have a mild aversion to using other people's code.)
Well... I was thinking about it in the shower one day (seriously) when it struck me. Why not use the XML() class to retrieve the HTML - and even if the XML class itself can't parse it, extract all the raw data using XMLOBJECT.toString(), and dump it into a dynamic text field - which supports basic XHTML? I could later augment its rendering capacity with custom code, and turn it into a proper rendering engine/browser (although that is a little further down the track.)
So I made the attatched browser.
Yes, it sucks. I will eventually improve it. Its little more then a hack at this stage - the look and feel is awful, and the way in which it loads stuff is hardly logical - and I only spent about 5 minutes actually getting it working, so it is likely to have bugs.
Something which struck me while building the thing is the security risk (not to the actual computer, but to the usability of the browser) that embedded flash poses in a flash web browser. Because it is impossible to sandbox flash within flash, (thats something I have wanted to do for ages...) a flash banner ad or something can make a call to _root, set the alpha or something, and stuff up the entire web browser. *ack*
Anyhow - do you guys have any ideas as to how to quickly improve it?
Thanks for reading. I know you are all very busy people!
Help With Flash In Browser
Hi, if I set the scale mode to noscale and then set the width and height to 100% how do I keep the movie from getting pushed beyond the top and left boundaries of the browser window so the scrollbars will appear?
Flash Browser
Hi, I have a Combo Box which is populated with data imported from an XML file. The data includes headings(for the combo box and URLs to external fileswhich open in new windows). I already have this working my problem is that I don't want the windows to have any toolbars. I realise this probably involves JavaScript, but am not sure how to make it work seeing that the URLS are in an XML file, has anyone any ideas. Thanks
Using Flash As A Web Browser
Hey All,
Is there a way to create a flash movie and have it display .html files like a web browser? I have some external .html files in a folder and I would like to create a flash movie file that can display them when called upon.
Thanks!
Can't See Flash In Browser
I cannot view certain flash images in IE, one of which is the banner on my website. Tucker's World I have upgraded my flash version from the flash site. Is there a script or something i need to add to my banner? Can anyone help me?
Using Flash As A Web Browser.
Hey All,
Is there a way to create a flash movie and have it display .html files like a web browser? I have some external .html files in a folder and I would like to create a flash movie file that can display them when called upon.
Thanks!
Browser In Flash?
i was wondering if it is possible to place browsers inside a flash movie. it seems like i overlooked something, but i cannot find out how, (if possible) to place a browser within.
i was thinking of using dreamweaver but that would mean i would have to make several pieces of flash around an iframe.
i would very appreciate any help or comments.
roy
Flash Web Browser
is there any way to browse the web thur flash?? like a flash based browser?? is this possible?
Help With Flash In Browser
Hi, if I set the scale mode to noscale and then set the width and height to 100% how do I keep the movie from getting pushed beyond the top and left boundaries of the browser window so the scrollbars will appear?
Can't See Flash In Browser
I cannot view certain flash images in IE, one of which is the banner on my website. Tucker's World I have upgraded my flash version from the flash site. Is there a script or something i need to add to my banner? Can anyone help me?
Flash In IE Browser
Hello people.
I usually use Firefox, but I've checked a site in IE. The HTML page has Flash files, and at IE there is a rectangle around each file. It's horrible, and it's not functional because I've to click twice.
Can anyone solve this? If it's possible...
Merry Christmas for all.
Web Browser In Flash
Hi all,
I have to create a web browser in Flash, such as IE but using Flash. I'm new with this language, and I don't know how to do... Can I use a Flash window to put html in, or can import a component able to process html code ?
Thx for your help !
|