ActionScript 3.0 :: How To Create URLRequest With Non Direct Link
Apr 23, 2012
I have one simple question. When you type this line of code in AS3:
var req:URLRequest=new URLRequest("somephp.php");
You get this error:
TypeError: Error #2007: Parameter text must be non-null.
So my question is how do you create URLRequest with non-direct link (so no [URL]).
Didn't try to install 2004/2005 software until now, which REQUIRES by all means SPECIFICALY Flash Player 7 before continuing installation Tried with latest version of FP but to not avail does not proceed with installation till FP 7 is in HD first.
I am currently looking into the NetGroup class and AIR. Basically, is it possible to establish a direct link between two users without the need of a server? Lets say both of them have this AIR application or better yet its just a swf hosted on some private server of mine. Could two people use this application and simply send and receive files between each other? Eliminating the need for uploading sites like rapidshare?
i made a video player with the xml playlist , it's a video channel indeed, it's embed swf in html. but my boss would like me to put a link on the web, when user click the link, it would directly play the specific video inside the video channel. is it possible to do it without server side script but javascript?
I'm trying to send variables to a payment gateway (dibs) and need to post variables to the likes of[code]...
In creating a dynamic variable I'm doing this, which works. But it's not posting the values to the php-page. (The "normal" variables are being posted just fine, so the error isn't there) [code]...
Im building a flash banner that takes dynamic xml data from another domain and displays them as links. To make the swf reload the xml (the xml links change all the time) every time Internet explorer is updated (instead of loading from the cache) I added +new Date().time to my URLrequest, and suddenly the links takes 9 seconds to display. Firefox doesnt have the cache problem and without the +new Date().time it displays the updated links almost instantaneously. Can anyone tell me why this happens and how I can fix it?? a 9 seconds loadtime is too long.
Here is the first parts of my code: __________________________________________________ ____________ var xmlLoader:URLLoader = new URLLoader(); var xmlData:XML = new XML(); //en trace variabel til hover state. Fjern da ogs� variablen de steder den benyttes. var hover:Boolean;
[code]....
After that I use the linkList to dynamically create the links as textfields, with some formatting, hoverstate, linebreaks etc. only thing I changed was adding the +new Date().time, and it displays the links so slow.
In my movie i have a link button with following, simple, function creating a link:
[Code]...
lately i've associated a class file (.as) to my movie and immediately after, when publishing the movie i got the following error message: 1046: Type was not found or was not a compile-time constant: URLRequest. as well as a couple of other related error messages: 1180: Call to a possibly undefined method URLRequest. 1180: Call to a possibly undefined method navigateToURL. when i remove the link to the class file, the problem goes away. also, i have checked the class file for mentioning of "URLRequest" and nothing is there.
How do you create an email link so that they click on the link and their send email (outlook or netscape) box pops up with the email addy specified in the send to box.
I've created an eye candy. When it's finished, i'd like it to be programmed to automatically time out (after 6 seconds) and go directly to another url without the user having to click on anything.
Currently i have a button that clicks to another url: on (release) { getURL("http://www.alteregostyle.com/company.html","SELF"); }
I have been trying to understand how to create a url link with the xml file that my menu is driven by. what I have is a menu with text amd images reading from an xml file, I have created a third text field which I would like to use as a button/link that when click it goes to a url.this is what I have for my XML:
I'm sort of new to flash. I've created a pretty nifty intro video for a website and I want to have an 'enter site' link appear at the end of the video.
Im making a website and in frame 1 on the main timeline I have mouse down code for a button in a movie clip not yet on the stage (it appears when a mouse_over event is triggered).[code]How do I create links for menus that arent yet being shown on the stage?
I'm making a website in dreamweaver with flash in it, I want to link an image that I have in flash to another page (.html) that I have in dreamweaver. When I first used flash and dreamweaver I had done it, but honestly now I completely forgot and can't figure it out. I know I didn't use any action scripts. I just put the page name (???.html) somewhere and it worked.
I created a simple SWF slideshow in Flash with 5 slides. I was able to link one URL to the whole file by adding an alpha button.What I can't figure out is how to add a URL link to each slide. The SWF file i sused on a website and I would like to be able to click on a particular slide as it is playing to go the a site or page that applies to that slide.[code]...
I need to create a link to a particular frame that uses a frame label in AS2, so the AS code would be within the time line on another frame. I can either do this with a hyperlink if that is possible or I can create a button and convert to a MC. Whichever way is easier.
I want to create a URL link for the description text. Everything works fine until I get to the actual link - it's displaying the HTML. I've clicked on the HTML button in the properties inspector for the text field (see the attached photo); I've also added the following in the AS:
I am trying to create a button that link to a website and I cannot for the life of me get my flash to open a new window to a site. I am trying to have specific links to different sites for each slide, I'm not sure how to get it working. I get an error message of:
TypeError: Error #2007: Parameter url must be non-null. at global/flash.net::navigateToURL() at MethodInfo-119()
my script is the following:
import fl.transitions.*; import fl.transitions.easing.*; var imageWidth:Number = 0;[code].......
Im trying to create an implied webpage link to twitter, facebook, you tube ect. I have buttons with the logo on it! However for my work i can not just link to a webpage as it all needs to be contained in the files i.e. on a computer that doesnt have an internet link! I was thinking of having the page as a swf that loads in on a seperate layer on top of the main site, which can then be closed via a exit link on the page!
However im not sure what script i would need to put on the Facebook button to crate it to load, and what script to put on the x to make the link close! Or am i even doing it the right way! Should i be some how enbeding the webpages in the the flash file?
I have been trying to understand how to create a url link with the xml file that my menu is driven by. what I have is a menu with text amd images reading from an xml file, I have created a third text field which I would like to use as a button/link that when click it goes to a url.[code]but this doesn't seem to work, am I missing something within the flash movie.URL...
I am trying to do: [URL]. This is a little webpage I'm building as I learn more and more flash. I am at a point where I need to link .mp3 files to the buttons on the "Dan's Top Songs Playlist". If you like, you can download my flash file here: [URL]. I am working with ActionScript 3.0. The buttons in the Media Player are all instances of the same button. How do I tie each button to a different .mp3 song to play when clicked (and stop when another song is clicked or the pause button is clicked)? Because of the size of song files, I'd like to stream it. Also, is there any way to use the "repeat" symbol to just play all the songs in order and the "shuffle" symbol to play them in random order? Attachments: fbar.zip (1.8 MB)
having previously made webpages just in html.I have a flash movie and wanted to add a series of links.I've made some buttons, but when I rightclick on them and go to actions, I don't get the 'basic actions>geturl' command that the help screens tell me I should have. I get some other crazy menu with options like 'Global Functions', 'Actionscript 2.0 Classes' etc.how I can bring up the actions menu that will allow me to create a link from my buttons?
I've made a component based on a mx:TitleWindow that contains linkbuttons that I'm using as a context-menu. The TitleWindow component contains link buttons like this:
[Bindable] private var _showEmailThis:Boolean = false; [Bindable] private var _showApproveThis:Boolean = false; [Bindable] private var _showReviewThis:Boolean = false [Code] .....
This component contains a large number of links and is re-used by multiple modules in the same application. Within each module, this component is used when a user clicks on a row in a datagrid. The code looks like this:
In "Requests" module: private function dgRequests_click(event:MouseEvent):void { menu.showApproveThis = true; menu.showReviewThis = true; }
In "Performance" module: private function dgPerformance_click(event:MouseEvent):void { menu.showEmailThis = true; menu.showReviewThis = true; }
As you can see, the visibility of individual linkbuttons is controlled within each module by setting boolean properties. If I alter this component to use a renderer, how can I control the visibility of the linkbuttons from the code in each module (there are over a hundred links with different functionality - not every link will be used in each module)? Note: it is not known from the back-end which grid within which module uses which link. This is set in the front end within each module's actionscript file. E.g., if the XML looks like this: [Code] .....
And I set the Email link to show in the module like this: private function dgPerformance_click(event:MouseEvent):void { menu.showEmailThis = true; }
How do I make it take effect? Is there a way to control the visibility of a linkbutton within an item renderer in a component from the module that uses that component?
I am trying to create something like a dress up game. The first screen would be all the body parts(e.g hands,head etc.) and once users click on the next button they will be taken to a new scene with the assembled body parts where there'll be clothes and accessories for users to choose.My question is how to create the next button which will link to another scene containing the assembled body parts.