More Of A Conceptual Question Regarding When Flash Displays Frames
hi guys, just wanna clarify a few concepts regarding flash's process of rendering and displaying frames:
for e.g
consider the code
Code: var SW:Number = Stage.width; var SH:Number = Stage.height;
var nMover:Number = setInterval(mover, 500);
function mover():Void{ ball_mc._x = 900; if(ball_mc._x > SW - ball_mc._width/2 || ball_mc._x < ball_mc._width/2 ){ ball_mc._x = SW/2; ball_mc._y = SH/2; trace("inside"); } updateAfterEvent(); } Now the first time i saw this code i thought that for a split second the ball_mc would be at 900 pixels and then it would be put back to cordinates SW/2 and SH/2. But this isn't the case ..instead it isnt put at 900 pixels at all.
Is this because when flash is in a function it does not refresh the screen until ALL the statements in the function have been executed?
Also i know updateAfterEvent refreshes the screen so then in the above code if i put the update event directly after ball_mc._x = 900 like :
ball_mc._x = 900; updateAfterEvent();
Should'nt now at least it go to x = 900 for a split second and then return?
Yeah the way and when exactly, and in which conditions flash refreshes/renders/ displays the frames is confusing me a bit.
Any input would be appreciated cheers
FlashKit > Flash Help > Flash ActionScript
Posted on: 03-11-2006, 08:31 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Flash Ad Banner Displays Fine In Windows But Displays Much Smaller On All Mac Browsers
I just created a functional site demo with a 728x90 leaderboard ad banner that is a Flash file. It displays in the correct size on IE on a PC, but when I view the pages on a Mac (Safari, Netscape, and Firefox -- all in OS X), the ad banner is displaying at 370x75. The object size is correct in the code parameters, and the cell in the table that houses the object is sized correctly as well. Any ideas if there is a way for me to fix this?
One Conceptual Question.. RIA
One conceptual question.. RIA
Hi folks.
What is RIA?? is one concept or onother produtc from macromedia??
I only "do" RIA with flash remoting???
Thanks
Conceptual Problem
Can someone help me to understand which would be the sintaxis to do this?
I have a component (piechart) that uses this sintaxis to add data to it:
var items = [ {label:"Tom Hanks", value:100, color:0xF2AC0C},
{label:"Tom Cruise", value:35, color:0x1160B8},
{label:"Hugh Jackman", value:35, color:0xBF0000},
{label:"Jack Nicholson", value:25, color:0x00247C},
{label:"Denzel Washington", value:20, color:0x008900},
{label:"Hugh Grant", value:10, color:0xE95D0F},
{label:"Billy Bob Thornton", value:10, color:0xAC12CD}];
pc.setSeries(items);
On the other hand, I have a PHP that sends to my SWF 2 arrays: theNames and theValues.
How can I assign those 2 arrays to the component? I canīt figure out how to assign it dinamically. The documentation on the components is not good neither.
Conceptual Help For Algorythem.
I'm trying to make an mmorpg but am unsure how to proceed. I would like to make it along the lines of: v5.neondragon.net/ but there are a few things that I'm not sure how I'm going to do. I have it where it saves data on the server (still working on it), I've also made a server clock to keep everything synced. I've always been annoyed by the fact that websites like the one above could make things run smoother by packaging it all in flash. The trouble I'm running into is I can't actually install any software on my server so I'm making do with saving data in a text file. Everything will have to be done this way. I'm just having a bit of trouble conceiving how to do the battle system this way or adding or subtracting resources considering all of the calculations will be done in the swf. I would love to work on this with someone else. If anyone's interested then just pm me.
Conceptual Approach To This
I have a question as to whether there is a better via variable tracking or something to accomplish this.
I have a desk calendar movie clip. Upon an onRelease function on the main timeline, the clip will be loaded into an empty clip and will play the first few frames which will rip off the top piece, zoom the graphic to a bigger size and then populate two dynamic text boxes with the current date and a random quote.
Upon clicking a 'close' button in this movie clip, the calendar will zoom back down to the original size and just have the date visible.
From this point on, I don't want to replay the initial animation but rather just zoom the calendar to the bigger size where the date and quote is available.
So, I thought I could, via this new movieclip, upon the close just zoom down and then load a new movie into the clip which only has the animation I need and a label with the same name so that I don't have to have to worry about the newest movie clip to be named.
This way, once the initial animation is seen, it won't be seen again...unless of course they diable their cache and come back later on the same day but that doesn't bug me.
The other technique was to use:
ActionScript Code:
this.onRelease = function() {
delete this.onRelease;
}
Within the initial movie clip after all the animation but then I couldn't reshow just the date and quote.
Is there a better way to tell Flash.. "onRelease, load this movie clip and play this animation. But, if they have already seen the first part, just play the clip from "x" point on?"
Thanks
Design/conceptual Question
Would anyone here take a minute and look at this http://web.icq.com/shockwave/0,,4845,00.swf
I have been asked to do something similar to this and I have a few questions on how:
1) If I were given the graphics...would there need to be a graphic for every animated movement?
2) Would it be suggested to do a movie clip for each deer/santa and then to put each graphic on a keyframe?
3) What graphics would work best for this?
4) To bring say, deer1, back to its original state, or first keyframe...how would this be done? I suppose to play deer1 I could just say onclick play "deer1" movieclip?
Thanks,
jhb
Using Scenes To Navigate A Conceptual Portfolio Site.
im wondering if there is anyway to template a certain scene...if scene 1 has static shapes all linked to seperate scenes....can i template scene 1's design to import it into all the other scenes? with out importing actions from the original scene?
here's an example i tried to whip up, but had troubles linking scene 3...so after scene 2 wait a sec, and it will transition into scene 3 which SHOULD be activated by clicking the "white box"
http://www.motiv8gaming.org/peejah/test.html
thanx alot,
pj
Conceptual Player And Ground Collision Question..
NEVERMIND. I figured it out. This is the first time I think I have the concept down right, but my issue was that during each frame, I was adding gravity AFTER checking for collision. I thought I should leave the post intact just in case it helps someone else.
I've never actually been able to figure out this specific issue, but I am trying once again to make a flash game which has a player falling onto ground at some point with gravity being the reason.
I need to make sure I have this right conceptually. My player has a variable vy. The player movie clip has it's x,y at the bottom left of the image. The ground movie clip has it's x,y at the top left of the image.
Each frame, I add gravity (ex. 1 pixel/second) to the vy variable. So it is accelerating the player down. However, before I actually add the vy value to the player's y value, I check to see if the player's next position will collide with the ground. To do this, I use hitTestPoint. Specifically, I run ground's hitTestPoint on the x,y+1 of the character (so the point just below my player), and on every value up to x,y+vy. This is to check the character isn't flying right through the ground.
Hopefully I am making sense so far.
If that collision test doesn't return true, then I go ahead and add the vy to the y value of the character.
However, if it returns true, I set the vy to 0. I also move the player x,y to one pixel above the ground x,y value.
My problem is that the player falls, hits the ground, and then keeps getting bumped up and down one pixel.
I tested ground's hitTestObject on the player, and it is returning true. If I am thinking correctly, shouldn't this never return true? I thought I set it up so that the player's box never actually hit's the ground's box, because of the prediction using hitTestPoint...
I believe this problem is what caused huge issues down the line for me once before when I attempted to make a game. What am I doing wrong? Thank you.
Flash CS3 Displays Wrong In IE
Good day people,
I'm not exactly new to Flash Kit, but this is my first post ever.
A few years ago when attending university I was using Flash MX, a bad version from what people tell me, but it worked none the less.
I have a load of documentation on it and stopped using it for about 4 years. However, about three weeks ago I was able to get my Adobe CS3 Design Premium and it came with Flash CS3.
This was perfect timing, because I was updating my website at the time and decided to integrate some Flash into the site to display my images in the portfolio section.
The site can be viewed here for the meantime.
http://studiogibbous.com/beta
Problem is, on monday I was using a Windows box and IE 7 to view the site and discovered a display issue. My text, frame and mask where not there. They had just disappeared, no idea why.
I was using AS2 with Flash 9 output selected and the code for the preloader I was able to get form here.
This is placed in frame 2, I have three frames setup.
-----
stop();
// declare variables
var total:Number;
var loaded:Number;
var percentage:Number;
// create frame loop
this.onEnterFrame = function():Void {
// get the status of your load
loaded = this.getBytesLoaded();
total = this.getBytesTotal();
// Here you have a safety feature that sets your percentage
// to zero if the calculation returns NaN (Not a Number).
percentage = (!isNaN(loaded/total)) ? Math.ceil((loaded*100)/total) : 0;
// make sure your percentage value never goes higher than 100
if (percentage>100) percentage = 100;
// update your progress indicators
this.loadertext_txt.text = percentage+"%";
// test to see if youre done
if ((loaded == total) && (total>100)) {
// start the application
gotoAndStop("init");
// delete the frame loop
delete this.onEnterFrame;
}
};
-----
I'm not using the precentage, but decided to leave it in there.
So the questions becomes, does anyone know what I'm doing wrong?
Can anyone help me out.?.
I program my sites by hand they are W3C certified and always added proper SEO, but this I'm having sever trouble with.
Any help would be great.
Gibb
Flash MX - Can It Displays Unicode?
Hello,
I need to display some Greek, Japanese ... in text field without using fonts. However, Flash MX doesn't display these text well until I set to the suitable (example Times New Roman Greek)
Please see the attachment for more detail. BTW, for the Greek text, when I set the text field as Static text (and font Times New Roman Greek), it displays very well. But when I change ot Dynamic text (and font Times New Roman Greek), it can not display, why?
Could we use any Unicode text without setting font by using Unicode font in Flash MX?
Thanks
Flash That Displays Over The HTML
http://www.yahoo.com/
Yahoo has a Transformers add where two robots seem to pop out of the flash div and into some other HTML element of the page. Does anyone know how they do this? I hope they still have the add up when you go to their page =p
-Nate
Flash Displays Differently Html Vs. Swf
hi,
the visual area of my flash files are diferent between html and swf. if i drop a gradient bg in it has to be bigger than the stage to display properly in swf.the stage is perfect for html though? what gives? i tinkered with the preferences to no avail. any help would be appreciated. aloha!
Changes To How Internet Explorer Displays Flash
Microsoft are changing the way embedded content (like flash movies) works in internet explorer. In order to keep your pages displaying as they do now you need to change how you embed the flash movie into a page. Check this thread for details...
http://www.flashkit.com/board/showth...hreadid=497062
Flash Web Site Only Displays On Refresh ?
I have a website created in flash which loads correctly on my mac in IE and Netscape, however, when some friends using windows xp try to load it up on their IE 6.0 they get a balck screen. When they refresh it plays but if they refresh again it goes black - if they refresh again it plays if they refresh again it doesn't - what gives ???
Thanks for any input or ideas
I'm using flash mx 6, dreamweaver 6, mac os9 -
J
http://www.andersonsrestaurants.com/test2/test.html is the addy
[Flash 8] LoadClip Image Only Displays Once . . .
The coding, as usual
Code:
//Loading and Formatting Movie Poster
var myMCL:MovieClipLoader = new MovieClipLoader();
var ml:Object = new Object();
ml.onLoadInit = function(target_mc:MovieClip) {
target_mc._height = 152;
target_mc._width = 102;
}
myMCL.addListener(ml);
_root.createEmptyMovieClip("poster_mc",1);
myMCL.loadClip(mimgurl1, poster_mc);
//Turning Movie Poster Back On
poster_mc._visible = true;
stop();
mimgurl1 - mimgurl7 is defined in the opening frame:
Code:
mimgurl1 = myVariables_xml.firstChild.childNodes[1].childNodes[1].firstChild.nodeValue;
All of the other codes look like that with a few values changed to point to the correct location.
When the swf is first loaded, it correctly display the image defined in mimgurl1. However, it won't display any of the images that I attempt to load in any other scenes and it wont' display the first image once you have left the scene.
There is a small bit of animation that stops on a keyframe where the first bit of code is executed. It is done like this for all of the scenes. Any idea why they won't continue to load?
[F8] Flash Content Displays In FIrefox But Not IE
I have a page hosted in a content management system pointing to a movie.flv a movie.swf and a SteelOverAll.swf in a different folder.
It was easy enough to call the movie.swf from the webpage by including the complete path to the swf. The problem was making sure the SteelOverAll.swf was called correctly. In the FLVplayback parameters you can specify a complete path (a custom url) to the playback skin file and also to the movie.flv you are displaying in the container.
And guess what it all works, the movie is displayed with the correct playback skin ... but only in firefox. My question is why doesn't it work in IE, the movie doesn't even load.
Flash Displays Accurately ONLY On Some Browsers
I have a flash animation that is on a website I am working on and how it is set up, I have the movie on the left and text on the right. The text on the right has a certain color background. When the animation ends, the background of it is supposed to fade to the same background color as the text on the right but only happens in firefox or camino etc. In internet explorer or safari the movie fades to a lighter color than I had set it up, can anyone please help me? It is driving me insane!
Website link is http://www.vipedesigns.com/3vnewsite
Internet Explorer 7.0 IMAGE
Firefox 2.0 IMAGE
Regards,
Vlad
Edited: 01/05/2007 at 12:10:13 PM by ObsoletePower
Flash On My Page Displays Over My DHTML Menu
My dhtml nav bar on my website is directly over a flash movie I have playing on my website. The site looks fine except when you scroll over one of the nav bar buttons and then the POP-up window displaying the choices displays BEHIND the flash movie.
Is there a way I can define a level or something in HTML to tell the page to display my nav bar (and more importantly my dhtml menu) ABOVE my flash movie and not below it.
Sorry.. I'm not very good with DHTML and HTML.
Any help is greatly appreciated.
Mozilla Displays Embedded Flash Incorrectly
Here's my ugly placeholder site: Fourth Time
Can anyone tell me what is wrong with the page to make it display incorrectly? If you load it up in IE it loads correctly, 100% by 100%. But with Mozilla it shows up in a 200x200 block in the top center of the page. Am I missing something?
If you don't know why it does this can you suggest a workaround?
Thanks all!
Flash Site Displays Badly In Different Resolutions
Hi,
I just completed a Flash site (www.ymgraphics.com) and it looks great in 1024x768 pixels resolution but terrible on 800x600. I have never published a Flash site before. Any recommendations on what I should do?
Thanks!
info@ymgraphics.com
www.ymgraphics.com
Only Top Left 1/4 Flash Movie Displays In Html
Hi,
I'm a newbie to flash. I have converted an MS PowerPoint presentation to flash mx, and it does everything we need it to do ONLY in the flash editor itself (with 'test movie'). However, when it comes to viewing it in html, I only see the top right 1/4 of the page.
I googled for my problem but couldn't find anything, and I checked around on this list a bit. I found a note about
Stage.scaleMode="noScale";
and I tried it. It hasn't fixed the problem with the html, but I find I can break the movie in the flash editor test viewer if I set Stage.scaleMode to exactFit, i.e.,
Stage.scaleMode="exactFit";
With this setting, the page displays only the top left corner of the page in the flash editor viewer, just as it does in the html. But if I set the script to
Stage.scaleMode="noScale";
it fixes it only in the viewer, not the browser. Any ideas?
Actionscript code below.
Thanks!
Stage.scaleMode="noScale";
stop();
function gotoNextSlide():Void {
if (_currentframe<_totalframes) {
gotoAndStop(_currentframe+1);
} else {
quit();
}
}
function gotoPreviousSlide():Void {
gotoAndStop(_currentframe - 1);
}
function gotoHome():Void {
gotoAndStop(1);
}
function gotoEnd():Void {
if(_currentframe<_totalframes) {
gotoAndStop(_totalframes - 1);
}
}
function quit():Void {
fscommand("quit");
}
var myListener:Object = new Object();
myListener.onKeyDown=myOnKeyDown;
myListener.onKeyUp = myOnKeyUp;
Key.addListener(myListener);
myListener.onMouseUp = myOnMouseUp;
Mouse.addListener(myListener);
buttonListener = new Object();
buttonListener.click = function(eventObject) {
if (_currentframe<_totalframes) {
gotoAndStop(_currentframe+1);
} else {
fscommand("quit");
}
}
setProperty(page1_btn,_alpha,0);
page1_btn.addEventListener("click",buttonListener) ;
page2_btn.addEventListener("click",buttonListener) ;
next_graphica.addEventListener("click",buttonListe ner);
function myOnKeyDown():Void {
if(Key.isDown(Key.DOWN) || Key.isDown(Key.PGDN)) {
gotoNextSlide();
} else if (Key.isDown(Key.UP) || Key.isDown(Key.PGUP) ) {
gotoPreviousSlide();
} else if (Key.isDown(Key.END)) {
gotoEnd();
} else if (Key.isDown(Key.HOME)) {
gotoHome();
}
}
function myOnKeyUp():Void {
if(Key.getCode()==27) {
quit();
}
}
function myOnMouseUp():Void {
}
function myOnClick():Void {
gotoNextSlide();
}
Lightbox With Flash That Also Displays Non Image Content?
Hey im looking for a Lightbox solution that I can run from flash that will display another flash file or an html page.
So it would be like flashlightbox v.2 down below:
http://www.huddletogether.com/projects/lightbox/
with the lightbox gone wild:
http://particletree.com/features/lightbox-gone-wild/
Flash On Large Displays... 2880px Limit?
anybody have any advice on building flash for large displays? i'm trying to build an interactive for a quad-1080p setup that's obviously going over the 2880px limit. is there any way to override that number?
Flash Movie Displays Text But Not Pictures
My flash movie works in Flash 8, but when I insert it into the web page it only displays the text, not the pictures. I even went back on took the cafe_townsend file, that is provided finished for a tutorial, and the same thing happens. Is there a setting to make sure the pics are displayed.
Video Control Bar In Flash Displays On HD But Not From Webserver
I am using Flash Pro 8 - putting FLV files in SWF files using Flash Pro 8 and then "publishing" to Html and SWF to a location on my hard drive.
When I display the webpage from my Hard Drive from where ever on my hard drive I initially published to from Flash 8 Pro - everything works fine - videos play and video control bar shows and works.
When I publish this website to web server the video displays and plays but NO Video Controller Bar (at bottom of the video) shows at all.
Symptom: when I make an Html, SWF and FLA file into a folder on my hard drive and display them in the browser the video control bar shows. When I copy those three files into the hard drive website in FrontPage, the video shows but the video control bar does not.
So, I re-made the Html, SWF, and FLA files and put them directly into the FrontPage website (on my hard drive) then everything works fine when I use broswer (IE 6 or Firefox). z
But, when I publish the hard drive website to the remote website hosting company, the video control bar disappears - everything else works fine (video shows OK just no video controller bar.)
My guess is that the SWF file has a non-relative URL reference concerning the video control bar and when the three files (Html, SWF and FLA) are moved to new location then that non-relative address rears its head.
I should NOT publish from Flash 8 Pro directly to remote webserver as it has FrontPage Extensions and does not like to talk to FTP changes to website not coming from FrontPage client.
is my guess right? What to do?????
david@skyborough.com
How To Run 2 Flash Apps On Dual Displays On Startup?
I want to take two flash apps (mac projectors) and have each launch fullscreen on one of two displays. I'd like to have this launch on startup but i'd also need a solution for closing and relaunching with the same configuration.
What options are available?
Flash Movie Displays As Solid White Area
Hi there. My movie views perfectly in 'test movie' while still in flash, however once I dump it into a cell of a table in Dreamweaver, it displays as a white background when previewing in explorer or netscape. Can anyone suggest what might be causing this?
Flash Displays As White Block After Plugin Download...
Flash file shows up as a white block on the clients computer, though it displays correctly on others...in the same building(so it can't be stripped by the firewall)
I had them install flash player and it still does the same.
Other sites with flash displays fine on that same PC.
The temp link: http://web7.impol.net/safair
There's a small animation on the top right of the site...
I really can't think of anything it could be, any help will be much appreciated.
Movie Displays In Flash Complier | Doesn't Locally
I'm racking my brain here. I have a master swf and a loaded swf. When I view the master in the flash complier, every displays great. Now when I click on the swf movie outside of the flash authoring enviroment, the movie doesn't display, not even locally.
I know it is loading, as I have an event triggered on load; and if I remove the swf file from the folder, the event doesn't get triggered.
Has anyone ever experience this?
BTW, I very positive it is not a problem of paths.
Thanks FG.
PS. I believe it has to do something with the actionscript used in the loaded MC, becuase I placed a graphic on the stage and it showed, but the rest of the movie didn't. Here is the AS:
ActionScript Code:
stop();
_lockroot = true;
createEmptyMovieClip("theScene", 990);
theScene._y = 150;
theScene._x = 100;
objectsInScene = new Array();
focalLength = 500;
spin = 0;
//---------
displayPane = function () {
var angle = this.angle+spin;
var x = Math.cos(angle)*this.radius;
var z = Math.sin(angle)*this.radius;
var y = this.y;
var scaleRatio = focalLength/(focalLength+z);
this._x = x*scaleRatio;
this._y = y*scaleRatio;
this._xscale = this._yscale=100*scaleRatio;
this._xscale *= -1*Math.sin(angle);
this.swapDepths(Math.round(-z));
};
//------
angleStep = 2*Math.PI/8;
for (i=0; i<8; i++) {
attachedObj = theScene.attachMovie("pane", "pane"+i, i);
attachedObj.gotoAndStop(i+1);
attachedObj.angle = angleStep*i;
attachedObj.radius = 100;
attachedObj.x = Math.cos(attachedObj.angle)*attachedObj.radius;
attachedObj.z = Math.sin(attachedObj.angle)*attachedObj.radius;
attachedObj.y = 40;
attachedObj.display = displayPane;
objectsInScene.push(attachedObj);
}
//--------panCamera
panCamera = function () {
spin -= this._xmouse/1000;
for (var i = 0; i<objectsInScene.length; i++) {
objectsInScene[i].display();
}
};
theScene.onEnterFrame = panCamera;
Thanks for the hand.
Flash 9, Displays Digital Editions Text But Not Graphics
Hey, just downloaded Flash-9, fresh install on a new PC, so I know there aren't any previous version issues going on. I've got 3 different Digital Edition files that will open correctly, but Flash will only display the Text of them and no graphics. I've tried uninstalling and re-installing Flash, as well as re-downloading the DE files to no avail. Any suggestion or tips? Any help at all would be greatly appreciated, thanks!
IE7 Displays Image Errors After Adding Flash To Site
Hi everyone, im new to Flash and have a mager issue with my site. before I added Flash to my site everthing displayed fine, both in IE7 and FireFox, but ever since i placed a flash header on my index page all have gone tits up. the site will display fine in IE untill i allow the ActiveX dedection script for flash. Im using the script that flash auto produces. Like i said im new to flash and have no idea what the hell is going on, or how to fix it, so pleeeeese can you help
Flash Site That Only Displays The Chrome Boarder And Blue Top
I am trying to find an example for a flash site, but how is it done that when people go to a www.example.com/index, and then there will be a link that when people click on it it pops up the actual flash site and it is only the chrome window with blue top?
Flash Source, Moseover/hover Buttons, Displays Image
i have a really simple one.
i'm looking for flash source that would do the following:
have 5 multiple buttons:
[__] [__] [__] [__] [__]
when the buttons are moused over or hovered over - the flash file would display an image. one for each button.
it's for a banner ad.
just need some direction on where to find this, buy this or get this done.
thank you,
justin
Flash Displays Gif If It Can't Detect A Flash Player?
Somewhere I remember reading that MX automatically displays a gif or jpg of the flash image if it finds that the viewer doesn't have a flash player installed in his/her computer.
This doesn't seem to be happening for me.
Does anyone know anything about this feature?
Thanks :-)
Full Screen Flash Sites, How Does It Work On Different Size & Resolution Displays?
I am a little confused when making my full screen flash site for an interactive DVD rom which will be played by different people on different PCs and displays.
What size should I be making it for?
I mean people have different monitors and resolution and now widescreen. So what size should I be building the Flash? Will it deform if the viewer has a widescreen lcd screen?
What's the safest size to build the full flash screen site.
I would also like to know, how do I go about making it auto start so when the user loads the DVD-rom, it will automatically go to full screen and load my Flash movie. Would I need to embed the Flash into a HTML page or can I make it auto start on the Flash file by itself?
Thanks
Conceptual Question About "package" Keyword
I've read through a lot of Adobe documentation about how "package" is used primarily as a way to avoid naming conflicts. Fair enough, but how does a nameless package work?
ActionScript Code:
//Greeter.as
package
{
public class Greeter
{
public function sayHello():String
{
var greeting:String;
greeting = "Hello World!";
return greeting;
}
}
}
//in the main timeline
//(mainText is a textField on the stage)
var myGreeter:Greeter = new Greeter();
mainText.text = myGreeter.sayHello("Bob");
1) Why can this package get away without a name?
2) How does a .fla file know to use Greeter.as when compiling my .swf? Where does the "import" occur?
Film Frames To Flash Frames
I want to make some small animations and in order to capture movement and forms 'correctly' I want to use digital video.
I would then turn up the contrast to define the form and shapes and then trace in flash or freehand. Hereby creating a frame by frame animation.
OK that's an idea, how do I do that the best way? (and quick?)
*.txt Displays Different
Hi,
when I'm previewing my site in flash my dynamicly loaded textfile has a different linespace then when I view it online. is this a common problem?
thnx...
Using 'num-=0.2' Reaches 0 And Displays 5.55?
Hi guys
My var num equal say 1
and I have the following code on a button
on (release) {
num-=0.2;
}
<see attached FLA>
All is fine the variable steps down 0.8, 0.6, 0.4....
when it reaches what should be 0 it displays 5.55
Can anyone explain why? and/or have a solution.
Cheers
Ol
Mc Displays Very Smoothly
I like to know how do you make a MC to run very smoothly like this flash link below? Could someone give me an expample because I've been trying to create something similar but never appears this smooth. I'm referring to the clip that will appear after you enter the website.
Thanks,
[F8] Sound Displays
If you have windows media player, look for the "scope" visualization. For those who dont, it's a line that forms and waves to the music.
There
Is there any way to do this in Flash 8?
[F8] MC Moves And 1/2 Displays
I'm definitely newb, and i'm hoping this is a newb issue.
In Firefox - all is good.
In IE 6, upon loading the page, the movie plays correctly. It is centered and has buttons that move and animate; basically like the dock in MAC OS X.
If any of the clickable elements are used to navigate into the site, and then the back button is used to return, the movie has moved far left, AND only the right 1/2 of the movie is visible. This only happens in IE 6; one friend said that in IE 7, the movie worked fine.
I've embedded the movie with good old vanilla embed as well as the UFO embed method. Unfortunately, it is on a test server, and I dont think my company would appreciate me posting the IP. But if you post back and feel like helping a brother out, I'll get you the info so you can see some messed up crap!
Thanks everyone.
Only The Last Image Displays
I'm having a problem where only the last image is being displayed. I assume it's overwriting it, but why? I'm creating a new MC for each image? Any help would be greatly appreciated.
//mouse listener
MouseListener = new Object();
Mouse.addListener(MouseListener);
_root.onEnterFrame = function() {
if(_root._ymouse > 380) {
if(NavBar._y > 380) {
NavBar._y = NavBar._y - 20;
}
if(_root._xmouse < 320) {
var ScrollSpeed = 100 - ((_root._xmouse / 320) * 100);
var NavBarPos = NavBar._x + ScrollSpeed;
if(NavBarPos > 0) {
NavBarPos = NavBarPos - NavBar.width;
}
} else {
var ScrollSpeed = ((_root._xmouse - 320 ) / 320) * 100;
var NavBarPos = NavBar._x - ScrollSpeed;
var NavBarEnd = 0 - NavBar.width;
if(NavBarPos < NavBarEnd) {
NavBarPos = NavBarPos + NavBar.width;
}
}
NavBar._x = NavBarPos;
} else {
if(NavBar._y < 480) {
NavBar._y = NavBar._y + 20;
}
}
}
//navigation bar
_root.createEmptyMovieClip("NavBar",1);
NavBar.height = 100;
NavBar._x = 0;
NavBar._y = 480;
XMLFile = new XML();
XMLFile.ignoreWhite=true;
XMLFile.onLoad = parse;
XMLFile.load("navbar.xml");
function parse(success) {
if (success) {
var XMLTotal = 0;
var XMLChild = this.firstChild;
while(XMLChild != null) {
var ClipName = "Section" + XMLTotal;
NavBar.createEmptyMovieClip(ClipName,1);
NavBar[ClipName]._x = XMLTotal * 128 + 11;
NavBar[ClipName]._y = 10;
var MovieName = XMLChild.attributes.name + "_thumb.jpg";
loadMovie(MovieName, "NavBar."+ClipName);
XMLChild = XMLChild.nextSibling;
XMLTotal++;
}
NavBar.width = XMLTotal * 128;
}
}
Clock That Always Displays GMT
Is it possible to make a Flash Clock that always displays GMT time no matter where the user is in the world. All the other flash clocks I've found (or can make) use the Users PC clock. I want a clock on my site to always show GMT (or London time) no matter where the user is in the world.
Ideally I want several clocks showing London, Paris, New York and local time which are accurate no matter what country you're in.
Hope someone can help.
Preload Bar, Only Displays Like After %56
hey guys.
i'm doing this site, and the preloadbar only shows when it's like already %56 loaded. the screen is blank until then. weird. am i missing something. all my symbols don't start until' the 3rd frame, so i don't see what's the prob. the only thing i can say that's differetnt about this site, from others i've done is, that there's alot of photos in it.
see what i mean www.ellio.org
any immediate advice would help out big time!
XML Only Displays After A Reload?
Hi all,
I don't get this, my menu shows the menuItems after i reload the page, not the first time.
on frame 1 i have
ActionScript Code:
xmlSettings = new XML();xmlSettings.ignoreWhite = true;xmlSettings.onLoad = loadXML;xmlMenuPath = "settings.xml";//xmlSettings.load(xmlMenuPath);function loadXML(success) { if (success) { var xmlNode:XMLNode = this.firstChild; var menuItems = xmlNode.childNodes[0].childNodes; for (var i = 0; i<menuItems.length; i++) { menuArray.push(menuItems[i].firstChild.nodeValue.toUpperCase()); gotoArray.push(menuItems[i].attributes["gotoURL"]); } } else { content = "file not loaded!"; }}function ini() { for(i=0;i<menuArray.length;i++) { var curr_item:MovieClip; curr_item = this["menuItem"+i]; curr_item.gotoURL = gotoArray[i]; curr_item.txtMC.menuTxt.text = menuArray[i]; curr_item.onRollOver = over; curr_item.onRollOut = out; curr_item.onRelease = goto; curr_item.onEnterFrame = setBG; } line.filters = [myDropShadow]; trace("Menu array: "+menuArray); trace("goto array: "+gotoArray);}
and on frame 5
ActionScript Code:
ini();stop();
How can i make sure the menuItems are show on first load?
regards
|