I'm trying to complete an ad project that will go on my institution's website. There are five ads (movie clips) that will cycle through once before stopping. From there, the user can hit a nav button (four movie clips) to view a particular ad and click on it, taking them to an outside website or a page on our own site.However, I've hit a snag involving Error #1109.
After struggling for days, it seems I finally got the variable referencing between classes and custom event problems sorted out. Now I got a question regarding the Error #2044 and Error #2035. The error reads like this:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
I've put all the swf in the same directory, so I don't think that is the problem. Could it be that my XML file is in another directory that's causing the problem? I also heard having quotes in the URL in the XML file could also be problematic. Is that true? Here are my AS and my XML file.
I've been trying to fix a problem I'm having in flash, but have no idea where to go from here. I am trying to link multiple images to different urls.[code]I need to make each bigImage file link to a different url.
I have an organization chart with about 40 items on it. Each item will have three options that will show up when moused over. Each of these options will go to a different [URL]... for example.
I've got a flash file loaded on more than 150 sites. The button in the file currently goes to a single URL, but we are developing individual URLs for the link for each site. How can I do this in one flash file? I don't want to create 150 flash files with different links. Can I variables or something?
I am not great at flash and am making a website that has a few different tabs for different pages.How do I make different urls for each page?I want to track each page seperately.
I have a small flash movie with three buttons I would like to link to three different URLs. My code for these is below, however, when I test the movie there is a namespace error (copied below). I assume this is because both buttons are trying to use the same variable but I have no idea how to make this work in AS3.
where i need to make changes so the code understand that "thisButton" should take the user to URL#1 and "thatButton" should take the user to URL#2?
This is for my own site and I have to use AS3 as there is an FLV on it as well which requires AS3 to be viewed.
FIRST BUTTON
//when they click the "light" button go to the www.site/About page this.lightButton.addEventListener( MouseEvent.MOUSE_UP, function(evt:MouseEvent):void {
I am getting these error codes- Call to a possibly undefined method addEventListener through a reference with static type Class. Warning: 3594: exec is not a recognized method of the dynamic class RegExp. I am getting these error codes. I inserted the link where my flash file is. [URL].
I'm trying to figure out if we can use RSLs to contain common UI controls for our next project. I'm running into an organizational issue that I can't quite figure out - how to get the RSLs to work in both a local development/debugging environment, and on a production web environment, with the same exporting/importing URLs.
Here's what my setup would look like. Say I have a main application main.swf, an RSL lib.swf, and a UI module dialog.swf.
Main.swf loads or embeds dialog.swf. lib.swf exports some symbols that dialog.swf imports.
On a local development environment, these swfs are found in folders like so:
[URL]
Here is the problem. If I set the export/import url for symbols in lib.swf to "assets/lib/lib.swf" (relative to the location of main.swf), the runtime library gets loaded fine in the local environment. But in the web environment, it does not load - the player just shows the "..." graphic indicating it is trying to load.
Alternatively, I can use "http:/myapp.com/assets/lib/lib.swf" as the export/import url. Now, it will work in the web environment. However, in the local environment, dialog.swf will load symbols from the lib.swf that is out on the web, not the one that is local. But I need it to load from the local version, so that designers can muck about with the assets and see the results locally before publishing to the web.
Is there some alternative way to set up the swf's, or way to set the URLs, or some other hoop I can jump through that will make the RSL load properly in either environment without having to manually change URLs all the time?
(Details: I am using Flash Builder 4, CS 5, Action Script 3, Flash Player 10... No Flex! My example omits some details from my actual setup, such as the fact that we are using a preloader to load the main application, and a php script on the web page to start the preloader.)
So, I have tons o' buttons that each need to link to unique URLs, and I'd like to minimize coding as much as possible. The code below works, but I will have to do this about 50 times.Can I associate the URLs with the instance names of the buttons and then reuse the same function?In the event you didn't already guess, I'm a newbie to AS3
cap_mc.CapTeam_btn.addEventListener(MouseEvent.CLICK, capPage); function capPage (evtObj:MouseEvent) { trace("clicked") var url:String = "http://www.mydomain.com"; var request:URLRequest = new URLRequest(url);
I'm having an issue where Flash is gets stuck displaying multiple layers of text simultaneously when the cursor is moved quickly through the circle of buttons and out of the .swf frame. When the cursor is moved at a moderate speed everything is functioning correctly. Below is the link to view the working .swf.[url]...
I'm trying to make an array of clothing items, but before I do, I want the user to be able to choose Male (Tom) or Female (Sue). I always just assumed you could, though perhaps I'm wrong afterall.When I do this, I get a bunch of these errors:1151: A conflict exists with definition Top1 in namespace internal.this problem?
Code: Select all// Pick Sue (0) or Tom (1) whichPerson = 1; if(whichPerson == 0) {
I am getting multiple "access of undefined property" (1120) errors. The code that throws the error is inside a class. From the main timeline, I'm calling a function from within that class (it's a static function) it goes something like this -
Code: SoundPlayer.playSound() In the SoundPlayer class, I declare a bunch of variables at the top like this:
I have a main datagrid, and want to launch a window with another datagrid in it, bringing in a different dataprovider. However, when I do this it acts funnny, brings in some default datagrid information and then gives me an error when I try to set the dataprovider:"multiple initializers for property dataprovider. (note: 'dataprovider' is the default property of mx.controls.datagrid)"
I'm trying to do a binary search in a for loop. However, flash does not like the following for loop. for(var select:int = Math.floor((min + max / 2)), var turns:int = 0; turns < input.length / 2 + 1; turns++, select= Math.floor((min + max / 2))){ if(input[select] > want){ max = select; } else if (input[select] < want){ min = select; } else { return select; }}
On the first line I get 1084: Syntax error: expecting identifier before var. I think I know why (I'm using , to separate the different statements), but how do I fix it? ; won't work since it's what the for loop uses. ( var select:int = Math.floor((min + max / 2)) ; var turns:int = 0); turns < input.length / 2 + 1; //etc does not work either.
Lee and the forum members here have helped me out dozens of times, even if you don't know it But now I'm stuck and can't find an answer anywhere. I'm making a new site in Flash CS4 for the first time (had been using F8 up to now) and got stuck on the scrollpane-component. I'm not big on actionscript, just can't get my head around it, so first place I looked was here. Saw the scrollbox-tutorials and ditched the whole scrollpane-idea. I followed the tutorial, everything went fine, I was happy, but then I wanted to use a second instance of that scrollbox. That seemed to work, but upon testing I got the Error #1009 message (TypeError: Error #1009: Kan geen eigenschap of methode benaderen via een verwijzing naar een object dat null is.
I am loading multiple swf files and I get an error. All files do load. Error #2025: The supplied DisplayObject must be a child of the caller
Below is a snippet of my code. var myRequest38:URLRequest = new URLRequest("sisil_website.swf"); sisilWebsite_btn.addEventListener(MouseEvent.MOUSE _UP, loadb38); function loadb38(event:MouseEvent):void { myloader.load(myRequest38); stage.addChild(myloader); [Code] ....
I'm trying to load two external images (thumbnail images) in the loader "see image below for reference", where the full image size will be. However, I am getting this error when testing my movie.
Test Movie error message:
"port1_btnTypeError: Error #1010: A term is undefined and has no properties. at index_fla::MainTimeline/fl_MouseClickHandler_6()" "port2_btnTypeError: Error #1010: A term is undefined and has no properties. at index_fla::MainTimeline/fl_MouseClickHandler_7()"
On one of the pages (In the site I'm designing) I have 4 buttons that need to link to 4 separate URLS. When I code one of the buttons, a link on another page is stopped.I guess what I'm asking is, what is the best way to 'layout' my button links in each page? And what is the best way to achieve 4 buttons with 4 different urls.
I am trying to put 3 buttons in a frame. I want each of themto act as a link to Web pages. If I use just the code forlink_btn_one it works great. If I include the code for the other 2it doesn't work. What am I doing wrong?Here's my code:
var link:URLRequest = new URLRequest(" http://www.skybooks.com"); link_btn_one.addEventListener(MouseEvent.CLICK, onClick);
I am a designer working on a flash project that is used to navigate to html pages. The project is a map - when you roll over different states there is an animation making that state pop out and show the state name. When you click each state (Button), it should open an html webpage. Right now the project works great, but I have the url's coded in flash actionscript using "onpress" and "load url." I would like to set it up so the flash file calls the URL for each button from an xml file, so it can be easily edited. The only thing it needs to call is the URL for each button. Can anyone give me simple instructions on how to make that happen?
How would you add a target="_self" function onto the buttons in this actionscript (as3) I need the buttons to open within the same browser window and not a new (_blank) window:
skype_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler); function mouseDownHandler(event:MouseEvent):void { navigateToURL(new URLRequest("skype:mySkypeIdentifier")); } email_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseUpHandler); function mouseUpHandler(event:MouseEvent):void { navigateToURL(new URLRequest("mailto:myEmailAddresss@myDomain.com?subject=rts Esolutions enquiry")); }
I have a slide show swf file with an invisible button on the top frame. I would like this button to go to different URLs depending on what frame the movie is on when it is clicked. Is this possible?
The following works for one url: oneBtn.addEventListener(MouseEvent.CLICK, oneButtonFunction); function oneButtonFunction(event: MouseEvent) { var request:URLRequest = new URLRequest("http://webpage/"); navigateToURL(request); }
The reason I am trying to do it this way is I want the script to all be on one frame because I will be using this as a template for other slide shows and want to be able to edit the urls all in one window. I already have a slide show with key frames at the places where the new url would be accessed is click, but it is a pain to edit and add new content.
I'm building a flash app that gets rss links from a list but then I need to retrieve the rss feed from the rss link to work with in flash. I did this locally using a proxy.php wich works on all types of urls.
But on the server it only works with urls ending in .rss but not when it's a redirected url like .xml or other feedreader urls. How do I retrieve the rss from redirected urls on servers? Little sidenote, I made a test using a php form to call this proxy.php file that I made and when I use the urls that don't work in the flash app it does retrieve the rss feeds.
I'm currently using AMFPHP 1.9 to make a simple flash game which uses a game server.Sometimes, I get this error (BadVersion) when there are simultaneous calls to the server.I've searched the web for some of the answers to this problem, and it seems they were answered back in 2004.Is there an updated version of how to solve this problem?I tried to change the globals.php parameters to use absolute path, like performing the below:
//$servicesPath = "services/"; //change to $servicesPath = "/httpdocs/Flash/AMFPHP/services/";
Hows it going, learning actionscript in college, ive done the following code from notes, but when i do a test run i get the following error messages.[code]The above is not code i will be implementing, but more a learning tool to understand the syntax, so the actual visible outcome i'm not concerned with. Just incase you're looking at that part I'm using Flash CS5, running Windows 7 ultimate 64bit.