Button Under Loaded .swf Still Works?
http://www.epicmodelmanagement.com/
click any model and then click the pics on the profile (towards the right).
they are NOT supposed to be buttons or clickable. What is happening is that the thumnails from the right panel are STILL functioning THROUGH the profile pages.
How do I stop it from being clickable through the new .swf that is loaded? thanks
FlashKit > Flash Help > Flash General Help
Posted on: 08-12-2005, 08:46 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Play In Reverse Button In Swf File No Longer Works Once Loaded Into The Master Swf
- [CS3] Swf Works On Its Own But Not When Loaded Into Another Swf
- SharedObject With Loaded Txt: It Works, But Only Once?
- Why Loaded Swf Into Movie Clip Never Works?
- Actionscript Of Loaded Movie Does Not Works
- Loader Script Only Works After 60% Loaded
- [F8] Externally Loaded Text Works 99% Right
- StageDisplayState Fullscreen Works.. Loaded Swf's Don't
- [F8] Reading Loaded Variables, One Way Works And One Does Not.
- A Preloader That Works For All Swfs Loaded
- Loaded PHP Image Works On Windows But Not Mac
- Movie Not Loaded In MSIE (works Fine In FF...)
- [MX04] SWF Works Fine Until Dynamically Loaded?
- Sounds In A .swf: Works When Run Alone, But Doesn't When Loaded Externally
- Preloader Bar Works Perfectly, But Not If Swf Is Externally Loaded
- Dynamic Reposition Of Loaded Swf Half Way Works Some Help Please
- Calling AttachMovie() With A Loaded SWF Sometimes Works, Sometimes Fails...
- Dynamically Loaded Text WORKS But HTML?
- SetMask Works When Exported But Won't Work When Loaded Into
- Loaded Txt File Works On Local But Not On Remote
- Draggable Window .swf Not Working When Loaded In A MC & Loadmovie; Works Otherwise?
- Html Text Works But Not When Swf Is Loaded Into Main Movie
- SetMask Works When Exported But Won't Work When Loaded Into Another Clip
- Array Writen In Flash Or Php Loaded (they're Equal But First Works And Second Don't)
- On Stage Pressin Button..works, Test Movie, Press Button Dosent Work
- Target Prob? LoadVariables Works When Testing Each Swf, But Not When Loaded In Main?
- Http Interface Loaded Into XML Class Fails On Web (but Works In Flash IDE)
- Externally Loaded Sound Works On Local Machine, But Not Online.
- Multiple Externally Loaded Txt Files - Works Offline But Not Online ?
- Button Script On Timeline Works Only When Button In Same Frame
- Paypal Button Code Works Fine For One Button But Not Another
- Same Command With A Button Works But Not With The Other Button - What´s Wrong
- Button Works - Button In MC No Good
- Button Works 1x, Never Again
- Button Never Works
- Button Still Works From Behind MC
- Button Only Works Once?
- Next Button Only Works Once
- Trying To Create FL5.swt Button That Works In DW4
- Button Doesn't Works Well
- My Pause Button Only Works Sometimes.
- Button Works Not In Movie
- Button Only Works When Clicked Twice
- Sometimes My Button Works...other Times
- Code Works On One Button...not Another
- Fading Button Only Works Once
- AttachMovie X Button: Not Works Why?
- Button Only Works If Not Clicked Before
- Tell Target Only Works On Button?
Play In Reverse Button In Swf File No Longer Works Once Loaded Into The Master Swf
Hi
I have a main swf file that loads in 2 other swfs.
The 2 other swfs have on their timelines a movieClipController that
plays their timelines in reverse when a button is clicked.
When I view the 2 swfs on their own everything works as it should, the
timelines play in reverse.
But when I load either of the swfs into the main swf and click on the
button that reverses the timeline nothing happens.
This is the code on each frame of the MC Controller
Frame 1. stop();
Frame 2. _root.prevFrame(); // Frame 2 has the label "base" on the
layer above.
Frame 3. gotoAndPlay("base");
This is the code on the (play in reverse) button
on (release) {
_root.control.gotoAndPlay("base");
}
Can someone please help with this.
Regards Max
[CS3] Swf Works On Its Own But Not When Loaded Into Another Swf
Hi there,
I'm totally confused by a problem I've got. I have one swf (textArticle.swf) that loads in content from an XML file. It all works fine when I test it, everything loads correctly.
However, when I try to load textArticle.swf into the main swf the loading of the XML stalls. The code in textArticle.swf is:
PHP Code:
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.load("textarticle.xml");
xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
numOfItems = nodes.length;
for (var i=0; i<numOfItems; i++)
{
mcLoader.loadClip(nodes[i].attributes.image, theImage);
listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void
{
loader.onEnterFrame = function()
{
this._rotation -= 10;
}
}
listener.onLoadInit = function(target:MovieClip)
{
intro();
}
theTitle = nodes[i].attributes.title;
theImage = nodes[i].attributes.image;
theIntro = nodes[i].attributes.intro;
theBody = nodes[i].attributes.body;
theBlogQuote = nodes[i].attributes.blogquote;
theBlogLink = nodes[i].attributes.bloglink;
}
function intro()
{
delete loader.onEnterFrame;
fadeThis(loader, 0);
fadeThis(blanket, 0);
moveThisY(c, 400, 350);
fadeThis(c, 100);
ac.theTitle = theTitle;
ac.theIntro = theIntro;
ac.theBody = theBody;
}
In the main swf I'm simply creating a container and loading the swf into that using
PHP Code:
container.loadMovie("textArticle.swf");
I've put traces on various parts of the code to see where it stops and it seems that mcLoader.loadClip has a problem. Is this a bug in my code?
Any help would be greatly appreciated.
Cheers
Matt
SharedObject With Loaded Txt: It Works, But Only Once?
Hi guys,
This could probably have been posted in any part of this forum as it's not so much an MX problem I think - but - well, here it comes:
I'm making this vacation website where I want people to select their language (Dutch or English), and depending on the selection they make, a txt file is loaded containing things like texts for buttons, and also two settings that switch buttons on and off. The idea is that when I'm on vacation and visiting an Internet café, the swf's are ready and waiting on my server, and once I have uploaded my pictures, I change a variable in the txt from 0 to 1 and voila, a button appears that says 'pictures' next time visitors log in.
I want Flash to remember what language they selected using SharedObject, and that part works fine too.
So everything works perfectly well when the files are stored locally, I change the txt and the swf changes accordingly - beautiful.
Then I place the whole lot on my domain and view them and - GREAT, everything works. Next thing I do is change the txt file online, I press F5 or even close and re-open the browser, but it has not changed...
So I log on to a different computer and voila, it works perfectly, the file shows exactly as I want it to look.
So it seems as if the old txt is loaded when people return to the website after their first visit. I don't even know if SharedObject is causing the problem.
It all works perfectly well locally, so I think my code is fine.
Any help would be greatly appreciated!
Why Loaded Swf Into Movie Clip Never Works?
I have two major issues.
1. I am trying to load an external .swf into _level3, at 100 on the x-axis and 150 on the y-axis. I try using set property, but the movie is always loading into the 0, 0 location (the upper left-hand corner).
Even though I use the set property action to control the location of the loaded movie, it is not working and I can't figure out why.
Please help.
2. When I load swf into an empty movie clip, the swf never works. It would not play. Actually it only works if there are no action or scripting on the timeline of the swf. Why wouldn't loaded movies play, when loaded into an empty movie clip?
Please help.
Thanks very much.
Actionscript Of Loaded Movie Does Not Works
I am loading a movie in a movie clip,, now the movie which is being loaded is a scroller , but as it is loaded in a movie clip , the actionscript of the scroller stops working,
just see this:-
scroller.swf
Now i load this scroller in a movie clip of other fla
loadMovie ("Ticker.swf", "_root.mymc";
and now when i publish it, an error is given
Target not found: Target="/scrollleft" Base="_level0.mymc"
Loader Script Only Works After 60% Loaded
This is all the code on frame 1. The whole movie is only 50kb but the loader only appears after approx 50% has already loaded. The loader is only a text field and a masked block of colour that scales. Nothing fancy. Why doesn't the loader show straight away?
It is Flash 7, AS2.0
fscommand("showmenu", "false");
stop();
totalSlides = 2;
templateText = ["title_txt", "subtitle_txt", "main_txt", "name_txt", "tel_txt", "mob_txt", "mail_txt"];
previewSlide = 15;
setText = function (name, value) {
this[name] = value;
};
onEnterFrame = function () {
pctLoaded = Math.round(getBytesLoaded()/getBytesTotal()*100);
preloader.mcLoader.percent_txt = pctLoaded;
if (pctLoaded<100) {
if (preloader.mcLoader.mcColour._yscale != pctLoaded) {
preloader.mcLoader.mcColour._yscale += (pctLoaded-preloader.mcLoader.mcColour._yscale)*0.1;
}
} else {
if (preloader._alpha>0) {
preloader._alpha -= 10;
} else {
delete onEnterFrame;
}
}
};
[F8] Externally Loaded Text Works 99% Right
I'm having a small, annoying issue with an externally loaded text file into a dynamic text field. Basically, these symbols don't work:
&
”
’
What's the problem with these? Is there a way to get around this issue? I've tried character embedding, but that doesn't change
StageDisplayState Fullscreen Works.. Loaded Swf's Don't
Can anyone help me with this problem? I have a movie that I make fullscreen with a button. There are loaded components in this movie, the most important being other .swf's. The problem is when I click the button the stage goes full screen just fine, everything else stays where it is at.
I have the following code to make full screen:
Code:
var fullScreen:MovieClip = _root.attachMovie("fullscreen1", "fullScreen", 20015, {_x:75, _y:200});
fullScreen.onRelease = function() {
trace("I am being pressed");
if(Stage.displayState == "fullScreen"){
Stage.displayState = "normal";
}
else{
Stage.displayState = "fullScreen"
}
}
the first line brings my fullScreen toggle button on stage, the rest tells the movie to go full screen on press, or revert from full screen. This all works fine, but like I said the loaded movies in this one stay the same size.
How can I get the other components and swf's to go full screen as well?
[F8] Reading Loaded Variables, One Way Works And One Does Not.
I'm reading variables from a text file and when I make a specific call it works. Like this...
Code:
getURL(my_lv.image1link, "_blank");
But when I try to do the same thing from within a FOR loop, I get undefined.
Code:
getURL(my_lv["image"+i+"link"], "_blank");
//takes me to undefined
Please help. Thanks!
A Preloader That Works For All Swfs Loaded
I'm trying to make a preloader that works for every swf loaded in my site so I put this on my master.swf :
var MCL:MovieClipLoader = new MovieClipLoader();
var Listener:Object = new Object();
MCL.addListener(Listener);
Listener.onLoadProgress = function(target_mc:MovieClip, loadedBytes:Number, totalBytes:Number) {
_level0._visible = true;
var preloadPercent:Number = Math.round((loadedBytes / totalBytes) * 100);
_level0.preloader.gotoAndStop(preloadPercent);
}
Listener.onLoadComplete = function(target_mc:MovieClip) {
_level0._visible = false;
}
Listener.onLoadInit = function(target_mc:MovieClip) {
target_mc._x = 0;
target_mc._y = 0;
}
MCL.loadClip("first.swf", 10);
but it only worked for the first.swf I want to work with all swfs what should I do ?
Loaded PHP Image Works On Windows But Not Mac
I have a php file that generates a string image, the php file changesheaders to jpeg and it becomes a image. In my code im loading the .php file into a mc. In all windows browsers its showing image correctly, but in Mac its coming up red.
If you view the php file it self it will display the image correctly.. could it be a php.ini problem?
Edited: 07/10/2008 at 07:11:37 AM by MikeM2
Movie Not Loaded In MSIE (works Fine In FF...)
Stupid MS-Interweb Exporer, ruining my life =(
I have been enlisted by some friends to do the flash for thier website which is fine and i have just finshed tinkering with the menu and stuff.
www.thefieldofchampions.com/menu.htm is the object in question. Its a fiarly simple menu, it loads the contents of its links from an external XML file so that people can add/edit links without havin to fiddle with the flash source.
Loads and operates fine in FireFox however MS-IE it refuses to load. Anywhere. Local, from the server -at home, college, work etc. all I get is a nice big white area which when right clicked on returns "Movie Not Loaded" in the context menu.
What am i doing wrong, i cant think what it can be and its kinda starting to hack me of now =
Any advice on this one greatly appreciated
Thanks
AJ
[MX04] SWF Works Fine Until Dynamically Loaded?
Hello
I have created a quiz page that works fine when viewed in its own .swf but it appears to have problems when I dynamically load it into a separate swf as a movie clip. The particular Action scripting I am having a problem with is this:
on (release) {gotoAndPlay(36);
_root.NewQuiz.B.gotoAndStop(36);
_root.NewQuiz.D.gotoAndStop(36);
_root.NewQuiz.C.gotoAndStop(36);
_root.NewQuiz.B.incorrectB._visible = false;
_root.NewQuiz.D.incorrectD._visible = false;
_root.NewQuiz.C.incorrectC._visible = false;
}
The black text works fine in both the regular swf and once it is dynamically loaded but the red text seems to be completely ignored.
I think the problem have something to do that the quiz lies within a movieclip within the .swf and it is somehow conflicting with the how the page is dynamically pulled into the other page, but I am clueless as to why.
Can anyone help?
Sounds In A .swf: Works When Run Alone, But Doesn't When Loaded Externally
Hello there.
I have a site which has a main "index.swf" file. I have it set so that a little sound is played when the user moves the mouse cursor over a button. The sounds are NOT loaded externally, but imported to the library and, thus, included in the .swf file. I use this code in the main timeline:
Code:
sound_rollover = new Sound();
sound_rollover.attachSound("rollover");
where 'rollover' is the linkage name given to the sound in the library.
Then, in the buttons:
Code:
on (rollover) {
_parent.sound_rollover.start();
}
The buttons are dropped right in the main timeline, so everything works flawlessly when I run that .swf, and also when I run the index.html which will load the index.swf into it.
However, I recently decided to make a preloader for the main index.swf, as it was getting too big for various reasons.
So I made a little "preloader.swf" which uses a MovieClipLoader.loadClip(...) function to preload the index.swf file.
Please note I DID add the line
Code:
this._lockroot = true;
at the beginning of the first frame of "index.swf". Otherwise, many things wouldn't work.
To my surprise, everything works as it should except... SOUNDS! Now, sounds do NOT play at all! The "on (rollOver)" and "on (release)" functions are being executed perfectly (they do more stuff that I've omitted to make this shorter), so I believe it's not a hierarchy problem as "._lockroot" seems to be working well.
But for some reason, sounds just not play at all.
Could you please give me a hand on this? I've tried several things but nothing seems to fix it?
Thanks in advance.
Preloader Bar Works Perfectly, But Not If Swf Is Externally Loaded
Hi Guys, (using flash 8 professional)
I am at my wits end with this one.
I am no expert in flash but a year or so ago i managed to create a preloader bar which i pretty much use all the time now.
For our companies latest site however i changed the navigation structure to use shell navigation. (basically i have a master index menu that loads in all the sub pages)
Unfortunately the preloader bar no longer works but the percentage and data values update perfectly.
Is there any way i can modify it to work properly.
I have attached the fla file.
The coding on bar is shown below
To see the problem go to www.omega-completion.com (its the intro 3d tools spin round movie that has the problem)
Alternatively open homeflashkit.fla as this is the file the movie loads into
Thanks J
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextScene();
}
frame = int(loadedbytes/(totalbytes/100));
loader.gotoAndStop(_root.frame);
Dynamic Reposition Of Loaded Swf Half Way Works Some Help Please
Like I said... this half way works but, it should work completely!
My attempt is to load a 680 x 480 swf into a 800 x 600 main movie and center it on the stage. The _x position is right but for some reason the _y position will not center. Any thoughts?
Here's the code:
ActionScript Code:
//create empty mc centered on stage
this.createEmptyMovieClip("container", 1);
this.container._x = Stage.width/2;
this.container._y = Stage.height/2;
//load movie into empty mc
loadMovie("movie.swf", "container");
//position container of loaded swf center stage
this.onEnterFrame = function() {
if (this.container._width>0) {
delete this.onEnterFrame;
this.container._x -= this.container._width/2;
this.container._y -= this.container._height/2;
}
};
Thanks in advance for any help!
Calling AttachMovie() With A Loaded SWF Sometimes Works, Sometimes Fails...
Hello all,
I could really use some fresh perspectives on a problem I'm facing. In a fairly complex app, I'm loading graphics and displaying them at various points. The graphics start life as individual SWF files, and are packaged into into the library of a 'media-pak' (A 10x10 SWF). Then when it's time to display the graphic, we jump through a whole bunch of hoops to display the graphic. This is all neccesary because the customer's location can tolerate a few large HTTP requests better than many small ones.
I use attachMovie() to pluck the graphic from the loaded media-pak. I know you can't cross SWF boundaries with attachMovie, so the graphic is displayed in a new empty movie clip within the loaded media-pak.
The problem is that for some graphics, attachMovie() silently fails. And for the life of me, I can't find anything different about the failing graphic. I've created a minimal failing test case and attached it along with the media-pak sources. Examine and publish test-media-pak.fla, and you'll see that it should display a graphic of glue, coins, and a drill. But the coins always fails!
Any ideas?
Thanks,
Clinton
Dynamically Loaded Text WORKS But HTML?
ok I followed the tutorial on dynamically loading text with a scroller. It works fine. The thing is it can't detect my html codes in the txt file.
I end up getting this
messed up crap
The fla file is here
here
I even checked "RENDERED text as html"
--'
SetMask Works When Exported But Won't Work When Loaded Into
another clip
Hi
I have created a gradient mask and used the following code to mask an image.
scenery.cacheAsBitmap = true;
masker.cacheAsBitmap = true;
scenery.setMask("masker");
It all works fine when exported but when I load this clip into my main movie the setMask is disabled. I've scoured the internet but can't find anyone with the same problem which I find strange.
Hope someone can help or I'm up the creek without a paddle.
Loaded Txt File Works On Local But Not On Remote
I was wondering if anyone has experienced the same problem?
I have a txt file that loads data into my flash scene and it works fine on my desktop but refuses to work on a server (MS Windows Server 2003). Does anyone know why this would happen. It doesn't make any sense to me!
Draggable Window .swf Not Working When Loaded In A MC & Loadmovie; Works Otherwise?
I have a working draggable.swf. It drags fine and the 'X' closes the window.
As soon as I load it inside a blank MC (main_videholder), it displays, but won't drag nor close with the 'X' code.
on(release) {
loadMovie("draggable.swf","main_videoholder");
}
Any ideas would be GREAT cause I am el STUCKO!!
fitchic77
-----------------------------
Girl Programmers are WAY COOL
-----------------------------
Html Text Works But Not When Swf Is Loaded Into Main Movie
hi
i have the following code to load some text as html:
var my_lv = new LoadVars();
my_lv.onLoad = function() {
scrollWindow.html = true;
scrollWindow.htmlText = this.profile;
//where profile is the txt document variable name: &profile=blah,blah,blah...&
};
my_lv.load("profile.txt");
it works fine except when loaded into the main movie.
any ideas why this isn't working are gratefully received, thanks...
SetMask Works When Exported But Won't Work When Loaded Into Another Clip
Hi
I have created a gradient mask and used the following code to mask an image.
scenery.cacheAsBitmap = true;
masker.cacheAsBitmap = true;
scenery.setMask("masker");
It all works fine when exported but when I load this clip into my main movie the setMask is disabled. I've scoured the internet but can't find anyone with the same problem which I find strange.
Hope someone can help or I'm up the creek without a paddle.
Array Writen In Flash Or Php Loaded (they're Equal But First Works And Second Don't)
Hello,
I must be crazy, because I can't see any diference between an array diractly writen in actionScript and another one loaded from php to do the same (create empty textfields and add array items to each one)
can someone explain this to me?
in as:
var array_de_familias:Array = new Array("Collection", "Top 10", "News", "Info", "Staff", "Goddies", "Contacts");
loaded from php
familias = unescape(gerarFamilias.vars);
familias.sort();
familias.splice(0,1);
var array_de_familias:Array = new Array(familias);
php output:
vars="Collection", "Top 10", "News", "Info", "Staff", "Goddies", "Contacts",
Thanks,
On Stage Pressin Button..works, Test Movie, Press Button Dosent Work
i really need some help on that, it's really annoying me, on the stage i enable simple button and simple frame actions, then i click and it goes to the specified frame, but when i go and test the movie and click on the button, it just sits there, i've tried everything, any ideas?
Http Interface Loaded Into XML Class Fails On Web (but Works In Flash IDE)
Hello All,
I am trying to pull in some random numbers from www.random.org's http interface as shown here:
code:
var my_lv:XML = new XML();
var randomNumbers:Array = null;
my_lv.onLoad = function(success:Boolean) {
if (success) {
trace(unescape(this.toString())); // this prints out the 10 random numbers
_root.randomNumbers = this.toString().split("
");
} else {
trace("Error loading/parsing LoadVars.");
}
};
// load the 10 random numbers as specified here
my_lv.load("http://www.random.org/integers/?num=10&min=1&max=6&col=1&base=10&format=plain&rnd =new");
The problem is that, while this succeeds when "testing movie" from the flash IDE, it fails when the flash movie is accessed by users on the server. I thought this might be a sandbox security issue, so I whitelisted the www.random.org domain in my crossdomain.xml file, but it still doesn't work.
The relevant live doc is here: http://livedocs.adobe.com/flash/9.0/...=00002333.html
it says things like:
--------
Parameters
url:String - A string that represents the URL where the XML document to be loaded is located. If the SWF file that issues this call is running in a web browser, url must be in the same domain as the SWF file.
------------
I also came across the following paragraph on the net:
----
TIP: IMPORTANT!!! You can only load XML files if they reside on the same network as the Flash Movie. This means you can not link to an external XML feed such as a RSS Newsfeed (you may have heard of them being called blogs). There is a way around this. Either through Flash Remoting or through a Server Side Scripting Technology such as Microsoft's ASP/.NET, Java Server Pages, ColdFusion or PHP. These tools can be used to connect to external XML feeds which can then pass the content onto your Flash movie.
-----
I also tried System.security.allowDomain("www.random.org") which didn't work.
In the flash IDE the load.success evaluates as "true" and load.status evaluates as "0"
On the web load.success evaluates as "false" but the load.status strangely evaluates as "0" also
Anyone have any ideas? Thank you.
Externally Loaded Sound Works On Local Machine, But Not Online.
I'm using loadSound to load in external MP3 files and they load and sound great on the local machine but don't work when I upload the files to the web. I'm pretty stumped. The MP3 files are only like 10k and 60k so it can't be a size issue (I'm on a T1 line here at work too).
Here is the site:
http://www.littlefenris.com/v2/
Basically when you walk close to the fire you should hear the fire crackling and it will get louder as you get even closer. Everything works on my PC, just not online.
Any ideas what the issue could be?
Here's the AS code for the fire:
ActionScript Code:
var campFireSFX:Sound = new Sound();//CAMPFIRE SOUND_root.campFireSound_mc.onEnterFrame = function() { fireXDist = Math.round(this._x-fenris_mc._x); fireYDist = Math.round(this._y-fenris_mc._y); campFireDistance = Math.round(Math.sqrt((fireXDist*fireXDist)+(fireYDist*fireYDist))); if (campFireDistance<200) { if (breakIt != true) { campFireSFX.start(0, 9999); breakIt = true; } } else { breakIt = false; campFireSFX.stop(); } campFireSFX.setVolume((maxVolume-campFireDistance)/2);};campFireSFX.loadSound("/sounds/319524_CampFire.mp3");
Multiple Externally Loaded Txt Files - Works Offline But Not Online ?
Hi guys !
Really confused with this one ! - I am loading 2 external text files into my SWF..
I believe that my action script is correct as it works pefect offline..
However as soon as I uploaded it to my webspace, both text boxes have the "undefined" text sitting there..
The problem doesn't exsist when I only have 1 external text file loaded... but more than 1 I get the problem !
Any ideas ?? I'd be really grateful !
//load 1st text file
myData1 = new LoadVars();
myData1.onLoad = function() {
myText_txt1.html=true;
myText_txt1.htmlText = this.content;
};
myData1.load("textfiles/artist_of_the_week_content.txt");
//load 2nd text file
myData2 = new LoadVars();
myData2.onLoad = function() {
myText_txt2.html=true;
myText_txt2.htmlText = this.content2;
var myformat:TextFormat = new TextFormat();
myformat.tabStops = [300];
};
myData2.load("textfiles/artist_of_the_week_heading.txt");
stop();
Paypal Button Code Works Fine For One Button But Not Another
Hey there, I have a paypal btn with this code on it:
on(release){
mylv = new LoadVars();
mylv.cmd = '_s-xclick';
mylv.encrypted = '-----BEGIN PKCS7-----MIIH0QYJKoZIhvcNAQcEoIIHwjCCB74CAQExggEwMIIBLAIBAD CBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYD VQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW 5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2 ==-----END PKCS7-----';
mylv.send('https://www.paypal.com/cgi-bin/webscr', 'POST');
}
(i took a few characters out of the encrypted string--just in case and to shorten the post)
This button works fine.
Now, I need a second button for a different item.
So, I went on to paypal last night and generated a "buy now button" several different times. Copied and pasted the encrypted string where the old one is. When I have the site live and click on the new button it takes me to a paypal pages that says "We were unable to decrypt the certificate id."
Any one have this issue before? And does anyone have any idea of how to correct it?
Thank you in advanced,
hutch
Same Command With A Button Works But Not With The Other Button - What´s Wrong
on (release) {
_root.gotoAndPlay (5);
loadMovieNum ("flash/mmmkt3.swf", 2);
}
Command above works perfectly for a button is inserted into a mc ;
I have a 2nd button inside a mc which is inside another mc
– the path is _root. logomapmc. handshake , 2nd button is inside handshake mc - to perform exactly the same function , on which is issued the very same commands ;
When pressed this 2nd button runs the scene timeline to the frame 5 but the movie does not load ;
What is wrong ?
Button Works - Button In MC No Good
Hi all.
Well here's the problem. I can get my button to pull up scene 2 no problem. But once I put that button in what I think is a dynamic / pull down menu the button becomes useless.
I dont' know if it's just an error in structure (as I'm not specifying root_Sceen# or something... I dont' get it. Is it my structure or is it the actual button or MC ?
Thanks,
Button Works 1x, Never Again
I'm currently attempting to make a flash version of my portfolio. On release of button "X", the movie clip containing "X" artwork and its description appear.
However it only works once. After the first time, when I try to clicking the button again, the movie clip doesn't play? Here's my button's actionscript:
on (release) {
gotoAndPlay (26);
}
Thanks in advance. If there is any more info I can give which would help shed light on my error, please let me know.
Button Never Works
It's like this
1. I make button
2. New layer, symbol, movieclip, drop swf into it. (Drop on stage, plays without button.) Set instance name.
3. I set code for button;
on (release)
{loadMovie(yr_swf_filename,myMovieClip);}
Didn't work.
4. Set this code for button;
on (release)
loadedMC.loadMovie("page1.swf") Didn't work.
5. Changed release to press, on both codes. Didn't work.
Am I doing something wrong? I'm out of ideas and used all the suggestions.
Button Still Works From Behind MC
Its more of an irritation than a problem.
I have these stylish borders around some mc's i load in, and when you mouse over them, they expand.
But, even if one mc is over the other, if you mouse over where the border would be, it still expands.
So how can i get flash to stop working on by buttons when they're covered up by something... without putting another button on top of them.
Button Only Works Once?
relatively new to flash, using pro 8 right now. I created a movie where there are movie clips that contain buttons. using the following actionscript, the button takes me to the frame labeled "Button1"
on (release){
_root.gotoAndStop("Button1");
}
but... it only does it once... after that you can click on it all day and nothing happens. There are stops at the end of the movie clips and the main timeline so only the specific animation I want to loop are looping. I only mention this ebcause I have no clue why the button won't work over and over again. thoughts, suggestons, hatemail?
Next Button Only Works Once
When clicked, the tween works well. but when clicked again nothing happens. why?
if(event.target == btnNext)
{
promoNum = promoNum+1;
if(promoNum >= 19) //must change number 19 with XML var
{
promoNum = 0;
}
trace(promoNum);
moveEnd = -(((this.getChildByName("promotion"+(promoNum))).wi dth)-100);
for(var i:Number = 0; i < 19; i++)
{
xTween = new Tween(this.getChildByName("promotion"+i),"x",None. easeNone,(this.getChildByName("promotion"+i)).x,mo veEnd,1,true);
trace(moveEnd);
}
}
Trying To Create FL5.swt Button That Works In DW4
Great site & forum. Today is my first day with flash, and this is my first week with Dreamweaver. I have flash 5 and have created a button I want to use in a multi-page website. I am swapping out a button I already picked from DW-4 list of flash buttons. I figured out how to send out a .swt file into DW-4 from FL-5 but now I can't add text. It is static, not to mention it has a large background box around it. How do I make it so DW-4 can add text automatically (as it does to the flash buttons in its library)and how do I get rid of the background?
Thanks,
Ed
Button Doesn't Works Well
HI !
Now my problem is the buttons. Always I have to do a double click on the buttons to work well. Otherwise it does the half work.
Why why why???
for example
on (press, release) {
_root.gotoAndStop("prodotti");
}
In this case, often I need do another click on the button to go in the label "prodotti".
on (press, release) {
setProperty ("sostituire", _visible, "true");
loadVariables ("descCB500.txt", modelli);
_root.modelli = descCB500;
loadMovie ("borse.swf", _root.sostituire);
}
In thes case, first I see the photo, then, with another click, the button shows the text.
Why WhyWhy??
Thanks evebody!
My Pause Button Only Works Sometimes.
Hey Flashers.
okay i have a demo
to make the file size smaller in stead of using a long timeline I simply use an MC that makes the timeline pause for an x number of seconds.
code on this blank MC is:
onClipEvent (load) {
waitFor = 6;
// seconds;
timeToGo = getTimer()+waitFor*1000;
_root.stop();
}
onClipEvent (enterFrame) {
if (getTimer()>=timeToGo) {
_root.play();
}
}
Now.. i also have an actual pause button - such that the user could click to pause the demo at any point in time.
This button is inside an MC & has the following code on it
frame 1:
on (press) {
_root.stop();
gotoAndStop (2);
}
frame 2:
on (release) {
_root.gotoAndPlay(_root._currentFrame+1);
gotoAndStop (1);
}
okay.. so when the timeline is on a frame which contains a Wait MC (so my timeline is already on a pause)
my pause button doesn't seem to work
-- so i can't tell it that it should stay stopped
i guess what happens is that the MC overpowers the Pause button.
so any ideas on how i can make it know to pause even if the MC is on stage?
Button Works Not In Movie
My problem: I have a button that works when I test it(has rollin/rollout actions). Saved it as a .fla and .swf
I have been working on this for about 2 days now trying to get it to work in my movie! How would you place it into your movie? Really stupid to this! Step by step would be GREAT!
Button Only Works When Clicked Twice
I created a simple button which works fine in the .fla file. It has a "go to frame 2 and play" action. Whenever I export the file, the button does not work on the first click. It shows the down state fine, but you have to click twice to activate the action.
Please help.
Yes, I'm more or less a beginner.
Sometimes My Button Works...other Times
Hi everyone. I have a site created in Flash. On one of the "back" buttons I've created works only sometimes. (It is a back button to go from one page back to the main menu.) Could the reason be that I need a pre-loader. The page has 4 fairly large .jpgs. The page itself is fairly large(950*1500 pixels).
If the reason is not the fact that I have not yet created the preloader, then what can it be?????? Please help. I am pulling on my own hair and talking to my computer.
Code Works On One Button...not Another
I have a button that sits on all frames of my main stage with this code:
on (release) {
gotoAndStop("sheryl");
_root.audiomc.loadMovie("sheryl.swf");
spectrum.gotoAndPlay("start");
}
This button works perfect.
This exact code works on one button, but doesn't on another. On the second button, the playhead does go to the labeled frame and the "spectrum" MC plays, but the external SWF doesn't load.
I've checked and the empty mc is sitting on all the appropriate frames. Both buttons sit on the main time line.
What could be the reasons behind the code not working on the second button?
Thanks
Fading Button Only Works Once
Hi All!
I have made a button which fades. The desciption of the button (text) fades in and out on mouse over and rollout
I have used tweening and frame labels.
The problem I have is that when i test the movie, it only works once.
I have no clue why!?
Any ideas??
Thanks
Button Only Works If Not Clicked Before
So i have this button, that when clicked a bunch of stuff slides in, typical right? Now the problem is if you click the same button again, it all vanishes and slides back in, which is expected. Now i want that button to only work if it hasnt been clicked, i figured i would have to do something like this:
on (press) {
_root.nogo = 3;
}
on (release) {
if (_root.nogo != 3) {
tellTarget ("/news") {
_root.goto = 25;
play();
}
} else {
stop();
}
}
But it doesn't work. Nogo, is a variable to which each button if clicked assigns a number. Then that same button has the if/else statement to regulate is ability to be clicked. I must have overlooked something though, any help?
Tell Target Only Works On Button?
Trying to apply this simple telltarget function on a frame:
tellTarget ("_root.mc") {
gotoAndPlay(1);
}
The MC containg a simple animation but the player just jump to the first frame and stops there?
Is the tell target only for buttons?
|