Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Hiding Referrer Url



Hello All,

I have been doing freelance work for a client over the last year, who has asked me NOT to post any of that work on my portfolio, since his clients will see my portfolio's address in their referrer logs (with google analytics.) However, I found this article:

http://kb.adobe.com/selfservice/view...1712&sliceId=2

Which seems to state that flash can't publish referrer information. If this is true, great, but I'd like to offer my client some way to know for sure that my site isn't showing up in these referrer logs. Is there a way I can do this?

Thanks!



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 11-23-2007, 10:35 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

ASP Referrer Variable
How come when I link from a .swf there is no Referer variable. I am linking to an ASP page????

Netscape sets the HTTP_REFERER, but IE does NOT. What do I need to do to get IE to set the variable.

:::>Log Referrer In Flash 4?
Does anyone know if it is possible to 'capture' the referrer URL to the page with the movie on it, then pass it as a variable as part of a form,

e.g.

enter name:
enter email address:
you were refferred by: http://www.the-page-they-clicked-on-to-get-here.com

Its possible in JAvascript but can it be put into flah 4?
Maybe possible in later versions?

HTTP Referrer
Is there a way using actionscript to determine which page (url) the user came from?

Flash And Referrer Q?
I have "Server A" were my swf is hosted. I've embedded it in a page on "Server B". Can the swf get this referring webpage that they came from to get to the page on "Server B" and send it somehow to "Server A" or email it?

I have limited access to "Server B" and full access to "Server A".

I just want to see were visitors are coming from when they load my swf on another page that I post it on.

I hope that made sense....

Document Referrer In Flash ?
hi,
is there any way to get the document referrer in flash without passing it through javascript or params. I wan't to prevent deep linking to swf files containing images and guess the best way is for the swf file to check it has been loaded from html which is hosted on my own isp but I don't know how to do that.

percepts

Referrer And Browser Type
Hey guys and gals, My first post here, Im very new to actionscript, my experience lies in php/ajax/js... so please bear with my ignorance.

I am wondering if its possible to detect browser type and refferring URL with as3. I am aware of how to accomplish this in php and js but unfortunatly in this particular instance that will not do.

Code examples, function names, or just a point in the right direction would be much appreciated.

Thanks,
DrDankMendez

Default HTTP Referrer
What is flash ment to return as HTTP Referrer. As under IE7 with Flash 9.0.48, i think, its returning the flash app address (ie *player.swf) and under Mozilla based apps and Opera with Flash 9.0.48 it returns the webpage address containing the flash app (ie *player.htm) Which of these is it ment to return, or which do different versions of flash return if not overridden.

Loading Referrer From Flash
I am more or less new to Flash but I will be loading a Flash file inside a frame page and I want a button inside my flash movie which will return to the homepage but I do not want to enter a fixed address.
Is there anyway I could have a button which loads the referer? e.g. getURL(referer)
Thanks for any help,
jonny

Flash Does Not Send Referrer... Any Way Around This?
Hey folks,

I have a flash widget on my MySpace page, and I want to place it on a few other websites. I wanted to track where my widget is loaded by using the referrer, but when i use LoadVars sendAndLoad to tell PHP that the widget has loaded, the referrer shows up as blank.

Further investigation turned up a live doc that says they took out the referrer after flash 7. So, I ask you folks, is there another way to get access to this? Is there somehow a way Flash can see what page it's currently on? _root._url refers to the SWF file itself, but never shows the page it is on.

Any help would be greatly appreciated. The goal is to connect to PHP with some info, and have that referrer available. If it's not PHP, another server side language will do.

Help! Tann?!?!?!

~Noel

Hiding Buttons - Then Showing - Then Hiding
I have an issue
I want to click a button and have it dissapear then another button to appear.
I have that susted,

However, im using a mask and as the second button shows behind the mask it dispears again

i'll send the file if anyone needs more info

PLEASE HELP ME !!! - BEEN BUGGING ME FOR AGES

NAble Sea

MSIE And Flash Movies As A Referrer
Hi all,

I've encountered a small issue with MSIE and flash.

I have a standard HTML page that uses PHP to restrict access to users who aren't referred by a certain page. The link to the restricted page is in a flash movie.

Now this works in Netscape 7 (my default browser). NN7 recognizes both the flash movie and the page it's on as the referrer, and the page gets displayed. In IE, however, it doesn't seem to see *any* referrer, because on the restricted page that issues the refusal, I have a line of code that prints the referring document to the page, and in IE, *nothing* gets printed.

