URL Links...am I Missing Something?
Ok so I've got a flash button on my site that uses the following code to link to another web page:
PHP Code:
hitspot.onPress = function(){ getURL("/new_site/News.html", "_parent"); }
This works great
However I've tried to recycle that code in another flash file within the same html page and it does not work!?
I know it's nothing to do with the file structure/location and I know the code works in the other swf so am I missing something??? It's buggin the hell out of me!
FlashKit > Flash Help > Flash ActionScript
Posted on: 09-14-2007, 05:41 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Now All That Is Missing Is Tracking Visited Links
Great!
Using a number of suggestions, I have ended up using the following - works exactly how I had wanted so thanks to all! An fla sample of what I ended up using is attached.
so on each button i have placed:
//on the button
on(rollOver) {
this.gotoAndStop('_over');
}
on(rollOut) {
if(_root.selected==this._name) {
this.gotoAndStop('_down');
} else {
this.gotoAndStop('_up');
}
}
on(press) {
this.gotoAndStop('_down');
if(_root.selected != 'none') {
x = eval("_root." + _root.selected);
x.gotoAndStop('_up');
}
}
on(release) {
_parent.targetx = 1697;
_parent.ScriptLatest.gotoAndPlay("move");
_parent.gotoAndStop(1);
_root.selected = this._name;
this.gotoAndStop('_down');
}
and on the 1st frame of the button layer the code:
//at _root level
_root.selected = 'none';
Again, if anyone knows how to add the function of keeping track of visited links, please let me know.
:-)
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?
Adding Email Links And Web Links To My Flash Website
hey all im new to flash and cant work out how to add a email link to my flash website ... also i would like to know how to add a weblink to my site .... sorry if this a real newbie question but i cant seam to find the email link tool or url link tool in adobe flash pro cs3
please help
pic attatched bellow
Graphic Links Or Text Links On Your Index Page?
The search engines recommend text links obviously.
Is anyone here doing ok with Google using graphics links (graphic buttons etc) as opposed to plain clickable text links on their index page?
Just like to see some examples and see for myself the search engine results.
(While you are at it. Is Google listing you ok if you are using the flash detection kit.
I'm wondering if I should maybe just forget the FDK and have a clickable button to macromedia instead.)
cheers.
Problem With Links - All Pages Show All Links
I'm a Flash newbie and having problems with a site I am working on. I could sure use some help if anyone knows what I'm doing wrong.
If you hover your mouse over the pages of my site, you can link to things are on other pages. To see what I'm talking about go to MY SITE
Example...if you are on the "Main" page, hover over the right side of the big townhome. There should not be ANY links on the picture of the townhome, however, there are links to different floor plans that should be on the Floor Plans page...go to that page to see how it's laid out...each tab should have a link to a different floor plan.
Now go to the "Imenities" page. You should only be able to link to a downloadable PDF of the amenities list. But you can link to the floor plans there also...not supposed to happen.
I probably have a lot screwed up here, but sure could use some help. Please don't laugh too much. It actually works pretty good except for the linking.
If needed, you can download my .fla file at Deauxmain.
Any help would be appreciated.
Thanks,
Deauxmain
XML Photo Gallery With Links, Lots Of Links
Need to add links to:
http://www.kirupa.com/developer/mx20...otogallery.htm
Basicly I'm trying to get it to load a url on click of the image and have multiple text fields with links.
Sounds simple enough and probably is for you guys.
Here's what I've got so far.
Danke.
Scroll Images With Links And Text With Links
Im trying to create a page on my flash site(http://www.swytchk.com) so that users are able to download.... I wanted to have text so they can download music,and a image preview of the wallpaper they want to download. But both type of links must be able to scroll.
PLEASE HELP
Disabling Hand Cursor Over Html Links In Textfields Without Disabling Links
ive created a custom cursor using mouse.hide but have been unable to figure a way to stop the hand cursor from showing up when you roll over a link in the htmltext of a textfield.
i've tried disabling mouseEnabled, usehandcursor, and disabling the parent mc's mouseChildren and buttonMode, but none seem to work without disabling the html links themselves.
has anybody experienced the same problem or possibly solved it?
Thanks in advance.
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!
What Am I Missing?
I created a .txt document that opens up in a dynamic text box. I then created an asfunction in my Action Script in frame 1 of my movie:
function jump (framename) {
gotoAndPlay("framename");
}
When someone clicks on one of the links in the dynamic text it is supposed to take them to a frame in the movie. So for example if you click on "Companies" it goes to frame 5, "Industry" frame 10, "Organizations" frame 15.
My .txt document has this for the asfunction:
<p></p><p align="center"><a href="asfunction:jump,Companies"><u><b>Companies</u><b></p><p></p>
<p align="center"><a href="asfunction:jump,Industry"><u><b>Industry</u><b></p><p></p>
<p align="center"><a href="asfunction:jump,Organizations"><u><b>Organiz ations</u><b></p>
This is sort of working. The problem is that no matter what link I click it jumps to the next flag in the timeline so if I clicked first on "Industry" (it should go to frame 10) it jumps to frame 5, and if I kept clicking on the same link it will jump to the next flag so it is just jumping from frame 5 to 10 to 15 etc. What am I missing to make it so that it jumps specifically to the frame for the link?
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.
AS 3.0, What Am I Missing?
I'm pretty new to Flash and AS and I'm having a problem writing some action script. I'm using CS 3 on a mac, and essentially what I'm trying to do is make a button that has a movie clip fade from transparency to full color and ease across the x axis, from right to left. This is what I have so far.
*************************************
import mx.transitions.Tween;
import mx.transitions.easing.*;
var startX:Number = mswp_mov._x;
mswp_mov.mswp_button.enabled = false;
mswp.onRollOver = function () {
new Tween(mswp_mov, "_alpha", Regular.easeOut, 0, 100, 12, false);
new Tween(mswp_mov, "_x", Regular.easeOut, startX, startX10, 12, false);
}
*************************************
mswp is the original button that is moused over to get the movie clip to show.
mswp_mov is the movie clip.
mswp_button is a button within the movie clip.
So, when I export this to test it out, I am being told by flash that the definition cannot be found for mx.transitions.Tween and mx.transitions.easing for both line 1 and 2. This causes further problems, obviously, as the rest of my script can't work without those being referenced properly. I'm sure I'm being a dumbass, but what am I missing?
Am I Missing Something?
When I click a button the below code sends me to the url witha long query string with all my variables.
CODEmyButton.onRelease = function(){
getURL("http://www.domian.com", "_self", "GET");
}
I Am Missing Something
I have tried every way I could try or should I say makes any sense to me.
I created a preloader. I have it running on frame 1 and 2, allright this is where I get confused. Hahahah pretty much starts that way. I stay confused.
ok the preloader I have to loop and when the external .flv movie loads the preloader goes to frame 3. Problem is, it preloads forever and never plays the movie.
Question then. (This is where I guess my dumb logic takes over.)
In order for yjr preloader to detect if the movie is loaded the moveies has to start loading in frame 1... seems logical to me.
But if I call the movie in frame one the whole falsh preload and everything else dissapears and the browser acts as if it is downloading the movie.
ok, so I go back and set frame three as the movie load frame. That lets the preloader work. But how can the preloader detect if anything is loading or not if it hasn't started.... I am so confused. Just call me dumb I guess.
(frame1)
ifFrameLoaded ("end") {
gotoAndPlay ("frame3");
}
(frame2)
gotoAndPlay (1);
(frame2)
//load Movie Behavior
if(this == Number(this)){
loadMovieNum("NowhereMan65.flv",this);
} else {
this.loadMovie("NowhereMan65.flv");
}
//End Behavior
now this is what is loaded by clicking on the behaviors frame + sign, it looks to me like something is missing... I don't know.
thanx for any help.
Am I Missing Something?
I'm having real trouble putting actions on the buttons in the Horizontal menu I downloaded from here. Its the one made by Wireframe and is 11th down in the navigation section of the FLA source files. Any help would be greatly appreciated.
Thanks in advance
AS3 - What Am I Missing
seems pretty straight forward enough, just a couple of buttons, but for some I get the error message
ArgumentError: Error #1063: Argument count mismatch on Work1_fla::MainTimeline/mouseOverUp(). Expected 0, got 1.
on a mouseOver.. whats up with that?
Code:
import caurina.transitions.*;
button_up.alpha = .4;
button_down.alpha = .4;
button_up.addEventListener(MouseEvent.MOUSE_OVER, mouseOverUp)
button_up.addEventListener(MouseEvent.MOUSE_OUT, mouseOutUp)
button_down.addEventListener(MouseEvent.MOUSE_OVER, mouseOverDown)
button_down.addEventListener(MouseEvent.MOUSE_OUT, mouseOutDown)
function mouseOverUp ():void
{
// Tweener.addTween(button_up,{alpha:1,time:1});
trace("hit trace over.up")
}
function mouseOutUp ():void
{
//Tweener.addTween(button_up,{alpha:.4,time:1});
}
function mouseOverDown ():void
{
// Tweener.addTween(button_down,{alpha:1,time:1});
trace("hit trace over.down")
}
function mouseOutDown ():void
{
//Tweener.addTween(button_down,{alpha:.4,time:1});
}
What Am I Missing?
Any ideas why "inv6_mc" is not working and the others are working?
ActionScript Code:
var vertNav1:Fuse = new Fuse
(
[
{ target: main_mc.container_mc, x:-220, seconds:.5, easing:'easeOutCubic'}
]
);
var vertNav2:Fuse = new Fuse
(
[
{ target: main_mc.container_mc, x:-921, seconds:.5, easing:'easeOutCubic'}
]
);
var vertNav3:Fuse = new Fuse
(
[
{ target: main_mc.container_mc, x:-1622, seconds:.5, easing:'easeOutCubic'}
]
);
var vertNav4:Fuse = new Fuse
(
[
{ target: main_mc.container_mc, x:-2323, seconds:.5, easing:'easeOutCubic'}
]
);
var vertNav5:Fuse = new Fuse
(
[
{ target: main_mc.container_mc, x:-3024, seconds:.5, easing:'easeOutCubic'}
]
);
var vertNav6:Fuse = new Fuse
(
[
{ target: main_mc.container_mc, x:-3725, seconds:.5, easing:'easeOutCubic'}
]
);
vertNav_mc.inv_mc.onRelease = function():Void{
vertNav1.start();
};
vertNav_mc.inv2_mc.onRelease = function():Void{
vertNav2.start();
};
vertNav_mc.inv3_mc.onRelease = function():Void{
vertNav3.start();
};
vertNav_mc.inv4_mc.onRelease = function():Void{
vertNav4.start();
};
vertNav_mc.inv5_mc.onRelease = function():Void{
vertNav5.start();
};
vertNav_mc.inv6_mc.onRelease = function():Void{
vertNav6.start();
};
|