How To Load A Mc From Explorer Address Bar?
Hi
I saw some site that from adress bar ex. www.dmian.com?link=graphics loads the section or a mc in flash with name graphics
How is this possilbe or done!??
THnx a lot
Ultrashock Forums > Flash > Flash Professional
Posted on: 2006-06-02
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Load Movie Based On Explorer Address?
Hi!
I've got a question for all of you FLASH-masters out there.
I'm currently working on a website, based on ASP and a database. It loads the content on the page from a database.
Now to the problem. I've got a flash menu/image viewer at the top of the page. ( ex. When I klick on "About" the menu/movie clip shows an "About" image). The problem is that the website is based on only ONE page (default.asp) So, whenever I klick on a link, let's say "About" the page reloads and the About page is shown, BUT! the flash menu/movie is reloaded and moves back to the start of the timeline ( In this case the "welcome" image).
My question is: Is there a way to tell what part of the movie clip to be shown based on the explorer address, or is there another way around this problem?
I don't want to use frames on my website because then the scroller is "miss placed".
I hope I have explaind my problem fairly well, so you all can understan what the h*ll I'm talking about.
Thank you!
No Explorer Task Bar, Address Bar Or Buttons
Can anyone please tell me how to create a movie that is played in explorer without showing the Explorer task bar, address bar and buttons (i.e. Back, Forward, Stop, Refresh, Home, etc.)? Also, How can I prevent the user from resizing the window? Finally, how can I make the movie autoplay if I put it on a CD?
Timeline Controlled By Explorer Address?
Hi!
I've got a question for all of you FLASH-masters out there.
I'm currently working on a website, based on ASP and a database. It loads the content on the page from a database.
Now to the problem. I've got a flash menu/image viewer at the top of the page. ( ex. When I klick on "About" the menu/movie clip shows an "About" image). The problem is that the website is based on only ONE page (default.asp) So, whenever I klick on a link, let's say "About" the page reloads and the About page is shown, BUT! the flash menu/movie is reloaded and moves back to the start of the timeline ( In this case the "welcome" image).
My question is: Is there a way to tell what part of the movie clip to be shown based on the explorer address, or is there another way around this problem?
I don't want to use frames on my website because then the scroller is "miss placed".
I hope I have explaind my problem fairly well, so you all can understan what the h*ll I'm talking about.
Thank you!
Strange Code Appears In I Explorer Address Bar.
I have the following code which I shamelessly cut and pasted into a swf file (I want it to open an html window of desired size, etc.):
here is the code:
on (release) {
getURL ("javascript:window.open('http://www.yourdomain.com/yourpage.html','windowName','width=400,height=160, top=0,left=0,toolbar=no,scrollbars=no,resizable=no ,menubar=no,status=no,directories=no,location=no') ; void(0);");
}
When I click the button I get:
javascript:window.open('http://www.yourdomain.com/yourpage.html'
in the address bar.
Why?
Chris :-)
Strange Code Appears In I Explorer Address Bar.
I have the following code which I shamelessly cut and pasted into a swf file (I want it to open an html window of desired size, etc.):
here is the code:
on (release) {
getURL ("javascript:window.open('http://www.yourdomain.com/yourpage.html','windowName','width=400,height=160, top=0,left=0,toolbar=no,scrollbars=no,resizable=no ,menubar=no,status=no,directories=no,location=no') ; void(0);");
}
When I click the button I get:
javascript:window.open('http://www.yourdomain.com/yourpage.html'
in the address bar.
Why?
Chris :-)
Load Variables From Address Bar
i founded out, there is a way to load vars from addressbar like ../movie.swf?user=fphilipe .
i don't know how it works but i know it works. ultrashock uses this in the main page:
<param name=movie value="homepage-new78.swf?initData=Hey+Fphilipe%2C+welcome+back+%21%21%21%0AYour+last+visit+was+on%0A2004-01-19+18%3A32">
does somebody knows how it works???
Load Variables From Address Bar
is there a way to load variables from the address bar?
i mean like "../flash.html?name=BlaBla&email=blabla@bla.com"
it shoulds appear in the flash movie inside the html in dynamicfields.
Load Variables From Address + Username Add
i am trying to make a login for my site and i have the save text files to my server and that takes what ever you put in as your username and save a txt file that is username.txt so if you put in steven as your username it would save steven.txt
Any way i have that working and i need a login but i cannot get it to look somewhere on my server and what ever is in username it will load up that file +".txt" can you help me get it looking in say /members/username add ".txt"
Absolute Address In Load Movie
sorry for the newbie question, using MX on mac 10.2.6
How do I do an absolute address. Say the file is "menu.swf", and the folder it is in is "source" and I am using the load movie command:
loadMovieNum("menu.swf", 5);
And the file that is loading it is "top.swf" and it resides just outside the "source" folder in the "all" folder.
all (folder)
top.swf
source (folder)
menu.swf
I just don't know what the correct labeling/mark would be ( / , _ " ) etc...
what would be the full load movie command for this example.
thanks in advance for this simple question.
[F8] AS2 Load A Variable Via IP Address Link?
Hi All
I'm currently having a problem with loadVariables.
Is it possible to load a variable in a text file into flash player via the IP address to the text file?
i.e.: loadVariables ("\172.17.62.5animation$FSCOMMANDkey.txt", this);
The above code does not work
================================================== ==============
What I'm trying to do:
I have developed Flash projects for a client Company that are run via flash exe's.
These projects sit on a network server. This company is now concerned about the security of these projects.
If someone should copy the files off the server they should not play.
I thought of a solution that has a text file on the server with a variable that is loaded into the player at runtime. The link to this txt should be absolute, so if the folder is copied off the server and taken off site the flash player will no longer be able to find the network folder with the text file.
Does this required php, asp etc?
Or is there another way to load a variable into flash player from a IP addressed folder?
================================================== ==============
PATH on server:
\172.17.62.5animation$FSCOMMAND
Txt file text is:
&Keylock=786
The code in my flash file:
loadVariables ("key.txt", this); //load the Keylock variable into flash
trace(Keylock);//trace "786"
KeyDisplay=Keylock//Dynamic textbox to show 786 on screen
LockVar = parseInt(Keylock);//Set LockVar variable to Keylock value and convert 786 string to int
trace("Lock = "+LockVar);
//
if (LockVar == 786) {//if statement checks value and sends the playhead accordingly
gotoAndStop("Menu", 1);
} else if (LockVar != 786) {
gotoAndStop(20);
}
Thanks for your time and assistance it is appreciated
-Aslam
Load A Variable Via IP Address Link?
Hi All
I'm currently having a problem with loadVariables.
Is it possible to load a variable in a text file into flash player via the IP address to the text file?
i.e.: loadVariables ("\172.17.62.5animation$FSCOMMANDkey.txt", this);
The above code does not work
================================================== ==============
What I'm trying to do:
I have developed Flash projects for a client Company that are run via flash exe's.
These projects sit on a network server. This company is now concerned about the security of these projects.
If someone should copy the files off the server they should not play.
I thought of a solution that has a text file on the server with a variable that is loaded into the player at runtime. The link to this txt should be absolute, so if the folder is copied off the server and taken off site the flash player will no longer be able to find the network folder with the text file.
Does this required php, asp etc?
Or is there another way to load a variable into flash player from a IP addressed folder?
================================================== ==============
PATH on server:
\172.17.62.5animation$FSCOMMAND
Txt file text is:
&Keylock=786
The code in my flash file:
loadVariables ("key.txt", this); //load the Keylock variable into flash
trace(Keylock);//trace "786"
KeyDisplay=Keylock//Dynamic textbox to show 786 on screen
LockVar = parseInt(Keylock);//Set LockVar variable to Keylock value and convert 786 string to int
trace("Lock = "+LockVar);
//
if (LockVar == 786) {//if statement checks value and sends the playhead accordingly
gotoAndStop("Menu", 1);
} else if (LockVar != 786) {
gotoAndStop(20);
}
Thanks for your time and assistance it is appreciated
-Aslam
Load Variables From What The User Types In Address Bar
Hi,
I was just surfing and suddenly I found this site... www.youaremyfriend.com
How this site function really surprised me and I really want to learn how I can do the same thing myself. I hope some of you help me
What the site does is that you can put your first and last name before the domain name in the address bar and the flash file will use your enterd first and last name in the playing animation! Try this... www.Jack.Smith.youaremyfriend.com
Have any idea how it works?
Hadi
Swf Won't Load In Explorer
I am testing a movie and it loads fine in opera and netscape and firefox but when with explorer the preloader does not come up, only an empty space. Even if I type in a direct route to the swf such as http://mysite.com/introvideo.swf nothing happens. All the other browsers work fine. Any ideas what is causing this?
thanks.
HOW TO : Load Email Address From A .txt File For A Mailto Button
I have been trying to do this for a while and have fallen on my face.
I can't get my head around loadvars..... can't spot similar anywhere on the board, so here goes....
i wish to have a button which on release loads an email address from a text file, then sends using on(release); "mailto:email@email.com"
So that the recipient can be altered in a text file by changing the variable there, not in the flash file.
any ideas how i do that !?!
thanks very much for any hints in advance.... C
Load Variables Email Address From Text File Anyone?
I have the code below attached to a movieclip which i am attempting to use to call in an email address from a text file. The idea being that the textfile can be altered by a luddite, and the recipient email adress changed in the flash file.... but i'm not doing too well...!
The best i have achieved is undefined email or garbage.
all help greatfully received. thanks.
___________________________________
on (rollOver) {
this.gotoAndPlay(2);
}
on (release) {
loadText = function(){
loadText = new LoadVars();
loadText.load("email.txt");
loadText.onLoad = function() {
emailAddress = this.eAddress;
}
}
submit.onRelease = function(){
getURL("mailto:"+emailAddress);
}
}
on (rollout) {
this.gotoAndPlay(1);
Ie Explorer Will Not Load Thumbnails Correctly
sorry to bother you all with this, yet again, but nobody seems to have an answer...In mozilla, the thumbnails on my site work fine. But in IE , they do not scale. Any thoughts on why that is? The photos load from an XML file. each "gallery" is it's own swf, on _level1....the loader for main images is working fine in all browsers. Any help to resolve this annoying piece would be great.
www.foldedmap.com ...click "recent" for an example of the above problem
Scene Won't Load In Internet Explorer, Only In The .swf
Hey everyone:
I'm in a bit of a bind here. My site performs drastically different when it is run in Test Movie (.swf) and when it is run through Internet Explorer.
It has 3 scenes in the following order and no externally loaded .swfs:
Scene 2 (Preloader)
Scene 3 (Intro)
Scene 1 (Content - I originally began with this one but later added the Preloader & Intro)
When I test the movie from Flash CS3 or run the exported .swf, it runs through with no problems. However, as soon as I export it and run it in Internet explorer through .html file, it will only load the preloader, which then transitions to the intro, and then I get a white screen for Scene 3. I cannot get the main content scene to play at all.
It seems the problem starts with the code to embed the .swf into the .html page. If I run the .swf through internet explorer, it is fine, but then it expands to fill the whole page. I think it wouldn't be wise to run just the .swf online.
I would greatly appreciate any help in this manner!
Thank you,
Adam
*** Solution listed below
Monitoring Load Movie In Internet Explorer ...
Hi,
Does anyone know if you can monitor .swf's that are loaded into a .swf in internet explorer?
E.g. you can see the status bar loading the main flash interface, but if another .swf is loaded into the interface using load movie, can you monitor its download progress in IE?
Any ideas would be great
Thanks
Tim
[F8] Odd Flash Load Behavior In Internet Explorer
Have any of you seen this behavior? In firefox it works fine but in Internet explorer the flash images does not load until you move the mouse over the flash. I tested it with and without the javascript wrapped around. It is most likely related to my actionscript.
here is the website
http://www.death-by-design.net/product.aspx?c=tshirts
thanks for any tips,
-matt
Jpegs Wont Load With Internet Explorer
Hi, I am currently programing my portfolio site and I have tried a couple different ways of loading Jpegs from an images folder into an empty movie clip. Both worked sucessfully everywhere but PCs, which I hear are kind of important. First I tried the basic LoadMovie ("jpegmane.jpg", movieclip_mc) and that was unsuccessful. Next I tried the following code:
ink_mc.cacheAsBitmap = true;
mask_mc.cacheAsBitmap = true;
ink_mc.setMask("mask_mc");
var loader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();
listener.onLoadComplete = function(target:MovieClip) {
trace("LOAD COMPLETE");
target._parent.load_text._alpha = 0;
//target._parent.play();
}
listener.onLoadProgress = function(target:MovieClip, bL:Number, bT:Number) {
trace("PROGRESS: " + (bL / bT) * 100);
}
loader.addListener(listener);
print_btns.print1.onRelease = function() {
loader.loadClip("images/print_philroy.jpg", content_mc);
_root.ink_mc._alpha = 0;
_root.gotoAndStop("print");
}
I haven't had any problems like this before with PCs. Any suggestions out there?
THanks in advance.
Brandon
Dynamic Flash Images Don't Load In Intenet Explorer Until Mouse Over
Has anyone ever seen this behavior before where dynamic flash Images don't load in Internet Explorer until you place the mouse over the flash object? It works fine in Firefox. I am thinking it must be the way I wrote the actionscript. I tested it with and without the javascript wrapper to prevent users from needing to click on the object to activate it.
Here's the page to show you an example...
http://www.death-by-design.net/product.aspx?c=tshirts
Thanks for any leads or information on this issue!
-Matt
Problem Getting Flash/Director Animation To Load In Internet Explorer [renamed]
I am SUPER new, so please don't laugh at me...
I have created a VERY simple animation in MX2004 and placed it in an HTML file using Dreamweaver. When I visit it using Mozilla Firefox, it works fine. However, when I visit the site using Internet Explorer, it shows the Macromedia Shockwave "loadin bar looking" screen and never loads and doesn't display the animation. Please help me, I'm dumb! Thanks!
J
Internet Explorer And Flash - Freakin Explorer Bar
Okay, I'm pretty new at with Flash, and the whole actionscript/xml/xhtml stuff. When I upload my .swf to the web, I always get that explorer bar dropping bombs everytime I open the page. And I get it on just about every computer. Is there a special embed tag or some trick I'm missing to make that thing go away. Also, why do some sites automatically focus and others not. How do I do that?
Address Bar.
Hey,
I'm trying to make an address bar like that of the one in internet explorer, so that when you type in an address it's displayed, for example if the user enters 'www.mypage.com', then it should take the person to that website.
Thank you.
!phara0h
Ip Address
hello,
is it possible to get the users ip address by just using actionScript?
if there is what is the code?
if there isn't how else could i get the users ip?
thanks,
elo
http://www.transporter.at
Sub Address
hi, i have a flash website and want to upload another flash page to the site, but have it located at another sub address. so lets say the main website is at "website.com", i want to upload something to website.com/animation.
i want to be able to access website.com/animation directly, without going to website.com first.
how do i publish this?
thanks for any help, i probably should post this on the newbie board. but i'm not a newbie, i'm just dumb.
thanks
mc
IP Address
Can you grab a client's IP address through flash a flash movie?
Is It Possible To Know What URL Address You Are On?
Pardon my ignorance, but is there a way to find out what URL the page is on? or am I missing a fundamental stop(); and something else?
I have a menu that I use in my htm documents for a web site to navigate through it. When a page is selected, an animation is played and it graphically indicates the new page being viewed.
The problem I have is that as soon as the page loads, the movie plays from the begining as the swf gets loaded again. I have tried a stop(); at the first frame, but then the movie doesn't go to the frame where it is supposed to graphically indicate what page the user is on.
My tought is that if I can somehow read the URL I am on, then on my first page I can do some if statements to take me to the frame for each particular page so the user has the right graphical display.
Your help is much appreciated.
Is There A Way I Could Get The IP Address....
Hi you all!!!
Is there a way to get the IP Address (from within the movie) of the machine the Flash Movie is playing on?
Here's the scenario: I have multiple Flash Movies playing on remote machines, and each one has to validate against a SocketServer I have running on the Server from which the movies where downloaded from. Now the validation "UserName" has to be the IP Address.
I need to send this IP to the SocketServer so it (The Server) can look up each machine on a DB.
As always, I'll appreciate any help.
Thanks,
Francisco
Getting An IP Address
Does anyone know if you can snag an IP address in flash. Would like to be able to restrict only certain IP addresses from being able to get into my swf file. Any help would be greatly appreciated.
IP Address
I was wondering if anybody can help,
I have only just started using flash/dreamweaver....... I have made up a contact form in flash that posts to a CGI script. On the form itself I want to display the users IP address, this is to stop people abusing the form.
I have no problem using something like shtml to get the ip but I do not know how to pass that variable into flash or if there is an easier way just using action script itself
Thanks for the help in advance
Grimmis
Ip Address
i want to know the ip address of users who have entered my website
Ip Address
i want to know information about the visitors who entered my site like their
ip addres and their dns name and when they entered the site
Mx: Getting Address Url
If I have an swf [nav bar]say on www.site.com/games
is there a way I can read the address and have a text field display games, then if I had the the swf nav bar on the index page, make the text field display home?
I dont mean by using _swf, becuase that only gives the address of where the swf file was downloaded.
How Do I Get The Url Address?
this is probably a very simple one:
i have a simple SWF in an html page.
this html page can get a query (index.html?some=thing )
in my swf i need to get the whole url and then forward the query to another url.
how?
Get IP Address
Probably silly Q here but am going to ahead and ask. I basically need a way to obtain IP address in flash. What I have so far;;
In PHP:
<?
$ip = getenv('REMOTE_ADDR'); //~ get ip address
$ip = "&ip=".$ip."&"; //~ make it a flashable variable
echo $ip; //~ spit it out
?>
In FLA with dynamic text box named "myTextBox" and on the first frame- the actionscript is:
myLoadVars = new LoadVars();
myLoadVars.specificvariable = "Value";
myLoadVars.sendAndLoad("http://www.mysite.com/ip.php", this, "GET");
myLoadVars.onLoad = function() {
myTextBox.text = this.ip;
};
Now it's not working. Can anyone help me out to get this fixed? Thanks!
Get MAC Address
Hello folks,
I was wondering if there is any way to retrieve the MAC address of the client using AS?
Thanks
Swf Address
the sample code that swf address comes like this:
but as you can see, in the line below it uses timeline to switch pages
gotoAndStop('$/error/');
my question is what can i replace gotoAndStop with so i can build the pages dynamically
thanks
ActionScript Code:
// Custom utilities
function replace(str, find, replace) {
return str.split(find).join(replace);
}
function toTitleCase(str) {
return str.substr(0,1).toUpperCase() + str.substr(1);
}
function formatTitle(title) {
return 'SWFAddress Website' + (title != '/' ? ' / ' + toTitleCase(replace(title.substr(1, title.length - 2), '/', ' / ')) : '');
}
// SWFAddress actions
function btnClick(e:MouseEvent) {
SWFAddress.setValue(e.target.deepLink);
}
function btnRollOver(e:MouseEvent) {
SWFAddress.setStatus(e.target.deepLink);
}
function btnRollOut(e:MouseEvent) {
SWFAddress.resetStatus();
}
// SWFAddress handling
function handleSWFAddress(e:SWFAddressEvent) {
try {
if (currentFrame == 2 && e.value == '/') {
play();
} else {
gotoAndStop('$' + e.value);
}
SWFAddress.setTitle(formatTitle(e.value));
} catch(err) {
gotoAndStop('$/error/');
}
}
SWFAddress.addEventListener(SWFAddressEvent.CHANGE, handleSWFAddress);
stop();
SWF To Run Only On Specified IP Address
I'm designing and hosting Flash sites on my dedicated server.
Is there a way (script) for me to ensure that the SWFs only run if they are hosted on my server (IP Address)?
URL Address?
How do i know my application URL address??? Does it suppose to be like this...
http://localhosti forgot the port no.)/xxxxxxxx(where file/application existed)???
For your all acknowledgement, i'm installing flash comm sever under Developer Installation Mode and under Win XP OS, not under Window Server or any other web server... so am i suppose to have web server like apache or Window Server just to have the URL address??? am i wrong???
IP Address
I just added an option to send a text message to my cellphone on my site... I wanted to know if there's a way to get a users IP address using ActionScript, so that I can get it in case someone decides to stalk me...
Raf
Help With Mc Address
i need to include a text that is in a external file (txt). I can call him from the _root, but when i try to do the load from one movieClip it doesn't work.
this is the code that i put in the button:
on (release) {
loadText = new LoadVars();
loadText.load("data.txt");
loadText.onLoad = function() {
texto.text = this.historia;
location.text = this.location;
};
}
thanks in advanced!
|