Missing Code
<html> <head> <title>Mix-FX</title> <meta name="Author" CONTENT="Triple W Communications"> </head> <body bgcolor="#000000"> <center> <object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#4,0,0,0" width="600" height="300"> <param name="SRC" value="mix fx 5G.swf"> <param name="quality" value="best"> <embed src="mix fx 5G.swf" pluginspage="http://www.macromedia.com/shockwave/download/" type="application/x-shockwave-flash" width="600" height="500"> </embed> </object> </center> </body> </html>
FlashKit > Flash Help > Flash MX
Posted on: 11-18-2002, 12:02 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Object/embed Code Missing From Source Code
I have the wackiest problem.. its killing me. I developed a simple flash banner for a client. It works fine on 99% of all machines, but the client's machine happens to be in the 1% that it DOES NOT work on. When he pulls up the page containing the flash file, he gets nothing. He has the latest flash plugin, and can view other flash content. When I view the source code on the machine that is having the problem, all the code is there EXCEPT the object/embed code. Its just missing. What in the world could cause that? I checked for firewall issues. He is running norton firewall. I disabled it, but he still has the problem.
This is the page in question:
http://projects.newtarget.net/RELOconnections/flashtest.html
as you can see, nothing special. simple flash, simple code. the other computers in his office have no trouble, its just his computer and his parents computers. I tried the page in IE 6 and firefox. Same result, he is not getting the flash code. He's on WinXP.
Can anybody think of ANY reason why he would be being shielded from getting object/embed flash code?
-vb
What Am I Missing In This Code?
Ok. I'm doing a pre loader that's supposed to be fun. The gist is this:
A text field [this.disp.label], font embedded, that is used as a mask for a little colorful rectangle. The bar is animated back and forth and the text changes to display percent loaded [ original, I know ]
This works fine. The text changes and everything. [ this function is called by another one that sets everything up ]
ActionScript Code:
function checkPreLoad(c) {
this = c;
var toLoad = this._parent[this.loadClip].getBytesTotal();
var inLoad = this._parent[this.loadClip].getBytesLoaded();
var per = Math.floor((inLoad/toLoad)*100);
if (toLoad != 0 && inLoad != 0) {
var msg = this.message+" "+per+"%";
this.barWhole.barMask._width = per*2;
if (per>=100) {
this.killIntervals();
this.initOut();
}
} else {
var msg = this.message;
}
this.disp.label.text = msg;
this.disp.label.embedFonts = true;
this.disp.label.setTextFormat(loadForm);
this.disp.label.autoSize = true;
}
However, when you reach 100%, I want it to change the text to "Done.", but it doesn't.
ActionScript Code:
function initOut() {
this.barWhole.barMask._width = 200;
this.colors._x = this.disp._width-this.colors._width;
var msg = "Done.";
//this is the but that doesn't work
this.disp.label.text = msg;
this.disp.label.embedFonts = true;
this.disp.label.setTextFormat(loadForm);
this.disp.label.autoSize = true;
this.finish = setInterval(finishOut, 10000, this);
}
Can anyone see what's going wrong?
Preloader Help, Have A Look At My Code - What's Missing?
Hi
I've been using the code below to preload the whole movie but I want to preload specific scenes now (with the load bar reaching 100% when a specified scene has loaded).
Here's the code:
total_bytes = _root.getBytesTotal("Scene 1", 300);
loaded_bytes = _root.getBytesLoaded("Scene 1", 300);
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("Scene 1", 300) {
gotoAndPlay ("Scene 1", 1)
I thought putting in ("Scene 1", 300); after the total_bytes = _root.getBytesTotal and loaded_bytes = _root.getBytesLoaded would give me the remaning bytes/percent of that scene but it still shows the bytes/percent of the whole swf.
Help
Thanks
Jnr
This Code Is Missing A Function I Think?
Ok seeing that my last post was somewhat confusing maybe this will make sense. This is my Array:
Code:
masterMenu = ["s1Open", "s2Close", "s3Close", "s4Close", "s5Close", "s6Close",
"s7Close", "s8Close", "s9Close", "s10Close", "s11Close", "s12Close"];
And this is what I use to change my Array:
Code:
masterMenu[1]="s2Open";
masterMenu[2]="s3Open";
When I use the output screen it works fine and my Array shows the appropriate labels. I use the labels in a movie and I'm trying to play a certain frame label once I use one of these:
Code:
masterMenu[1]="s2Open";
to change it.
So do I need to make a function or something else to get the Array lables to initiate? Thanks
Something Silly Missing From Code
hello,
I found this code in an old post from fk member retrotron.
Im trying to get it to work on a movie clip called "myClip_mc" as the post instructed.
I must be missing something silly. heres the original link
http://www.flashkit.com/board/showth...ntrol+position
Code:
onClipEvent (enterFrame) {
function moveClip() {
if (myClip_mc._x < 400) {
// the _x value is less than 400, so increase _x by 1px,
// and let setInterval execute this function again
myClip_mc._x += 1; // move the clip 1 px to the right
} else {
// the _x value is greater than 400,
// so stop the setInterval from executing anymore
clearInterval(myInterval);
} // end "if myClip_mc._x < 400"
} // end moveClip()
// execute the "moveClip" function every 10 milliseconds
myInterval = setInterval(moveClip, 5);
}
thanks
[F8] Am I Missing A Piece Of This Code?
Here is my current script: (This is the area of my script where I think I am missing something.)
//these functions decide who won
function youWin() {
if (myScore>=10) {
this.gotoAndPlay ("winningend");
}
}
function youLose() {
if (dangerScore>=10) {
this.gotoAndPlay("loosingend");
}
}
stop();
On the winning end screen and loosing end this is my code:
//this stops it from advancing
stop();
//This is the music to end the game
music_loop.stop();
music_loop.attachSound("endingMusic.wav");
music_loop.start(0,999);
If anyone can fill me in what I'm missing it would be greatly appreciated. Or if I need to look at a different area of my code or if I am doing it assbackward all together. ThanksaBunxh!!!
Missing Code In Flashvars
I need the flashvars below to retrieve the current url value:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="864" height="180">
<param name="movie" value="../assets/shockwave/mulino_head_docs.swf">
<param name="FlashVars" value="CurrentUrl=this needs to be looking at the current url value">
<param name="quality" value="high">
<embed src="../assets/shockwave/mulino_head_docs.swf"
FlashVars="CurrentUrl=this needs to be looking at the current url value"
quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash"
width="864" height="180">
</embed>
</object>
Thank you
luzippu
Preloader Help, Check My Code - What's Missing?
Hi
I've been using the code below to preload the whole movies but I want to preload specific scenes now (with the load bar reaching 100% when a specified scene has loaded).
Here's the code:
total_bytes = _root.getBytesTotal("Scene 1", 300);
loaded_bytes = _root.getBytesLoaded("Scene 1", 300);
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("Scene 1", 300) {
gotoAndPlay ("Scene 1", 1)
I thought putting in ("Scene 1", 300); after the total_bytes = _root.getBytesTotal and loaded_bytes = _root.getBytesLoaded would give me the remaning bytes/percent of that scene but it still shows the bytes/percent of the whole swf.
I'm using MX btw.
Help
Thanks
Jnr
Preloader Code Problem, What Am I Missing?
I'm using the following code as a preloader, however I think I have done something wrong because it's not wroking right. It's getting to the start label but then not playing forward from there. What am I doing wrong?
Code:
onEnterFrame = function(){
var percentDone:Number = int((getBytesLoaded() / getBytesTotal()) * 100);
trace("percentDone = " + percentDone);
_root.percentDone = percentDone;
if(percentDone == 100){
trace("this is the IF");
delete onEnterFrame;
gotoAndPlay("start");
}
};
[CS3] HELP- Simple Button Code Missing
got the below code on 4 buttons, b1 = button 1 and so on.. 'over' is the down state. probis when u click on any other button, b2, etc the button u originally pressed stays in the down state, i need it to reset to normal state.
that make sense? i know its a simple lin eof code, but i dont know what?
b4.onRelease = over;
b4.onRollOut = out;
function over() {
this.gotoAndPlay(2);
}
function out() {
this.gotoAndPlay(7);
}
The Missing GotoAndLearn.com Mp3player Code
Hello there,
I was wondering if anyone here happens to have the supplementry .zip file found on gotoAndLearn.com, that accompanied the last Mp3player tutorial before the site was pulled and the content rendered unavailable.
its a bit of a long shot, but i'd thought i'd ask. I just can't find it anywhere on the web, not even http://theflashblog.com/ .
thanks Cam
Papervision Google Code Missing?
I've tried to download the effects branch update from google code,but found out it was missing
http://papervision3d.googlecode.com/svn/trunk/branches/
it's just cs4,no effects,or great white....
did anyone by chance download it?
Load .mp3 Dynamically - What's Missing In The Code?
I need help, how to make it work? Im following directions from Kirupa tutorial:
http://www.kirupa.com/developer/mx/loading.htm
sound does not load, I'm out of ideas. Please help.
(fla file in attachment, no mp3 file attached). Thanks.
Great Preload Code: Missing Running %
Great code from Jesse at Actionscript.org. Does anyone know why my percentage sign is missing when I use this code?
total_bytes = _root.getBytesTotal();
loaded_bytes = _root.getBytesLoaded();
remaining_bytes = total_bytes-loaded_bytes;
percent_done = int((loaded_bytes/total_bytes)*100);
bar.gotoAndStop(percent_done);
ifFrameLoaded ("Scene 2", 30) {
gotoAndPlay ("Scene 2", 1);
}
Thanks,
S27
Am I Missing A Code? Flash Intro Previews With Dreamweaver But Won't Load On Net
Here's the code
body>
<div align="center">
<p>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="700" height="600">
<param name="movie" value="../../Documents/flashintro.swf">
<param name="quality" value="high">
<embed src="../../Documents/Untitled-4.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="600"></embed>
</object></p>
Can anyone help? Did I forget to do something? This is my first time ever using Flash MX was there something I was supposed to do when I save the file?
Missing Fonts (but Not Missing)
Hi,
I'm working with MX on Mac.
I got some PC FLAs that shows the "missing fonts" error message when opened.
I searched the whole FLAs for textfields using the "missing" fonts, but there are none!
Using the movie explorer I also can't find textfields or anything using the missing fonts!
Whats going on? Are the FLAs corrupt?
Missing Fonts, Is It Possible To Insert Missing Fonts To Flash?
Hi,
I have a problem. I use some fonts on my flash site and everything works fine on my computer. But when I open the same site on another computer where the fonts are missing, it replace the fonts with common ones.
Is there any solution how I can attach this fonts to flash site?
What Am I Missing Here?
I have a .swf that's about 52k. Not long enough even at 56k for a preloader, but long enough that I want SOMETHING on the screen for that couple of seconds.
So I created a .swf called "FirstScreen.swf" - it has 2 layers. One contains text that simply puts the word "Initializing" in the middle of the screen. Layer 2 is called "Load", And in Frame 2 of the "Load" layer (I've tried it in Frame 1 as well with no better results), is the following code:
loadMovieNum("HBInterface.swf", 1);
I've checked, and HBInterface.swf is the right title, it's in the same directory as "FirstScreen.swf". So why when I open "FirstScreen.swf" on my local server, I get the "Initializing" screen and that's all that ever happens?
I'm tearing my hair out over this one, someone please help!
Thanks
Neil
Almost There, Am I Missing Something
This code almost seems to work.
On the initial mc (called: mc_b) I have:
onClipEvent (load) {
mc_a.prototype.floatTo = function (speed, endx, endy) { var dist_x, dist_y, vel_x, vel_y;speed = "."+speed;dist_x = Math.round(endx-_x);dist_y = Math.round(endy-_y);vel_x = dist_x*speed;vel_y = dist_y*speed;_x += vel_x;_y += vel_y;};
}
Then on the button inside the mc (mc_b) I have:
on (release) {
i ++;
if (i == 1){
_root.mc_a.floatTo (6, 232.0, 148.8);
} else if (i == 2){
_root.mc_a.floatTo (6, -200.0, 148.8);
i = 0;
}
}
I am trying to have mc_b move mc_a in and out of the window, though something here doesn't work???
?????
thank you, thank you
I Must Be Missing Something....
To my knowledge, this should work fine.....
Create a blank MC in the main timeline.
Give it an instance name of "mcMusic".
Import a MP3, goto it's properties and give it a LINKAGE name of "songMusic".
In main timeline, frame 1, add this code:
myMusic = new Sound(mcMusic);
myMusic.attachSound(songMusic);
myMusic.start(0,2);
Run the movie.
To my knowledge, you SHOULD get the mp3 sound to loop twice... but nothing happens...
Any thoughts?
Please Help, I Must Be Missing Something Here
Okay here the thing. I need to generate a path randomly by selecting a movieClip name from an array and then placing it in a variable so I can use it in my gotoAndPlay statement. It doesn't seem to work the way I have it set up. What am I doing wrong?
bkgArray = new Array("Pink", "Blue", "DBlue", "Orange", "Grey");
setInterval( randBkg, 3000 );
function randBkg(){
getIt = random(4);
nm = bkgArray[getIt];
bkgName = "bkg" + nm; // this would be the movieClip name
labName = nm + "Play"; // this would be the frame label within the movieClip
bkgName.gotoAndPlay("labName");
}
Thanks in advance.
XML Missing ?
hi,
has anyone ever experienced this problem...
if the xml document is local i can get the declaration and the content - but when live on https, i can only get the declaration..?
(i'm building the movie for use on a local browser)
Am I Missing Something?
Ok, I'm trying to allocate more memory to flash in Windows XP...I've right clicked on the MX icon, but the memory tab does not show up. How am I supposed to add more memory to MX...I'm used to using Macs, and this problem was easily resolved w/ the 'Get Info' command
Please advise...thanks
I'm Sure I'm Missing Something...
I'm also sure that I've looked everywhere on this site and I still can't find the answer...
I'm a designer and in my flash only website, I'd like to showcase the best of my work. I want to have each of my pieces scroll through the frame as you rollover a button. I did this without any real trouble- the problem comes in when, all I want to do is make the damn thing go backwards.
How do I make the movie play backwards?
Thank you so much in advance for your help and your time.
What Am I Missing?
Note following code:
on (press) {
fileExists = new LoadVars();
fileExists._parent = this;
fileExists.onLoad = function(success) {
if (!success) {
_root.flags[i] = 1;
setProperty(eval(block), _visible, true);
}
};
file = "tc01nav.swf";
i = 1;
block = "_root.iblockmenu1";
fileExists.load(file);
//play();
}
Okay, what keeps me from calling this for another file? For example:
Placing this code directly before the //play line...
file = "tc02nav.swf";
i = 2;
block = "_root.iblockmenu2";
fileExists.load(file);
Doesn't buy me anything. Actually things get trunced and I get wierd results...
Am I missing something obvious. Don't quite understand this kind of function call. Use to the function(passin) return(passout) variety.
Any guidance, much appreciated...thanks.
What Am I Missing?
I am trying to put a short password entry at the beginning of my FLA.
I have placed an "input text" field on the timeline and made it a password (so only *s will appear as you type). I named it "password".
Next I created a button for the user to click after they have entered their password. The idea is that when the user clicks the button, the action script will look to see if it matches a pre-determined password and if so, move them forward. If not, it should display a message in a different dynamic text field named "value".
Here is my code:
on (release){if (_root.password.value eq "Pass"){gotoAndPlay("Start");}else{_root.check.val ue="Incorrect Password. Please try again.";}}
It doesn't work. Suggestions, Ideas, Directions?????
I'm using MX 2004 Pro. and will try to attach the file.
What Am I Missing ?
i have a movie clip that i'm trying to use as a button
which seems fine when i want to go somewhere in the same scene so long as a put _root. infront of the goto command
trouble is i want it to go to another scene and it just wont go i've tried it with and without the _root. bit in and neither way works
hers what i've put in :
onClipEvent (mouseDown) {
gotoAndPlay("quality", 1);
}
what am i missing ?
Hmm... I Am Missing Something...
Well, I just started Flash a week ago and I learned how to create a button, but I do not know how to use the button as a link. It is just a button that can be clicked right now. I would like to make it link to another page on my site. How do I go about this? As well, how do I use the Hit frame? What is the action and all?
P.S. I would also like to know how to make the button stay a certain color after clicked signifying that you are viewing that page. Furthermore, how can I have my flash image have a transparent bg?
Thanks in advanced.
What Is Missing?
Okay.....I followed the tutorial from here on how to make a spaceship move. When I went to try and add firing to it, it won't work. What is wrong with this code?
THIS IS FOR THE SPACESHIP
code:
onClipEvent(load){
moveSpeed=10;
_root.laser._visible=false;
laserCounter++;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.CONTROL)) {
laserCounter++;
_root.laser.duplicateMovieClip( "laser"+laserCounter, laserCounter );
_root["laser"+laserCounter]._visible=true;
}
if (Key.isDown(Key.RIGHT)) {
this._x+=moveSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._x-=moveSpeed;
}
if (Key.isDown(Key.DOWN)) {
this._y+=moveSpeed;
} else if (Key.isDown(Key.UP)) {
this._y-=moveSpeed;
}
}
THIS IS FOR THE LASER
code:
onClipEvent (load) {
laserMoveSpeed=20;
this._y=_root.spaceship._y;
this._x=_root.spaceship._x+80;
}
onClipEvent (enterFrame) {
this._x+=laserMoveSpeed;
if (this._x>600){
this.removeMovieClip();
}
}
Thanks for all the help!
What Am I Missing?
ARG, this should work? What the heck am I overlooking??
Code:
function createLink() {
var Message:String = "Click Here: <a href=http://Apple.com>Apple.com</a>";
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "Monaco";
my_fmt.size = 10;
my_fmt.color = 0x000000;
//
this.createTextField("Message_txt", 999, 12, 13, 319, 319);
Message_txt.embedFonts = true;
Message_txt.antiAliasType = "normal";
Message_txt.gridFitType = "pixel";
Message_txt.sharpness = 400;
Message_txt.html = true;
Message_txt.selectable = true;
Message_txt.wordWrap = true;
Message_txt.multiline = true;
Message_txt.border = true;
Message_txt.setNewTextFormat(my_fmt);
Message_txt.htmlText = Message;
}
onMouseDown = createLink;
thnx
Ok, What Am I Missing?
This is on a key frame, main time line and when the "up_bn" button is release I want my mc "EZ_vessals" to increased by 25. What do I need to add to this script to make it work? Thanks!
up_bn.onRelease = function(){
EZ_vessals._xscale = EZ_vessals._xscale +25;
EZ_vessals._yscale = EZ_vessals._yscale +25;
}
Am I Missing Something?
I had finished writing the following code for a movieclip to follow the mouse.
code:
onClipEvent(load) {
this._y = ypos;
this._x = xpos;
}
onClipEvent (enterFrame) {
if (Boolean(follow)) {
ypos = _root._ymouse;
xpos = _root._xmouse;
this._y += (ypos-this._y)/7;
this._x += (xpos-this._x)/7;
}
_root.follow=true;
}
The movieclip is in the root timeline. so when I want it to stop it from following the mouse, i presumed the I would have to enter _root.follow = false;
But nothing happens when the false command is executed. any suggestions?
thanks in advance
What Am I Missing Here?
Having problems with this FLA file:
Problem File
I thought what I was trying to do was simple but I struggle with Flash to be frank. Simply put, I want the user to rollover the '01' in the top left corner which will subsequently play the 01_Movie on the right.
Can anybody point me in the right direction here?
Thanks in advance.
What Am I Missing Here?
var request:URLRequest = new URLRequest();
function postdata(event:MouseEvent):void {
request.data=txt1.text;
request.url="process.php";
request.method=URLRequestMethod.GET;
trace(txt1.text);
}
trace result shows what ever you type in the text field but the data never goes through php any ideas??
I Must Be Missing Something? Help
Ok so I am a newbie and have cobbled together some code to import xml and use it to lay out information and it amazingly was working. I decided to make the Function named "bigaction" out of a section and now I get the error:
Error #1010: A term is undefined and has no properties.
....and my while loop goes round once.
if I comment out the line below, the rest works:
this[thumbcounter].text=myXML.productname[i];
I think I must be missing something and its probably an easy fix. Please Help. Any ideas appreciated. Thanks in advance.
-----------------------
Here is the full code:
// BASIC MENU DISPLAY
stop ();
var productfamily:String="hello.xml";
family1.addEventListener (MouseEvent.CLICK, buttonClick_1);
family2.addEventListener (MouseEvent.CLICK, buttonClick_2);
family3.addEventListener (MouseEvent.CLICK, buttonClick_3);
trace(productfamily);
//************************************************** ******
// Button functions
function buttonClick_1 (myevent:MouseEvent):void{
//productfamily="fam1.xml";
bigaction("fam1.xml",0);
}
function buttonClick_2 (myevent:MouseEvent):void{
//productfamily="fam2.xml";
bigaction("fam2.xml",0);
}
function buttonClick_3 (myevent:MouseEvent):void{
//productfamily="fam3.xml";
bigaction("fam3.xml",0);
}
//************************************************** *********************
// big function to bring in XML and lay it out
function bigaction(productfamily:String,i:int) {
//************************************************** ******************
//load data from XML document
var myURLLoader:URLLoader = new URLLoader();
var myURLRequest:URLRequest = new URLRequest(productfamily);
myURLLoader.load(myURLRequest);
myURLLoader.addEventListener(Event.COMPLETE, dataOK);
function dataOK(myevent:Event):void {
var myXML:XML=new XML(myURLLoader.data);
//put XML data into familyone array
var productcount = myXML.productcount[0];
var pc:int = productcount; // internal product count from xml data
// XML is now loaded
// display stuff*******************************************
//Display Family Title
family_title.text = myXML.familyname[0];
//This lays out thumbnails
//var i=0;
var zzz:int;
var thumbcounter:String;
var thumbx:Array = new Array();
thumbx[0] = 820;
thumbx[1] = 931;
thumbx[2] = 820;
thumbx[3] = 931;
thumbx[4] = 820;
thumbx[5] = 931;
thumbx[6] = 820;
thumbx[7] = 931;
thumbx[8] = 820;
thumbx[9] = 931;
var thumby:Array = new Array();
thumby[0] = 25;
thumby[1] = 25;
thumby[2] = 125;
thumby[3] = 125;
thumby[4] = 225;
thumby[5] = 225;
thumby[6] = 325;
thumby[7] = 325;
thumby[8] = 425;
thumby[9] = 425;
while (i<(pc)) {
zzz = i;
zzz.toString();
trace(zzz);
thumbcounter =("thumbtext_"+zzz);
trace(thumbcounter);
trace (myXML.productname[i]);
//PROBLEM LINE BELOW
this[thumbcounter].text=myXML.productname[i];
// load and position thumbnail images
var myrequest:URLRequest=new URLRequest (myXML.productthumbimage[i]);
var myloader:Loader=new Loader();
myloader.load(myrequest);
addChild(myloader);
myloader.x=thumbx[i];
myloader.y=thumby[i];
trace(thumbx[i]);
trace(thumby[i]);
trace(i);
trace(pc);
i+=1;
}
}
}
stop ();
What's Missing Here?
OK...so a friend of mine is trying to put a slideshow I made for him on to their website, here:
http://www.covenantnaples.com
notice how it just sits and says "loading..." which means that the movie has initialized, but it's just not loading the pictures...
HOWEVER, if I navigate directly to the swf file here:
http://www.covenantnaples.com/slides...eSlideshow.swf
it works just fine.
Anyone know why this could be? How can it work in one spot and not in the other, when technically, they're both the same spot as far the the source file is concerned?
SWF Is Missing In IE When Used Under Dd Tag
Here is the link;
http://www.creamediadesign.org/new_site/reviews_on_tv.html
When you click on video a small window opens with an embedded flash in it, but I can not see the swf movie at all in IE...
Any suggestions?[
Edited: 01/25/2007 at 05:17:12 AM by Blanktruth
What Am I Missing Here?
Hey guys, im just messing around with creating dynamic TextFields, but i cant get this to work.
I know it's something simple im missing here, but i cant figure it out.
This works if i create the Text fields on stage, but if i try to create them at runtime it doesnt work.
Attach Code
this.createTextField("mouse_y",this,10,20);
this.createTextField("mouse_x",this,10,40);
this.createTextField("mouse_actions",this,10,50);
/*
trace("y= "+mouse_y);
trace("x= "+mouse_x);
trace("actions= "+mouse_actions);
*/
onEnterFrame = function(){
mouse_y.text="y_pos: "+this._ymouse;
mouse_x.text="x_pos: "+this._xmouse;
this.onMouseDown = function(){
mouse_actions.text="You have just pressed your mouse button";
}
this.onMouseUp = function(){
mouse_actions.text="";
}
}
I've Got To Be Missing Something
I'm new to flash and just trying to make a url link. followed instructions and I keep getting an error" '{' expected " in line 5. It's there!!! It seems right to me. Am I missing something. it seems simple.
1.var link:URLRequest = new URLRequest("
Missing .fla On A Tut.
Hej,
I wanted to try (http://www.kirupa.com/developer/flash5/slidingmenu.asp) this tututial, but i don't really get it. I have to say that I am not an good flash designer, I am still leariningit.
Maybe it's just me, but shouldn't I be able to download the .fla? It is explained like I should have it allreaddy.
Thnx,
Paul
SSL Missing Something
Am I missing something here? When I have a page secured with an SSL certificate everything works just fine unless I have a .swf on the page. Then I get "This page contains both secure and nonsecure items. Do you want to display the nonsecure items?" If I click no, everything shows up right so I figure it must be the links to Macromedia.... Here is the code I have in the page:
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0"
width="140" height="180">
<param name="movie" value="../images/Employers.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFFFFF">
<embed src="../images/Employers.swf"
quality="high" bgcolor="#FFFFFF" swLiveConnect="true"
width="140" height="180"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object>
Am I Missing Something?
ActionScript Code:
class test extends MovieClip {private var butnPath;function test() {butnPath = this.cool_button}}
I assign this custom class to a MC containing a button with a instance name 'cool_button'.
This code gives a me a compile error of 'variable cool_button not defined', what i am trying to do is reference something that is in the MC itself. The only solution i have found is to name the var the same as the instance name you are trying to reference.
Missing AS
okay...I have read the percentage load tuts but nothing really helps my with this. I have a radial loader, like a pie chart. As the bytes are being loaded the pie gets larger and the percentage is noted below. The only thing is that I am missing some AS that calculates the "pie" based on one hundred frames...please help!
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar = getPercent*100;
this.loadText = "loaded "+Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
gotoAndStop("Scene 2", 1);
}
What Am I Missing?
ok, I'm making a text box on the stage so I can dynamically load some text. I want to have some html in it so I go to hit the "render text as html" button (looks like this <> ) but I can't see it?
I'm using Flash MX Pro.
Anyone know where it is?
[F8] Missing Something In As
Hi, I'm testing a dice roll and it seems to not work anymore (after I added 4 dice). any suggestions?
ActionScript Code:
var numspin = 0;var stopnum = 0; var finalrot = Math.ceil(Math.random() *30);var dice = new Array(); dice = ["dice1","dice2","dice3","dice4"];var die = new Array(); die = ["die1","die2","die3","die4"];function diceRoll(){ if (numspin == 0) { dice = stopnum; //_root. die.gotoAndStop(stopnum); if (stopnum != "X") { die._rotation = finalrot; } } else { numspin--; dice = Math.ceil(Math.random()*6); die.gotoAndStop(Math.ceil(Math.random()*6)); die._rotation = Math.ceil(Math.random() * 45); }}
on the roll button
ActionScript Code:
on (release) { diceRoll();}
each dice instance is : die1 - 4
and there are 4 dynamic txt boxes : dice1 - 4
I can post an fla
What Am I Missing?
Very simplified example of my problem:
in FLA:
Code:
#include "exfile.as"
var thenumber:Number = 52;
thenumber.helloWorld();
in exfile.as:
Code:
Number.prototype.helloWorld = function() {
trace("haha!");
};
I know it gets included, tried traces. This gives me "no method with the name .. etc" I know its very simplified, but where is the problem?
Is This Bug Or Am I Missing Something?
I've tried two different equations for moving bullets. They both seem to work exactly the same way. They both have the same problem.
shooting at 45 degree increments. every one looks perfect except 310 and 135. They both slip in x. I can do -135 and it works, but those two directions slip. Also angles in that whole 90 degree cone are messed up.
Any idea what would cause that? Is it a bug? Help please!
The bullet should move the bottom left corner of the stage, but it slips in x to the left as it moves.
Code:
var dx:Number ;
var dy:Number;
var rot:Number = 135;
var speed:Number = 30;
var lastTime:Number;
function Bullet() {
test.x = 200;
test.y = 200;
test.rotation = rot;
// get speed
dx = speed*Math.cos(rot*Math.PI / 180)
dy = speed*Math.sin(rot*Math.PI / 180)
// set up animation
lastTime = getTimer();
addEventListener(Event.ENTER_FRAME,moveBullet);
}
function moveBullet(event:Event) {
// get time passed
var timePassed:int = getTimer()-lastTime;
lastTime += timePassed;
// move bullet
test.x += dx*timePassed/1000;
test.y += dy*timePassed/1000;
}
Bullet();
What Am I Missing?
Hi, could someone please explain me why this listener does not work for the following function - I guess there is something I do not understand about listeners - how do you listen to a function to know when it has been completed? It works properly if I call the login() function from the end of the applyNumbers function.
Code:
var numbersLoader = applyNumbers(deck[i].name,i);
numbersLoader.addEventListener(Event.COMPLETE, login);
function applyNumbers(vary,i) {
if (vary == cardNumber[1]) {
fstNum = theDeck.symbol[i];
}
if (vary == cardNumber[2]) {
sndNum = theDeck.symbol[i];
}
if (vary == cardNumber[3]) {
thdNum = theDeck.symbol[i];
}
if (vary == cardNumber[4]) {
fothNum = theDeck.symbol[i];
}
if (vary == cardNumber[5]) {
fthNum = theDeck.symbol[i];
}
if (vary == cardNumber[6]) {
sixNum = theDeck.symbol[i];
}
if (vary == cardNumber[7]) {
seventhNum = theDeck.symbol[i];
}
}
function login(e:Event):void {
// THIS DOESN'T LOAD
}
Thanks!
|