I've posted a message concerning this to a PHP forum as well. I hope this isn't off-topic, but I would think someone seasoned in Flash may have an answer.

Thanks,

Mike

Flex Framework Caching And Referrer
Something odd just happened. I enabled Flex framework caching in my
project and all of a sudden my url changed to have /[[dynamic]]/1 or
/[[dynamic]]/2 after the swf. After beating my head against the
keyboard a few times I came up with a wild theory. Could it be related
to the framework caching? So after a quick recompile... sure enough it
was gone. Anyone have any info on why I am getting this?

Weird Loader Behavior For FF2, Headers, Referrer...
Hi All,
So the first strange item is that in Firefox when you make a loader request:


Code:
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest('someurl');
loader.load(URLRequest);
the referrer isn't sent, but only for Firefox this works fine in Safari and IE. We figured thats just some stupid thing in FireFox and we moved on, we'll just make our own X-OurReferrer header. Bzzzzt.


Code:
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest('someurl');
request.requestHeaders.push(new URLRequestHeader('X-OurReferrer', 'whatever');

loader.load(URLRequest);
The new header isn't sent in FF, wtf? After some poking around and copying the example in the helpdocs line for line I came to these discoveries:

1) You _have_ to do a POST for the header to be passed, GET won't pass it.
2) You _have_ to pass some arguments along, even if its just foo=bar, request.data = new URLVariables("foo=bar");

If you don't do both of these in FF2 your custom header isn't sent. Plus, get this, if you do do a POST and pass arguments along then your Referer and Cookies headers are finally now passed in FF2.

So the questions are:

-Why does FF2 not pass the referrer header always
-Why do you have to do a POST _and_ send arguments if you want to pass custom headers
-Why do you have to do a POST _and_ send arguments if you want the referrer and cookies headers to go in FF2?

Thanks for any help, these seem like silly requirements.

Sam

Referrer Information Not Sent With A Flash Http Request
Anybody knows something about it? is there a way to solve it?

http://www.macromedia.com/cfusion/kn...layer_b06f1712

"... When using an http request (for example, through the use of loadMovie(), getURL() or loadVariables()) from a Flash SWF, the "referrer" information is not included in the header..."

Thx...

Need To Retrieve Site URL (http Referrer) Of The Site My Flash Player Is Placed On
Hello All,

I am trying to implement a custom flash player where my embedded source code (<OBJECT></OBJECT>) can be placed on various websites. I would like to gather some information of the users who are using my flash player on their site. I wrote the following code inside the flash player to gather the site URL (http referrer) so I can send this piece of information back to my server.

javascript: if(null != document.all) {
window.document['adbVcmAd'].Movie += ('&site_url='+encodeURIComponent(document.URL));
}
else {
window.document['adbVcmAd'].setAttribute('src', window.document['adbVcmAd'].getAttribute('src')+'&site_url='+encodeURIComponent(document.URL));
}
void(0);

var sl = _root.site_url;

I am able to get the site URL in IE, but I cannot get the site URL from users using Fire Fox.

If anyone has any ideas, please post a reply or send me an email.

Much Appreciated!






























Edited: 01/24/2008 at 02:48:16 PM by Flasher37

Hiding MC's
what is the best method to hide MC's that u wanna use but in specific time/place. Is is to use visible=false and then make it true when you wanna see it? or to make that MC with empty first frame and put stop there and then goto Action to the second frame when you need that MC...or attach method from library?
or something else?

Hiding A Mc
Im hoping someone can offer some assistance....

I have a swf I have created that changes a number of values of text fields dynamically based on a sliders position. I would like to hide a mc (bolt) when one of the textfields (TextFieldVDC) values is 0. The existing script I am using is below. Does anyone have any suggestions on how I could do this?

