ActionScript 2.0 :: Get URL Function Not Working When Testing In HTML?
Jun 25, 2007
I have a small question : I gave a geturl function to one movie clip to link it to a website. the link works fine when testing the swf in Flash but not when testing in HTML, I tried 2 ways : put the code in my as script and with the behaviors, but it is the same.
here is my code :
link_mc.onRelease = function() {
getURL("http://www.kirupa.com", "_blank");
};
View 4 Replies
Similar Posts:
Feb 2, 2011
I basically need to scale an object up when the user rollsover the button which I have created dynamically already and I need to make sure the object is fully scaled up before I can allow the user to scale it back down again.Ive tried putting 2 tweens (x and yscale) into a function but not sure how to check if the tweens have finished. Im assuming if I check the function is complete it wont take into consideration the tweens may still be running.
View 0 Replies
Jul 13, 2009
When I test the following code inside of Flash, everything works well. When I publish the movie, and see it, I find that one of the functions doesn't work the way it worked (highlighted in the code)....
The code:
Code:
package {
import gs.*;
import gs.easing.*;
[code]....
View 0 Replies
Jul 7, 2011
I'm been working on a script for a while, and am just about finished. It plays a movie onscreen based on where the cursor is, then when the left mouse is clicked, it plays a new movie and then writes a file.
It works when I test the scene withing Flash (the app). However, when I save it off as a .swf, and then open it in Flash player it does not. The mouse cursor is still playing a movie onscreen based on where the cursor is, but the left mouse button won't do anything, nor will it write a file.
Am I supposed to open an Actionscript 3/Air app somewhere else, not the Flash Player? I want to make this standalone, not have to be launched as a test scene inside Flash to work.
View 0 Replies
Jan 14, 2007
Actually I dont know in which section I can put my doubt? My problem is I have a full flash site .The swf file is working properly .But some links are not working while it is testing in internet explorer.It works when testing in Mozilla.The swf is in flash palyer 6. find out what is the problem with internet explorer.
View 10 Replies
Feb 7, 2011
Having done some programming in Groovy, I know you can write test code in the Groovy console. I classify this as true a scripting language as it doesn't force you to have a class definition. So I'd assume with a name like ActionScript with 'script' in it's name that, you can write a series of statements that act linearly, such as a sequence of variables assignments, their manipulation and dumping out a value.
My question is if this is possible, how do you go about doing it, in order to test some code with ActionScript3? Does the code have to exist in a package?Can the code exist on it's own? (If so, what would the name be you'd give to the source file in order to compile it from the command line?
Would you use mxmlc?
Would you use compc?
I've heard about fsch too. How about that?I also read about a command called 'asc' in R.Braunstein's AS3 Bible 2nd ed (P8), but don't even see this in the SDK bin folders.... So what's that all about? Assuming I've managed to compile this name.as file, how do I execute it and see results? Do I have to run it through a browser and the HTML template, or can I execute from a command line?
Do you have to have a class in the source to bypass this? Can the code block be placed outside a dummy class? If so, does it have to exist in a function? Or can it exist on it's own?Does it have to exist in a code blocks, by wrapping them in curly braces?
View 2 Replies
Oct 20, 2010
im creating multiple objects (the number is dynamic)they move randomly, but i want dont want them to be able to pass thru each other.i'm having dificulty on writing the hitTextObject code because I dont know how to refer the other objects.[code]
View 5 Replies
Jan 31, 2011
I've made a basic RSS news feed widget with a preloader. When I test the preloader in Flash it works fine, counting to 100% and bringing in the widget proper at the end. This happens both if I test the movie outright or simulate the download.
But now I've embedded the preloader in an HTML file using swfobject 2.2, and the browser will only display the first frame of the preloader and go no further, ie it 'freezes' at 0%. When I open the actual preloader .swf file, it's the same - it just stops at 0% even though it worked fine previously when
I exported it from its .fla file.Weird thing is, if I bypass the preloader and embed the widget file in my HTML, it works fine. This is for an assignment however, and I need to build a preloader as part of the criteria.All files (ie the widget .fla and .swf, the html and the preloader .fla and .swf) are in the same folder. Someone advised me when I made a bitmap in the preloader into a movie clip to uncheck the "export in frame 1" box, so I did this. It didn't work. Then someone else advised me to make sure the textbox containing the percentage count was a classic textbox with dynamic text. I did, and it's still not working.
[Code]...
View 4 Replies
Aug 6, 2011
Okay so i`ve created a website on flash mx , converted it into html .. uploaded on domain on member.webs.com.. here is the link of file nawazbaig.webs.com/website2.html .. it shows up the blank page . ? it is running perfectly fine on my computer.. but on domain it is not working.. here is the code of html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>[code].....
View 5 Replies
Feb 29, 2012
I have this bit of code for a simple button:
import flash.events.MouseEvent;
import flash.ui.Mouse;
movieClip_1.buttonMode = true;
movieClip_1.useHandCursor = true;
I can see the cursor in flashPlayer, but once I put this in an html doc, I don't see the hand cursor any more.
Do I need to be adding something to the html as well, or is more code needed? For some reason, I thought this used to work... maybe that's just the old school AS2 buttons?
View 3 Replies
Nov 10, 2010
I have created a "scrolling image" made by adding extreem limets to a basic panorama file.The idea is that when the user moves the mose to the left or the right, the image then scrolls that way.Everything works as it is supposed to when previewed in flashplayer and projector. However when i try to add the swf to a HTML or genarate the HTML straight from flash the scrolling function does not work. the buttons and other items work but the scrolling does not. i have tried multiple browsers with the same result.here is a copy of the code (nav1 is the instance name of the movieclip i am scrolling):
Code:
stop();
//stage.displayState = "fullScreen";[code].......
View 0 Replies
Jan 20, 2010
i place 3 dynamic text fields on the stage with embed fonts for regular, bold and Italic side from the font symbols you see I reference in my code.
Code: Select allvar arnoReg:Font = new ArnoReg();
var arnoBold:Font = new ArnoBold();
var arnoItalic:Font = new ArnoItalic();
[Code].....
View 1 Replies
Jan 2, 2009
I'm trying to do a player roster for a sports team. I found on here as a template. However, I'm having a bit of an issue. I want to be able to format the xml using html in the xml file itself...for example I'd like to be able to insert pictures, make text bold, etc. using html tags in my dynamic text field. I enabled the "render as html" button thing. When I put
[Code]...
View 1 Replies
Oct 30, 2009
My HTML tags are not working in a dynamic text box. Im guessing it is cause of the scrolling and maybe it dosn't see <br> so it dosn't allow them. This is the code i am using below.
TextField.prototype.maxviewable = function(){
if(this.maxscroll>1) return this.bottomScroll;
var b = (this.html) ? this.bottomScroll-1 : this.bottomScroll;
if (!this.length) this.text = ">>";
[Code].....
View 1 Replies
Mar 18, 2009
I created a clock with an hour, minutes and seconds hand. The clock movieclip has two frames to it and on the first frame, the following code:
seconds = _global.clockTime*6;
minutes = (_global.clockTime/60)*6;
hours = ((_global.clockTime*30)/3600) + 120;
[Code]...
View 1 Replies
Aug 28, 2010
I am building a website through flash. For the past couple of weeks all of the links have been working fine up until now. I have no idea what I could have possibly done to make this happen. In HTML none of the links work. They are all linked up fine, I even re-linked some of them. Nothing happens. The buttons do nothing.
View 7 Replies
May 17, 2009
Normally i would publish using Flash CS4, however SEO requirements dictate that i need to use SWFObject. now, i have all the same publishing settings as i would have using AC_FL_RunContent.however, it doesnt 'center':
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>[code].......
however when i use SWFObject, i doesnt not extend the dimensions, it does not scale to natual size, and it does not center in the browser. it just sits on the top left of the screen.either there is something very wrong with the javascript or i have made a mistake with the parameters.
View 1 Replies
Apr 13, 2011
the following code works on everything except Chrome:
<a target="_blank" href="/FooodJournal">
<object width="265" height="135">
<param name="movie" value="2991BCTTor/xx.swf">
[Code]....
Flash is being used to create an animated button, and the anchor tag makes it so you can click on that to go to another page. On most browsers, you can click anywhere on the Flash object and the link works...but in Chrome, the link displays in the status bar when you hover over the flash element, but does nothing when you click it. However, there is a small area (about 19px) below the flash element where the link works.
How can I get this to behave the same way in Chrome as it is in other browsers?
View 2 Replies
Mar 9, 2012
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='165' height='37' id='niftyPlayer1' name='niftyPlayer1'>
<param name='movie' value='audio/niftyplayer.swf?file=/audio/tarantella.mp3&as=0'>
[code].....
View 1 Replies
Feb 11, 2009
I have a html file which has flash in it. The flash has few buttons on it. WHen i just click on the html page, the flash works. However, when i get into the html file from other pages, which i use action script getURL to link it. The html file show the flash but the buttons in it is not working.
View 1 Replies
Nov 27, 2011
I have created a website which consists of pages created from flash and dreamweaver (with embedded swf navigation bar at top of webpage)Once the home page is loaded there is a button to visit the page created with DW (with embedded swf nav bar). This works fine if I run the web from my computer locally.But if I write these entire website on a CD and access all the files from CD and then try to open the same html page from the same button in IE9; it does not work. It just keep showing the progress nothing happens. Interestingly, everything works fine on google chrome browser from the CD and also works fine from the other computer with Xp and IE8. But does not work on Windows 7 with IE9 from a CD specifically.
I have also tried to use the option in DW (called "Convert active content") for that page.which added that .js file and script on the html code. even after that does not work.I have also turned on the option "run active content from the cd" internet option for IE9 and "activex filtering" is also off on the security tab of tools of IE9.
View 5 Replies
Sep 19, 2007
I had to do some maintenance on an older flash site I built (Flash MX, AS2.0). I have some href links in a html text. For some reason they are no longer working correctly. If you click on it, it will do nothing. If you right-click on it, a menu will open with options to Open, Open in new window, & Copy link.
View 3 Replies
Apr 9, 2009
I am calling one flash with transparent bg in an HTML page.. Now the HTML links which are below the flash area are not working. So how can I make them work. I knw though I am calling flash with transparent bg but still the object�s area is same.. n all the links which are there on the HTML page that comes under that area stops working as they no longer remain selectable. To have a clear picture of what I am tryin to do have a look at the following url : [URL]
this is just a sample file you can consider..Have a look at the register now button..It will be in HTML how can I make it work..as flash comes above it.
View 2 Replies
Nov 30, 2009
I would like my website [URL] to be fullscreen and I've found this code to make it.But I am having problems with Firefox - the screen doesn't load anything, it is just a black screen. And in some IE the swf appears in a little square (very small) and not the size it was supposed to be in a maximized screen. The compatibility button on IE8 fixes it, but not everybody knows about this button..
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[code]....
View 1 Replies
May 2, 2011
I'm experiencing problems with HTML tags within textfields (multiline textfields). HTML rendering is activated. Fonts are embedded for bold and regular Verdana. In AS3 I also have declared the field as html (instancename.htmlText = "tekst".Now I have all my html code in a sql database which load through php. The whole text loads including the bold, underlined and italic htmltext make up.The problem is that the text on line 1 shows as:"8: you must click ok" (<b>8:</b> you must click ok<br>)But the text on line 2 shows as:" : submitting" (<b>9:</b> thanks for submitting <br>)I have checked the html tags over and over and there is no fault in that.
View 3 Replies
Jul 1, 2009
I have a presentation that I created for a client. The presentation is supposed to work locally on anyone's computer. It works perfect on mine. On the client's three computers, 2 pc and 1 mac the links inside flash do not work. I have a text field with text and a simple link inside like [URL] and it's going to a blank window. These won't even pop up a window for my client on any computer, why? He has the lastest Flash players and we created an html link below the flash movie in the html page just to make sure he could launch a popup that way and the html link below the flash movie worked fine.
View 3 Replies
Feb 22, 2010
I created a mailto link and a hyperlink in my Flash CS4 file. They both work when I test the SWF file. When I test the html file (in any browser) niether work.I get an error saying something about security for the mailto linksHere's the code for both
//MAILTO AND LINKS var contact1_link:String = "mailto:xxx@xxx";var contact2_link:String = "mailto:xxx@xxx"
//ADD EVENT LISTENER FOR EMAIL AND
[code].....
View 1 Replies
Jun 11, 2010
I used a scrollbar component out of my Flash Library for a text field. It worked with no problems in the swf file . However, when I checked out my html file in my browser the thumb in the scrollbar was gone making it unusable.I built a new scrollbar from scratch and everything works again in both the swf and html.
View 2 Replies
Jun 18, 2010
My Flash file is working but the html will not open and play. I've never had this issue before. I brought into Dreamweaver and saved it out hoping that might make a difference but still the same.
View 16 Replies
Jun 24, 2010
I have made an animation, when i veiwed it as a preveiw in flash CS4 it works fine.So I published it as both a HTML fie and SWF.The HTML file runs perfectly fine, but the SWF file is missing almost all of the illustrations and the play button at the begining, the sounds all work fine however.
View 1 Replies