ActionScript 2.0 :: GetURL() Doesn't Work Inside Dynamic Mc?
Jan 8, 2004
Still creating the menu I ran into this problem with getURL. I've tried a lot of things, but it still won't go to the URL. Here's my AS code. I marked out where the getURL is.
[AS]
// Create xml-object
menuXml = new XML();
// Ignore tabs, spaces etc.
[Code].....
View 6 Replies
Similar Posts:
Jan 8, 2004
Still creating the menu I ran into this problem with getURL.I've tried a lot of things, but it still won't go to the URL.Here's my AS code.I marked out where the getURL is.
[AS]
// Create xml-object
menuXml = new XML();
[code]......
View 6 Replies
Oct 3, 2005
I'm having a strange problem with getURL. in my flash file, i have two buttons one for an email link and another one for a site link here is the code
[Code]...
when i test it in flash (Ctr+enter) only the button linking to the site works, but the email button doesn't work. And when i preview it in html, only the the email button works, but the site button doesn't work.
View 3 Replies
Oct 16, 2009
I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:
Code:
var i:Number = 0;
var myInt:Number;
var t:MovieClip;[code].....
in the function, but now the trail doesn't resize and the mask still doesn't work.
View 1 Replies
Mar 1, 2011
I have a flash code where i am loading an AS 2 SWF inside AS 3. The thing is if i put the AS 2 SWF on same domain its working fine but if i put AS 2 SWF on different domain it loads the SWF properly but the "stop()" written inside the AS 2 frame doesnt work... and it keeps on playing all the frames continuously...
Here is the loading code..
var context:LoaderContext = new LoaderContext();
if(Security.sandboxType == Security.REMOTE){ context.securityDomain = SecurityDomain.currentDomain };
var objLoader:Loader = new Loader();var mRequest:URLRequest = new URLRequest("SomeURL.swf");objLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, onSWFLoadComplete);objLoader.load(mRequest, context);
[Code]...
View 1 Replies
Jun 13, 2011
How come the following AS3 works fine when placed in Scene 1, but throws multiple "1120 Access of undefined property" errors when the code is placed inside a movie clip? Somehow none of the variables in the code are recognized in the later case.
[Code].....
View 8 Replies
Aug 22, 2005
Check my little piece of code. Everything's going well, until the onEnterFrame. My MC instances aren't doin' anything!
Code:
colors = [0x66FF00, 0x20DFD0, 0xEE1164, 0xDAE31C];
MovieClip.prototype.drawCube = function(_moveY, _amount) {
for (i=0; i<_amount; i++) {
[Code]...
View 11 Replies
Nov 5, 2008
In the first frame of the main time line i have 7 movieclips which are buttons. Within these movieclips there are additional buttons with a simple rollover function to change the background colour.
The problem I'm having is that the action on the buttons doesn't work. I'm guessing this is something to do with the AS i have within the mc.
View 2 Replies
Jun 16, 2011
I have created a swf (exporting) that have action script that adds childs to the stage. When i export the file and see the result it is all ok. But when i use de same file inside a uiloader the action script seems not to work because de childs doenst apeear in the stage.
View 23 Replies
Aug 4, 2011
In fact, when i publish my FLA with player 9, there is no prob. When i publish with selecting player 10, there is this problem.
I paste my code :
var leng:int = MovieClip(root).program.websiteXML.pages.titlePage.length();
trace ("leng"+leng);
setInterval(function () : void {
[Code]....
View 11 Replies
Jul 10, 2008
I made a motion tween that works great on it's own, but won't tween at all inside of a frame. Why not?Here is the code as a function. What's up?:
Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
fadeIn(myMC);
fadeIn = function(mc) {
var myHoriTween:Tween = new Tween (mc,"_x",Back.easeOut,900,0,1.1,true);
}
View 1 Replies
Oct 5, 2008
I still can't figure the way to make my buttons work
[URL]
here is my fla file... Basically I have a rollover buttons inside a movieclip and my action script in the first frame of the scene is the following
_root.designer_mc.b1_01.onPress=function(){
goto("designer01");
}
b1_01 is the instance of the button inside designer_mc movieclip~ however I ealized that buttons won't work in movieclip and i just don't know what's other solution
how to get this fixed~ i m so stuck and I have wasted my past 2 days trying to figure this out and still no result...
View 4 Replies
Sep 19, 2002
Maybe it is a silly question but I have problems when I put a button inside a movie in Flash 5. It doesn't work and I don't know why...
View 3 Replies
Dec 17, 2010
I have a button instanced "howto_weblink_btn" which is located inside a MC instanced "HowTo_maininfo_mc". I would like to write a code allowing me to access this button from the main navigation menu. Here is what I come up with:
HowTo_maininfo_mc.howto_weblink_btn.addEventListener(MouseEvent.CLICK, onClick_openJTV);
function onClick_openJTV(event:MouseEvent) :void {
HowTo_maininfo_mc.navigateToURL(new URLRequest("http://www.ubloom.com/index.php?
[code]......
View 7 Replies
Sep 23, 2009
Atm im putting a a game i build into my main flash app.Everything works fine except the keyboard listener.unny.AFTER a mouse click on the 'loaded' swf the keys 'arrow UP' + 'arrow DOWN' start working.I created already a script that loads the listeners IF they are not loaded yet, but i think thats not the problem. Same situation.After clicking on the movie it starts to work, but apparently the listeners are already applied. All other listeners work besides the keyboard listeners.Stand alone(the game swf running by its own) the game works perfectly!btw the game is importing a main document class.
Code:
this.addEventListener(KeyboardEvent.KEY_DOWN
var keybListenerLoadedUp:Boolean = false;
[code].....
View 3 Replies
Jun 23, 2003
I tried to make a dynamic if, but it just doesn't work...
line = "a == 1"
for (i = 2; i<=5;i++){
line += " || a == " + i;[code]...
View 1 Replies
Apr 11, 2010
i'm loading an external swf files in one but the buttons inside the external files wich controls its timeline doesn't work, i'm using AS3 but why it doesn't work.The external file just has some simple actions to move between keyframes in the timeline with buttons goto and some other similar actions
View 4 Replies
Feb 16, 2012
scrollPane.setSize(400,400);
scrollPane.source=emptyc;
Where emptyc is a container in which I add content dynamically (i.e. by addChild method) doesn't work. It simply doesn't scroll at all.
Neither does work if I add content using scrollPane as a container itself (i.e.:
scrollPane.addChild(myChild);
View 1 Replies
Jan 16, 2006
To load a swf, I tried using the following code
[Code]...
View 2 Replies
Nov 29, 2009
- I put 3 dynamic text field to stage. I selected Verdana both of them and select bold and italic for other 2 field. after that I created a textfield.
.embedFonts = true;
assigned "Verdana" font as TextFormat.
and when I assigned a htmlText to my field like that :"<b>this is bold</b> this is normal". I use Flash CS4, AS3
View 5 Replies
Oct 7, 2004
I was wondering why my current code for calling a setInterval on a function doesn't work inside my class.I have this code inside one function, calling a second function.
intID = setInterval(selfReferential, dupe, 30, 0x000000);
The selfReferential keyword refers to the current class,but was defined previously (selfReferential = this; ).I get no errors, but the dupe() function is never called.and I had the selfReferential variable replaced with the this keyword at one point as well.
View 5 Replies
Sep 6, 2010
I have a character, every body part is a movieclip. Now I wanted to put a movieclip for the eyes inside of the headmovieclip so that I can change them independently from the mouth. So in the eye-movieclip that is inside of the head-movieclip I put two keyframes, one for opened eyes and one for closed eyes. I put it to "Single frame" in properties. Now, whenever I make a pose and I change the frame number under properties so that it displays the closed eyes, it does that for the whole movie, not only on the frames that I changed it.
I wanted to use that to control things like eyes, ears and the mouth individually but like this it won't work, it changes it for the whole animation.
View 16 Replies
Feb 26, 2008
Referring to this link.[URL]..
[Code]...
View 2 Replies
Nov 23, 2011
I've seen similar threads but couldn't find one with the exact same issue. I've a PDF / Word document with arabic copy when I try pasting that text in flash all the joined letters start appearing as individual letters.I've tried the dynamic text box solution in which you create a dynamic text box and assign the text to its variable that doesn't work. But strangely when you write arabic in dynamic text box (with out assigning the text to the variable) and double click to select the text box and its content the text starts appearing fine .. but when published its again all individual letter.
View 1 Replies
Dec 13, 2008
I am trying to make a getURL() that doesn't utilize a button, at a certain frame in the timeline (after a movieclip). I understand that getURL() no longer exists in Actionscript 3 but if anyone can explain to me how to write an action that will allow me to open a URL in its _parent frame after a certain amount of time
without clicking.
View 3 Replies
Feb 27, 2007
i've defined a class and inside that within a function i''m calling the getURL function and passing the variables using the POST method.but while compiling the compiler throws and error of There is no property with the name 'POST'when i try to assign ths "POST" to a string variable and pass that variable to the getURL function i'm getting an error of only "POST" or "GET" method is allowed.
View 8 Replies
Feb 8, 2010
Ok so my swf on my homepage is calling in the main.swf which then has movieclips and coded like this on the Actions layer which I made
button1.onRelease = function (){
_root.button1.getURL("http://scholarscanada.com/wordpress/education/programs/reading-readiness/" "_parent");
}
Here is the site so you guys can see, I believe it has to be something with calling the main.swf into the movieclip because I've never encountered this issue before...If you click on the LEARN MORE for the first image it doesnt go to the page which I ask it for
View 1 Replies
May 2, 2007
I use getURL to trigger new page, it works in flash player 7 (publish setting -> flash player version 7) but not works in flash player 8 (publish setting -> flash player version 8). Here is the code :
[Code]...
View 2 Replies
Oct 7, 2002
I wanted to achieve some basic functionality
loadVariablesNum("http://www.mydomain.com/cgi-bin/myscript.pl?act=NewArticle","0",'POST")
My script myscript.pl is designed to return an appropriate varibale value to load into this flash movie so te remaining logic will work.
Now my problem is this WORKS in standalone flash movie but when I upload the movie to [URL] for example this does not work. I tried to put a relative path to my script, even that does not work. I want to make the movie Flash 5 compatible.
View 1 Replies
Jul 27, 2009
It works fine on a testing domain where the flash and the html file are located in the same folder, however, this flash banner is going to be stores on a subdomain callAs soon as it's put on the live site with the flash located in the images subdomain the link stops working. I don't even get an error message; it just doesn't do anything.We tried changing the code to:
on (release){
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");
[code]......
View 1 Replies