function calculation(val) {
fieldvoltage = 30-(val/10);
trace(val);
// assign to TextFields here
TextFieldVDC.text = fieldvoltage +" VDC";
TextFieldwinding1.text = (Math.round((120.2*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldwinding2.text = (Math.round((121.7*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldExciter.text = (Math.round((78.3*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldSensor.text = (Math.round((17.4*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldSubwinding.text = (Math.round((18.6*(fieldvoltage/24.6))*100))/100+" VDC";
TextFieldDCwinding.text = (Math.round((16.8*(fieldvoltage/24.6))*100))/100+" VDC";
}
slider_mc.slider_mc.onPress = function() {
startY = this._parent._ymouse-this._y;
this.onMouseMove = function() {
newPos = this._parent._ymouse-startY;
if (newPos<=0) {
this._y = 0;
} else if (newPos>=this._parent.bg_mc._height-this._height) {
this._y = this._parent.bg_mc._height-this._height;
} else {
this._y = Math.round(newPos);
}
this._parent._parent.calculation(this._y);
};
};
slider_mc.slider_mc.onRelease = slider_mc.slider_mc.onReleaseOutside=function () { delete this.onMouseMove;};
slider_mc.slider_mc._y = 54;
// TextFieldVDC.text = 24.6;
// TextFieldwinding1.text = 120.2;
// TextFieldwinding2.text = 121.7;
// TextFieldExciter.text = 78.3;
// TextFieldSensor.text = 17.4;
// TextFieldSubwinding.text = 18.6;
// TextFieldDCwinding.text = 16.8;
// just to test it
calculation(slider_mc.slider_mc._y);

Hiding Mouse
Simple, yet i HAVE NO CLUE type question.
I got another cursor, a sword, to flollow the mouse but:

A) it lags behind when i move teh mouse too fast, or much, it does eventually catch up but this could be frustrating, since it is in a game and:

B) I done the the code to make the mouse cursor, the arrow, be hidden i was told _root.mouse.hide, or _root.hide.mouse
but niether work.

can either of these be solved(i know the latter can be, i just cant figure it out.)

Hiding The Preload
after the intro or your main site is loaded my preload always stays inplace i dont know what to do to make it gone or hide it can someone please help me out.

How Do You Go About Hiding And Showing MC
If i have 2 buttons that target MC 1 and MC 2

MC 1 = false
if MC 1 = true
else MC 1 = false

MC 2 = false
if MC 2 = true
else MC 2 false

((I think that is the logic????? i don't know))

if i want so hide MC 1 and show MC 2 when I click on button 2

Is there a tutorial out there?

Hiding The Buttons
Hi

I got the problem while hiding the movieclip inslide the frame. can anybody help me how to hide the movieclip. and I am also having the poblem while hiding the buttons.


Sathya

Hiding Layers
Need help. I have a movie on level 1. I am loading another external movie onto level 2. My problem is that the buttons on level 1 are still coming through the movie on level 2. How can I make it so that the movie on level 1 remains underneath level 2, but the buttons become inoperable. Thanks in advance.

Hiding PASSWORD Value?
Hi FK..

how can you hide a password value with ********i know its something to do with

TextField.password=true

but how is this implemented in the movie? my in put variable is called "pw12" and is located on the first frame of my movie.

Any help appreciated i have searched FK to no avail...

Thanx in advance

Hiding Layers
got a quick question for you people.

Is it possible to hide and show layers of a timeline via actionscipt? if so how is it done.



Thankz people

HTML Is Hiding Some Of SWF
How do I get my browser to scroll down and show this entire SWF? I've tried changing the movie size and the number of pixels defined in the html code, but nothing works.



http://www.bbm.net/discountloops/discountloops.htm


Thanks!

Hiding The Toolbar
I've done this before, but can't for the life of me remember how..

I'm creating a .exe file from a .swf and I don't want anyone fiddling with the control/view/file settings etc.. how do i turn em off?

Many thanks!

Sven

Hiding Your ActionScript Like This
Take a look at this game:
http://www.orisinal.ws/games/sea.htm

I tried to open the SWF with Action Script Viewer 3.09, and I couldn't see the Action Script. What is the trick to hide the code like that?

Hiding The Placeholder
im trying to replace swf with a static jpg if the viewer does not have flash installed ................so far its been ok table with background of the static image and the swf positioned on top ......this shows the graphic no problem ................only thing is you can still see the place holder for the swf e.g the little white box with a red x inside it ( like for an image that isnt there ) anyone any ideas on how to get rid of this ?

Hiding Url In Window
Am I able to create a link on my button to open a new window and hide the url (address)? I don't need to resize it, just a basic HTML window. Thanks.

Jared

Hiding A Layer.
Is there code which I can apply to a button that when released will hide a layer on my main timeline?


much thanks for checking this out.

-h

Mouse Hiding
Hi, this is probably really easy. I have a movie clip set as teh cursor and I want it to make the area underneath it invisible so that it can see the layer underneath it - how do I do this?

Thanks,
Alex

Hiding Movies
ppl,

So i have a number of different movie clips on the main timeline. For arguments sake lets number them 1-4.

In a separate movie clip, there are 4 buttons. I would like it so that when a button is pressed, a piece of action script initiates which hides the other 3 movies on the main timeline, and therefore only plays the movie clip which the user selects.

There may be another way that i have not thought about, such as loading each movie into a container on the main timeline each time a button is pressed - but i have no idea how to do this !

Any help is greatly appreciated.

Hiding Lines
I'm creating a little scenario whereby a moving image (movieclip) is behind another graphic. Problem is, I can see a sort of ghost outline of the clip that plays behind the graphic.

Is there any way of making the image that is behind the graphic being completely masked by it ?

Hiding Buttons
Any way to make buttons invisible (or non-clickable) when a another movie is loaded on top? I don't really need them vissually invisible (I can't see them when the opther movie is loaded on top) but the curser does turn into the hand. Need them unclickable when movie is loaded on top.

Hiding Something To Show Something Else?
hello, im kinda stuck right now... what im trying to do is if you click on one of the links it highlights then tabs come out, then if you click on another it does the same. my question is - how would i have it so if i click on one it shows then if i click on another it hides and the other shows

im guessing ill use an "if then" statement but i wouldnt know how to write it... ive provided a link for the swf if you need the fla let me know

http://webmedia.bcit.ca/~a00572953/menu.swf

-Cody

Hiding Mc's Inside An Mc
ok i have buttons on the main timeline which i need to be able to set to hide movieclips inside a movieclip!!

the movie clip i need to hide has the instance name "pt1" and the movie clip which contains "pt1" has the instance name "page1"


any ideas???

many thanks

Hiding An MC/Button
I have a few custom buttons, each a seperate MC with instance names but I need to have it so that on(release) of one of the MCs, it makes itself invisible.

Thanks & Regards, Jonnie

Displaying And Hiding MC's
Hi,

Situation:
I'm currently working on a Flash app where you can place furniture on a drawing of a house (top-view). The furniture is represented by movieclips and placed on the stage with the 'attachMovie' command. I have an array (called storage) where i keep track of the furniture's id, name, xpos, ypos, rotation, heigth, width and floor. When a new piece of furniture is placed on stage, a record will be added in the storage-array. When a piece of furniture is moved or rotated, the storage-array is updated, by looking up the name of the editted movieclip in the array.

Problem:
Since there is a possibility to switch between floors (3), i have to hide the current floor's furniture and display the new floor's furniture. This doesn't seem to work out the way i did it: i just delete (unloadMovie) the mc's from the stage (NOT FROM THE ARRAY) that carry the current floornumber, place the new pieces of furniture back with the attachmovie command. BUT, however the newly placed pieces carry the same name, id and so on, it just isn't the same piece...No matter what action i do, i always refer to a piece of furniture via the array...

Question:
Is there a easy way to hide and display MC's that are placed on the stage with the attachMovie command?

Thanks!

Hiding Layers
Hi -

I'm very much a newbie to the world of flash and I just need to know if there's a way to hide layers when they aren't currently in use. I'm hoping that it's something really easy and I'm just being dumb.

Cheers,

Helen

Hiding The Pasteboard
I have a number of swf files that I load into my master swf. This loading all works perfectly. The problem I have is that when these swfs are loaded and begin playing you see the images that begin on the pasteboard or the relevant swf before they appear on the stage.

To explain, when I constructed a swf some of the images/graphics used begin 'off' the stage and move onto the stage. When exported as a standard swf file and played independently this 'off' stage does not show up. But when the swf files are loaded into my main swf and play I get all the spurious 'off' stage stuff shows up.

How do I get rid of this. I have tried putting a white border on the original swf's but then this blanks out the buttons and graphics on my main swf. Can I export the swf files and limit it to the stage dimensions?

Any help most appreciated.

THANKS

LEE

Hiding The Pasteboard
I have a number of swf files that I load into my master swf. This loading all works perfectly. The problem I have is that when these swfs are loaded and begin playing you see the images that begin on the pasteboard or the relevant swf before they appear on the stage.

To explain, when I constructed a swf some of the images/graphics used begin 'off' the stage and move onto the stage. When exported as a standard swf file and played independently this 'off' stage does not show up. But when the swf files are loaded into my main swf and play I get all the spurious 'off' stage stuff shows up.

How do I get rid of this. I have tried putting a white border on the original swf's but then this blanks out the buttons and graphics on my main swf. Can I export the swf files and limit it to the stage dimensions?

Any help most appreciated.

THANKS

LEE

Hiding FLV After Playback
Hi All,
I have an embedded FLV video via the mediaplayback component in a flash file.

Basically, after it plays, the mediaplayback screen stays black. I would like it to not be visible when the clip reaches the end, revealing the image on the layer below it.

Any ideas?

Thanks

Hiding Buttons
I have a button that I would like to become invisible when it has been clicked.
How do I do this?

Also when I click another button somewhere else on the stage, I would like it to become visible again!

Is there an easy way?!
Cheers
Chris

Hiding Animation
Please let me know if the question is hard to understand, and maybe I can try explaining a different way.

When hovering the mousecursor over a button, I want a seperate image to appear, and play an animation. So the animation is not on the button itself, but on a new image that appears. I have managed to make the image appear and the animation to be played.

The problem I am having is that if you hover the cursor over the exact area on which the new image appears, the animation is also played. Is there any way to hide this so that the image only appears when hovering the cursor on the button?

I hope my explanation is understandable. All help is very appreciated!

Hiding A Button
can someone tell me how to hide a button when I enter a frame
so I drag the button to my stage on frame 2,and I want the button to hide when I enter the frame
how do I do it ?
thx

[F8] Hiding Some Symbols
I don't know if these codes are correct....


Code:
var player_so = SharedObject.getLocal("player", "/", false);

if (Player_so.data.timerMode == 0) {
used._visible == false;

}
used is a text box converted into a symbol and player_so.data.timerMode is a boolean sending back whether it's free mode or not...

I want to hide the used symbol if it's free mode. Is this correct?

Hiding The Preloader...
Hi all,

I'm trying to have my preloader be completely hidden once the movie has loaded so when someone reloads the page they dont see it flash before the animation starts.

This is what i've thrown together based on some preloaders from other tutorials but i don;t think its working:

code:

onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
gotoAndStop(int(_parent.getBytesLoaded()*100/_parent.getBytesTotal()));
if (loaded == total) {
_root.gotoAndPlay(2);
}
}


Thanks,

Nick

[F8] Showing/hiding MCs
Hello

I've got a small problem here using MCs.

There's three in the same frame, and I managed to get them to work correctly; that is swapping depths and all.

But when i switch frames, the movies would stay on top of the other frame, which I don't understand.

So I've made a little research and used the _visible attribute, to hide them. That worked well too.

However, if I come back the the frame where the 3 MCs are, everything would appear to work as it did right before; but when I click on the MCs, it looks like the "mc.gotoAndPlay" and "mc._visible" won't work anymore (swapDepths works): mov1 is on frame 1 and the others on 8 as they should, but when I click on the others, they all get stuck on frame 1 (big). When I click "ret" again, the MCs won't hide.

Here's my little AS:

code:
var oldDepth:Number;

mov2.gotoAndPlay(8);
//start small
mov3.gotoAndPlay(8);
//start small

mov1.onRelease = function(){
if(this._currentframe!==8){
this.gotoAndPlay(15);
//go to full size if clicked while "growing"
}
else if(this._currentframe==8){
oldDepth = this.getDepth();
this.swapDepths(_root.getNextHighestDepth());
//bring to front
}
this.gotoAndPlay(9);
//make big
if(mov2._currentframe!=8){
mov2.gotoAndPlay(2);
//make small if not already small
};
if(mov3._currentframe!=8){
mov3.gotoAndPlay(2);
//make small if not already small
};
};

//same for mov2 and mov3, cut not to make a huge post.

ret.onRelease = function(){
mov1._visible = false;
mov2._visible = false;
mov3._visible = false;
//hide MCs on frame change
gotoAndPlay(203);
}


In short: works on first go, but not when you come back to the frame.

Please help, thanks

Help With Hiding Button
Hey guys, I need some help hiding a button that I have in a drop down menu. The button works when the drop menu is activated but I can also click on it when it's not. My Actionscript looks right so I don't really know where I'm going wrong. Any help would be greatly appreciated!!!!!!!!

Copyright © 2005-08 www.BigResource.com, All rights reserved