ActionScript 3.0 :: Use A Universal ClickTag ?
Oct 25, 2010
use a universal clickTag in AS3? I usually use this,
Code:
function clickThrough(e:Event):void{
trace("click through");
var destination:String = root.loaderInfo.parameters.clickTag;[code]....
but I have a site telling me they use 'clickTAG'.Is there any easy way to programmatically check and use either?
View 6 Replies
Similar Posts:
Dec 8, 2011
We're designing an app that will run on Windows, OSX, iOS, and Androids. It would be really nice to at least have most of the code in a single language rather than having to use Objective C for the Apple versions, C# or C++ for Windows, and Java for Android.We were looking at Flex (with all of its problems) as a way to avoid having to use a different language for each version, but Adobe has thrown in the towel and in the long run that's not going to do the job. Java used to promise to be universal, but it looks like Apple no longer supports it as a part of the distributed OS, and as far as I can tell Microsoft never supported it. We don't want our users to have to download and install something just so they can use our app.Is there a solution? Or are we stuck with building the app in multiple languages?
View 9 Replies
Nov 11, 2010
I have classes that need to communicate with each other, but are instantiated at different times.Therefore I feel I need to create a universal Event Handler that my classes can add event listeners to,and can receive dispatched events from.
View 9 Replies
Oct 9, 2009
Not the OS Local time to work a couto be specific I wouold like to get hold of GMT and count from there, thus avoiding the issue where users might have the wrong date and time settings.any pointers or sites that will provide this data feed.from there I will use the UTCDate class to do the rest of the work.
var nowate = new Date();
trace(now.getUTCMonth());
trace(UTCMonthLabels[now.getUTCMonth()]);
[code]....
View 1 Replies
Dec 27, 2010
I need some advice integrating our content management system with FMS. We are currently using Oracle's Universal Content Management 10g and FMS 3.5.
I am able to get the test video to stream by creating a VOD streaming application in Flash (drag/drop FLVPlayback component and setting the content path to rtmp://serveraddress/vod/TestVideo). However, when I try to incorporate it into UCM the video doesn't load. I have tried checking the .swf skin, .swf video, AC_RunActiveContent .js file, and even the .html file (I have edited the .html file to reflect the new path for the uploaded .swf and .js files) and I still get nothing. I suspect that the .swf video file that creates the connection to the FMS server has something encoded into it that can't be called correctly once it's uploaded to UCM. If this was a traditional website where I could simply drag and drop the files generated by flash into the site's hierarchy, there would be no problem.
View 3 Replies
Aug 19, 2009
I've got an animation that plays, and then at the end of the timeline plays a movieclip. This movieclip displays a piece of text, which is extracted from an XML file, the piece of text is selected at random currently out of a list.
Then when the clip is pressed (button), it goes back to the previous timeline, and then plays through again, including the movieclip, and now a new piece of text is picked at random and displayed.I now want to make the pieces of text display sequentially, but am having some trouble.
put in a counter, and the text that is displayed from the array corresponds with the number on the counter, unfortunately, this gets wiped every time it plays, because the counter gets remade. Is there any way to create a variable outside of the timeline maybe, in a actionscript file maybe, so that I can just add to this. I have been running a trace, and can't seem to get it to not wipe.
View 3 Replies
Oct 10, 2011
Is there a way in flash to make the letters come from around the globe just like on the Universal intro? [url]...
View 1 Replies
Jan 19, 2008
what im interested in doing is, i want to create an all flash site but i want it so that whatever the screen size the user is viewing it on, that certain components on the scree stay in certain places. for exampke i want to 'bleed' the flash on the screen but whatever screen res the user has his monitor set to, that it adjusts to his size, so the name and buttons etc arent moved when the person resizes......
View 2 Replies
Aug 23, 2010
I've got an application (video player) that has many different interactive pieces spread throughout a handful of different classes throughout the display tree hierarchy (all children/grandchildren/great-grandchildren/etc of the same View class). I'm trying to add a universal tooltip to use throughout [URL].
Basically, the primary problems I want to solve are:
-Ideally called from or channels through a single place (for ease of updating etc).Must show above all other display objects (for instance, a tooltip that shows for a player controls button shouldn't be obscured by a menu display object that might be above it).
-Add the object once in a container/holder that's added above all the other View objects.Dispatch a custom event for every ROLL_OVER and ROLL_OUT event that needs to show/hide the tool tip.In my main (logic) class, listen for the event, and then call the method in the view class that shows/hides the tooltip.
View 2 Replies
Oct 12, 2010
Flash newbie here, using CS5 on a Mac. I've created several Flash animation files, all about 25 seconds long. The animations are fairly simple, about 6 layers each, but all contain a lot of movement. I need to turn the animations into videos that can be played on computers that don't have any Adobe programs, i.e. Quicktime. This is where my issue comes in. The published .swf files work wonderfully, but when I export the files to Quicktime video (.mov) the motion seems to leave a "trail" of images behind it. The static remnants go away after a few seconds but are replaced by new remnants of the current movement. I've played around with the quality and size of the videos, but nothing seems to have helped. I've tried used Xilisoft video converter to convert the .swf files into .avi or .mp4, but the files couldn't be uploaded. Does anyone have any recommendations as to what steps I could take to export my .fla or .swf files into high-quality video files?
View 3 Replies
Apr 7, 2011
As in subj. Is it possible to make a video player which will run on FP9 and when FP10 is detected use some of its features as Stage video API or pixel bender shaders?.I've tried to access FP10 classes via getDefinitionByName but it doesn't work
View 2 Replies
Jan 5, 2011
I am trying to create a "universal" swf that can be embedded in an html page and take input from an xml file. Yet the name of the xml file will not be coded into the swf which would allow xml files of various names to be used.
Code:
<script type="text/javascript">
loadSwfToDiv("date/ipconfig_questions.swf", "ipconfig.xml", 800, 700)
</script>
View 1 Replies
Sep 26, 2011
We are having problem with one certain Flash banner. We need to insert an active transparent button or to be completely correct we would need the clickTag as an active transparent button and the next function as follows:
on (release)
{
getURL (_level0.clickTag, "_blank")
}
We designed a banner with simple animation but the whole banner must be a clickable button with clickTag, so that our client can track the click and traffic.
View 1 Replies
May 15, 2009
I've got a movie clip which is the entire size of the stage and is activated on rollover and again on rollout to return to its original state. This works fine but now I need to add a clicktag over the top of the movie clip. The clicktag then disables the movie clip when published leaving it static.
View 1 Replies
Sep 19, 2009
Getting clickTAG to work should be simple (using CS4 to generate AS2), On the top layer of my swf in frame 1, I placed an invisible box, made it a MC and called it transpBox_mc. In another layer of frame 1, I placed the following code:
transpBox_mc.onMouseUp = function():Void {
// with or without :Void it still doesn't work
if (_root.clickTAG.substr(0,4) == "http") {
getURL(_root.clickTAG, "_blank");
}}
// also tried this as a transparent button with an onRelease event
In the HTML, I placed a Param tag in the Object section:
<param name="flashvars" value="clickTAG=[URL]" />
And also placed the variable in the Embed section:
embed src="movie.swf?clickTAG=[URL]"
// also tried flashvars="clickTAG=[URL]"
In all cases, the movie plays fine, but the link doesn't work. I tried locally, on my server and also tried the tester at [URL] (though it isn't clear which part of the parameter to enter).
View 4 Replies
Jan 14, 2010
I am just about to pull my hair out - please help as I don't have that much hair to pull out. I created a flash file in Flash CS3 and was told I need to add a click tag for an agency who want to keep track of the click throughs for the ad.
I have created the invisible button layer and set up the 'hit' and tried and tried and tried to select the button and add some action script to it. (which I have seen three different codes to use)
Each time I export it or publish it I get the error message: mouse events are permitted only for button insances on release. I have read and understand I need to assign the code to the button and not the frame but for the life of me, I cannot figure out how to do that.
I select the button (which I have converted to a 'button') and F9 or left click to get the Actions panel and once I am there and try to use the '+' to add code, it automatically shows 'Current Select/Frame 1 in the left side of the Actions panel. I get that it is adding the code to the frame but how do I get it to add the code to the button???
View 4 Replies
Mar 28, 2011
I've been asked to add clickTAG to a banner ad. I used ActionScript 3 and my research shows it only works with ActionScript 2. Is this true?
View 3 Replies
Mar 17, 2008
I've created a flash banner that on rollover changes to a form and onrelease posts the variables - this works fine.My confusion is when I need to include the clickTAG script for adwords tracking.The code I've used is simple and is the following:[code]If I have both on codes one after the other will google track correctly? Is there another way that I can pass the variables to the URL that is defined in adwords via the clickTAG?
View 2 Replies
Jul 15, 2009
I made a banner ad and the site gave me this code to work with:
on (release) {
if (clickTAG.substr(0,5) == "http:" ) {
getURL(clickTAG, "_blank");[code].........
I made an invisible layer and put this code on it. The swf showed the hand, but when I clicked on the banner nothing happened, on my end or on the live site.Then I used this code:
on(release)
{getURL(clickTag,"_blank")}
On my end it would open a blank page. On their end they got a 404 message.Why is it not connecting to the server and opening the link? Is there something in my file that could be preventing either clickTAG from working?I exported in Flash 9. I'm using a loop code. I have many layers and masks, but all are under the invis. layer.
View 4 Replies
Sep 25, 2009
I've been asked to replace the clickTAG on the submit button of a form (see AS below) with the following URL but I can't get any of my AS it to work
URL Supplied by client (to replace clickTAG): [URL]
AS on SUBMIT button:
on( release ) {
// VALIDATION ONLY
var errors:Array = new Array( );
[Code].....
View 1 Replies
Oct 27, 2010
I'm just finishing off my first bannerproject in AS3, but I'm having some issues with the clicktag. The code I've used works just fine on all browsers except IE, which blocks the popup window. I've figured I'm supposed to use the externalinterface call to work around my IE problems. Something like this...
[Code]....
View 0 Replies
Apr 11, 2006
I have an ad banner that the client says the clickTag layer must be the top most layer. The problem is I have movies below that layer that animate on rollOver:
Code:
on (rollOver) {
this.gotoAndPlay("bounce");
}
These do not work unless they are above the clickTag layer. Is their a way I can adjust the rollOver code to acomodate for this? Both the clickTag and the movies are on the main time line but the rollOver animation is in its own movie.
View 1 Replies
Jan 17, 2011
1. Create a air app that can load any banner .swf from File.nativePath using htmlLoader.
2 .Passes clickTAG params into banner.swf
3. Listen for the click on the clickTAG
4. Detect the clickTag click in the air app.
So far I have completed number 1, and having trouble with 2, 3, 4
View 2 Replies
Jan 29, 2009
I am designer and working on some Flash Banner design projects.client need it according to Google terms as it is going for google Adwords Program , so i am using this code:[code]but my probem is that i have done all the animation inside a Movie clip and i the button is inside the movie, can i paste the code on the insode button or i should create a button on main stage ?
View 2 Replies
Oct 21, 2009
In my flash, I created a transparent button in the first frame in the uppermost layer and in the timeline it spanned the entire flash. I'm running CS4 AS 2.0 and flash player 10 When I right click the button and add the code in actions on (release) { if (clickTAG.substr(0,5) == "http:") { getURL(clickTAG, "_blank"); } } and I try to export, I get a compiler error: Mouse Events Are Permitted Only For Button Instances.
View 3 Replies
Oct 6, 2009
I am trying to make a banner ad that allows me to tracks stats / click thrus.I thought I could use clickTags, but i don't know if I can since I need to have the MY link embedded in the fla.
View 0 Replies
Feb 12, 2010
I'm designing a Flash Ad that requires a specific clickTAG.
ActionScript Code:
//
this.onMouseDown = function() {
var fo:LoadVars = new LoadVars();
fo.send(_root.clickTAG, "_top", "POST");
}
I want to implement user initiated sound, but I can't seem to define a certain region for the clickTAG. Also I'm using AS 2.0 I know the clickTAG won't take me to the proper location, but I uploaded it to my website to test the audio.[URL]I've attached 3 images or you can just go to my website and see it (click the link above).I tried placing an invisible movie clip over the location I want the clickTAG to work and attached the ActionScript to the mc.When I scroll over the audio button it changes, but when I click it, instead of playing the audio it just tries to go to the URL.I also tried using a button, but that didn't work either.
View 0 Replies
Oct 3, 2011
I've created a flash animation where I am getting dynamic URLs from XML.Now, I need to use clickTAG in order to track the number of clicks.
I've never used the clickTAG thing, any pointer will be really helpful for me?
One more question is that Is it possible to use clickTAG and dynamic URLs together?
View 0 Replies
May 8, 2007
Can someone migrate to AS3 this very very useful code? Especially for Banner makers...
[code]...
View 14 Replies
Dec 10, 2009
I have a button with a link to my hompeage. but I want to insert a clicktag, clicktarget to y link. How do I do that in Actionscript 3? Right now, my code, without clicktag, looks like this:
inv_btn.addEventListener(MouseEvent.CLICK, invBtnClicked);
function invBtnClicked(e:MouseEvent):void {
var url:String = "http://www.homepageexample.com/";
View 3 Replies