ActionScript 3.0 :: Get SWFAddress Working In A Project?
Nov 19, 2009
I'm trying to get SWFAddress working in a project. When I open my page in Firefox Firebug gives me and error: asual is not defined _util = asual.util, swfaddress.js (line 230)
The Flash end seems to be working as I get the the swfaddressEvent. The JS side refuses to put the name in the title of the browser.
I'm using SWFAddress 2.4. I'm also using SWFObject v2.2, which I have imported first, as per suggestions.
I tried the older version of SWFAddress following along with the Tutorial at GotoAndLearn.com. But, this also did not work.
View 0 Replies
Similar Posts:
Mar 10, 2010
I have spent several days now trying to make SWFAddress 2.4 work. I followed very closely Lee's video, but I can't make it work. I get the site working, but I cannot make the deep linking nor the title change to work. I am using CS3 with AS 3.0 and SWFAddress 2.4. My PC has Vista Home Premium and I tested this on several browsers (IE, Safari, Opera, and Firefox).
Here is my html code:
Code: Select all<!DOCTYPE html PUBLIC "//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml-transitional.dtd">
<html>
<head>
[Code].....
The FLA file is constructed the same way as in the video with 3 MC's which visibility I toggle based on which button is pressed. The trace() call in onChange displays correctly the value I am setting in each one of the button event listeners, however the url never changes and the back and forward buttons are never enabled.
View 4 Replies
Feb 4, 2010
I have used SWFAddress before on a timeline driven site but now I am trying to do all actionscript and it suddenly doesnt want to work.I am trying to use SWFAddress 2.4 and even got as desperate as to try using all my older files (old .as files, and .js files and even switch my AC Object to the swfobject.js) and it refuses to work.Below is a broken down quick version of what I am trying to do
Code:
import com.asual.SWFAddress.*;
contact_pg._visible = false;
[code].....
View 1 Replies
Sep 28, 2009
I'm doing a little website and using swfaddress for deep linking. Everything seems to be setup as it should, swfaddress is working fine when i'm setting values, like the page title or url and stuff.On the other hand, SWFAddress.onChange event is not responding at all. Has anyone got an idea or had this "bug" before ?
View 9 Replies
Jul 29, 2011
I had a somewhat weird setup for a site here, which goes as follows: Server A holds a SWF Server B holds a HTML document with the SWF Embedded, along with SwfAddress.js I can't seem to get any Flash-to-javascript to work here through External Interface calls. SwfAddress fails and I see this error in Firebugs Console: "Error calling method on NPObject!" This also occurs with another JS function I'm trying to call with the MouseWheel. I've set up my crossdomains and deployed all Security.allowDomain("")'s where applicable. Has anyone embedded an external SWF and had issues with AS-JS communication before??
View 1 Replies
Jun 22, 2009
The timeline swf itself (the core of the site) is being loaded into a wrapper swf, as one of the requirements is that this timeline can be used elsewhere, in other projects. This wrapper, however, will have some additional visuals that pertain to a stand-alone version of this timeline. As a result of never knowing exactly where this is going to be used (either a subchapter in another flash website, or as a stand-alone site by itself), I've decided to dump all of the swfAddress code into the wrapper, in a child class of it. To handle the navigation changes, I'm dispatching custom events (from the timeline) with parameters that describe the nav changes, which gets picked up by the parent wrapper, which then calls a function in the swfAddress child class for handling.
Also done in this swfAddress class is the parsing of the URL onChange event (when a browser back button button or history changes the nav, rather than a Flash button). This, too, dispatches an event with info about the parsed URL, which the wrapper is picking up and then calling a function in the timeline's API to make the necessary changes.
[Code]...
View 4 Replies
Jul 19, 2008
I have SWFAddress going for the most part, but the browser's back and forward buttons aren't working properly. When I use the back and forward buttons, it successfully changes the URL but it seems the SWFAddressEvent.Change is not being fired in Flash. Everything I click within the .swf relies on this event and works great, but the browser buttons still won't.
View 9 Replies
Feb 16, 2011
how to use SWFAddress within MCs? All the tutorials I find seem to use the maintimeline, but I need to know how to make it work within multilevel mc's, dynamicly loaded in. Ive got a working code but this one is static. Everything is working, even when i copy and paste the URL of Testpage 5 for example in the browser. how to create a dynamic way than using the switch statement.
[Code]...
View 1 Replies
Jul 27, 2010
I'm having a problem with the flash publish method and swfaddres.I've included the javascript of the flash pubblication in a new javascript file with the swfaddress in the same page.If i use swfobject for including my flash file in the swf, swfaddress works ok...if i include the swf with the flash method swfaddress doesn't work.Here the link: http:[url]......
View 0 Replies
May 9, 2009
does anyone noticed when using the latest flash player (10), all website thatuse preloading and is publihed with actionscript 2.0 is not working anymore. Only the onloadComplete or onLoadInit is triggerd, so preload animations are skiped. For example i made this website a while ago that worked fine with flash players up to verion 9.Now the preload percentage is not showing anywhere. I also tested other websites that i know off
where made in actionscript 2.0
View 1 Replies
Aug 17, 2010
My company is working on a casual game which is entirely made in Flash. To speed up development/compile time we split some of it up into SWC files, for example dialog controls, cutscenes, particle effects are all controlled via SWC files. This was working great up until a few days ago, we have been working on this project for about 8 months with no major problems. However, now all of a sudden, when we compile the game, none of the SWC files work. The game compiles and runs ok, but nothing from the SWC files are working.
The strange thing is that if we remove one of the SWC files from the folder (the game reads all the SWC files from one folder) then the game will work. Even if you remove a SWC which isnt immediately used by the game it will still work. It's almost as if there is some limit to how many SWC files you can have loaded. (There are only 10 SWC files in the folder we are loading from).
View 2 Replies
Mar 21, 2006
url...My first and current flash project is located at url...In the background is a XML-based slideshow. In addition to the pictures being loaded, each of these pictures have one or two words associated to it.The word is supposed to fade in, stay for a second or two, then move and fade out. All this works fine locally, and it was working fine on the internet until one day.Someone mentioned that I shouldnt use setInterval etc. but im really stuck here. Doesnt help that im totally green on flash either.
View 4 Replies
Oct 4, 2007
working on a medial project does flash support dicom image loaded dynamic into flash. like jpg images.
View 1 Replies
Aug 23, 2011
I am using flash builder4.5 and creating simple touch event function in pure Action script mobile project. When I run with on desktop running it not works but mouse event works. How can I get this to work with touch event function on desktop running
Here's my Code
package {
import flash.display.Sprite;
import flash.events.TouchEvent;
import flash.text.AntiAliasType;
import flash.text.TextField;
[Code] .....
View 3 Replies
Aug 15, 2010
I tried to built a project with AS3 only in Flex. When I run the project in flex, everything looks fine,but when I export the release build, the images that are supposed to be added are gone.
[Code]...
View 1 Replies
Jun 21, 2010
I cant "center" my project, like you can see its "fixed" (yellow lines) in the left side and I cant see "invisible" part of project... (area around the project). how can I move my project so I can see the not-project area around the project. (picture 2).
At the moment situation... (cant see that area around the project)
http://img19.imageshack.us/img19/1186/68553623.png
View 2 Replies
Jul 4, 2009
I would like to add a widget board to my flash project so users can embed my project in their web page or wiget display. To see what I'm talking bout go here [URL] and click the white + mark on their widgets.If your a moderater please put this in the correct area, and consider making it a sticky so we can post new ways to impliment in different sites as they become available.
View 2 Replies
Jun 15, 2009
I am working on this one project that has a couple of movieclips (already placed on stage) which have a custom class set to export via the Library. Each of those custom classes loads an external SWF using URLRequest().
Is it possible (or, what is the best way) to preload the whole project first, including the external SWFs?
View 7 Replies
Dec 10, 2010
I just wanted to ask if I have a project created in authorware and one more in director.I just wanted to ask can we convert authorware project in flash directly or indirectly?Or can we import authorware project and/or director project in flash.does anybody know or anybody has done this b4???
View 1 Replies
Jun 15, 2010
Maven 2.2.1 unzipped,M2_HOME set and repository altered to point to different drive location in settings.xml Flex 4.0:
Installed Created a multi-modular webapp project using flexmojo:
mvn archetype:generate
-DarchetypeRepository=http://repository.sonatype.org/content/groups/flexgroup
-DarchetypeGroupId=org.sonatype.flexmojos
-DarchetypeArtifactId=flexmojos-archetypes-modular-webapp
-DarchetypeVersion=RELEASE
with following options
groupId=com.test
artifactId=test
version=1.0-snapshot
[code]....
Parent pom has swc, swf, war as modules.
Dependency is war->swf->swc.
With parent artifactId of swf, swc, war set to swf, swc, test respectively.On executing mvn on test folder(for that matter clean or anything) I get this following error.
G:Projects est>mvn -e
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
Downloading: http://repo1.maven.org/maven2/com/test/swc/1.0-snapshot/swc-1.0-snapshot.pom
[code]....
Looks like its trying to download the project from maven's central repository instead of building it.
View 2 Replies
Jan 28, 2010
I am developing a project in Flash Builder which will load a file built by Flash CS4. The code in Flash CS4 is below, it's a doc class. I am sure the dispatchEvent has been invoked[code]...
View 1 Replies
Oct 20, 2009
I've recently started making a game in FlexBuilder. The game is currently a Flex project. Is there any downside to using Flex as opposed to just Actionscript? A friend of a friend told me that Flex is slower than an Actionscript project. I've been unable to validate this on the internet; is there any truth to that claim?
View 6 Replies
Mar 27, 2011
If I create a new flex project with flashbuilder, these are the libraries that get included by default through the Flex SDK[code]...
View 1 Replies
Jun 18, 2011
I have a CodeIgniter project and I made a back-office in Flex. I was wondering how I can implement the Flex project in my CodeIgniter since I'm working with routing I can't route to any directory. So there isn't a way to display the back-office.
View 1 Replies
Oct 5, 2010
For some really dumb reasons, I must support IE6 in the project I'm currently working on (think multi-paged microsite). I have SWFaddress, now, worked into my navigation system, and it is working as expected in chrome and FF.
When I get into IE6 I am having the following problem:
The "browser URL Update" phase of the SWFAddress.setValue -> SWFaddressEvent.Change
cycle fails to function, except when the mouse cursor leaves the SWF frame. When the mouse leaves the frame, SWFaddress history gets updated as expected and the browser navigation buttons function as expected.
But if the mouse cursor stays within the swf, none of this happens, and any stateChanges are skipped by the browser buttons.
View 4 Replies
Apr 28, 2010
Hello all.
Having a hard time getting info on SWFADDRESS so I thought I'd try here as Kirupa has saved my butt in the past.
So my question is this.
I am trying to attach a variable to the end of my SWFADDRESS url but can't get it to register. I can get it working fine using SWFOBJECT like so
http://website.com?Var=1&Var2=2
but once I add the deeplinking I can't get any results.
http://website.com/#/Home/?Var=1&Var2=2
or
http://website.com/#/Home?Var=1&Var2=2
My code in the html is :
Code:
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject('Example', 'website', '800px', '600px', '8');
so.useExpressInstall('swfobject/expressinstall.swf');
so.addVariable("Var", getQueryParamValue("Var"));
so.addVariable("Var2", getQueryParamValue("Var2"));
so.addParam("wmode","transparent");
so.write("flashcontent");
// ]]>
</script>
Anyone have a way around this or a good source for SWFADDRESS help?
Would really help me out!
Cheers
View 1 Replies
Sep 16, 2010
how to use SWFAddress within MCs? All the tutorials I find seem to use the maintimeline, but I need to know how to make it work within multilevel mc's, dynamicly loaded in.Ive got a working code but this one is static. Everything is working, even when i copy and paste the URL of Testpage 5 for example in the browser. how to create a dynamic way than using the switch statement.
Code: Select allfunction traceMyPage(id) {
SWFAddress.onChange = function() {
var addr = SWFAddress.getValue();
[code]....
View 1 Replies
Apr 17, 2010
Am successfully using swfaddress and love it. For the first time though I'm trying to implement it on a site that has a load bar. The issue is if I use the browser's back button I'll eventually get to a page that just shows the full loadbar and stops. It is the the page that I have labeled "$/". If I don't put that label on the first frame then other worse problems occur. [URL]...
View 9 Replies
Dec 30, 2009
Even creating the simplest example, I can't figure out what I am doing wrong. Here's my swfaddress.swf code:
ActionScript Code:
import com.asual.swfaddress.*;
SWFAddress.addEventListener(SWFAddressEvent.CHANGE, onChange);
function onClick(e:MouseEvent):void
[Code].....
View 4 Replies
Jun 20, 2010
I have created a menu with XML data. I have created a movieclip navigationMc this is placed on the first frame of the stage. Inside navigationMc I have another movieclip and named it as menuitems where I am calling the XML. I am calling a button from the library through linkage property called menuitem. I have another movieclip on the stage called pageContainerMC for loading external swfs. Now the script on the main stage - Frame 1 is:
stop();
this.pageContainerMC.loadMovie("assets/work/augmented-reality/augmented-reality.swf",2);
//
#include "SWFAddress.as"
[code]....
The swf address shows on clicking the button but it doesn't load movie once you click back and forward button on the browser also it doesn't change the name of the title.
View 0 Replies