ActionScript 3.0 :: Link (code) Swf Pages To Each Other (through Buttons) When Making A Flash Site Or Portfolio?
Nov 2, 2010how do you link(code) your swf pages to each other (through buttons) when making a flash site or portfolio?
View 5 Replieshow do you link(code) your swf pages to each other (through buttons) when making a flash site or portfolio?
View 5 RepliesI Am Trying To Make Buttons In Flash That Link To Other Pages On The Site. When You Press On A Button, It Will Take You To A Page Like main.php?page=thepage. (Which Also Has Flash)I Am Trying To Use The Variable page (from The Url) In The Flash On The New Page. How Do I Get It From The Url, Into The Flash?I Have Looked All Over But Cannot Find A Solution That Works.
View 3 RepliesI created a Flash CS4 document which contains 2 buttons. I used the code below to link the two buttons to well known web sites, tested them in Flash and the buttons work fine.
[Code]....
i'm making my own portfolio full dynamic flash site. And animation and interface is ok. But i don't know about connecting to database. And i read about PHP+AS. And i couldn't get a good point.
View 4 RepliesI have created a basic flash navigation menu bar for my website. I have added the bar into a frame on my dreamweaver page. I was just wondering if it was possible to link the buttons on my flash bar to open the pages into the main frame below my navigation bar? The code I have at the moment for my "home" button is the following:
master_mc.home_btn.addEventListener(MouseEvent.CLI CK, homeF);
function homeF(e:MouseEvent):void{
var homeL:URLRequest = new URLRequest("C:UsersSalisburyDocumentsProjecti ndex.html");
navigateToURL(homeL,"_blank");
and this is opening the "home" page in a new window. Is it possible to make it open it in my main frame (called mainFrame)?
I'm working through Dreamweaver fairly well, and I'm now wanted to import Flash buttons I've created myself into Dreamweaver for a website I'm currently building, and it's here that I'm finding the problem. I have been to the 'get URL Function', but it says something about needing to link to a web page? But my problem is how can I link Flash Buttons to a web page, when my site is still being developed and not published? Do I have to publish first?
View 3 RepliesI am new to the community, I doing a free website for internship purposes, long story i cannot get my buttons to link in flash site, i have tried many different codes and none had worked, i am a newbie and i need some guidance in the right direction. I have three links Link1, Link 3, and Link 4 The current code I am using is import flash.net.
[Code]...
I am attempting to make a flash website, and have 5 buttons on my menu. I made 5 pages in a movieclip called "content". I want to know how I can link those buttons to go to those pages (actionscript and where to put it).
I have seen flash website templates, and see only ONE button, but when I looked at it in an .swf, it shows all buttons with their specific text label.
I'm just picking up flash and I am trying to make a new menu of buttons in the template and I will be changing the menu that is already there, but it isn't using conventional menu coding. This is the piece of code I am trying to use for my button to lead to a different movie clip to a different frame than the one the buttons are sitting in, a separate movie clip.
stop();
customhms_btn.addEventListener('click', function(e:MouseEvent):void{
gotoAndStop('customhomes');
});
Of course there are more buttons, this is just one. Customhomes is the frame label, customhms_btn is the instance name. It tells me that customhms_btn is not defined. I have this code sitting in the movie clip that the buttons are in by itself in the first layer.
I am building a basic website and am trying to set up my buttons to link to my different pages. But some of them are not working and I have no idea why. The ones that arent working are in the red box. I really don't know why cause they are set up the same as the rest... is there a bug or something I dont know that wont make these work. Anyways my actions page looks like this:
[Code]...
I get this in my output when I click on my pre-loader button, which works great and sends me to the home page... but when I get there the code I wrote for my portfolio page to click on portfolio and have it take me to the portfolio page isn't working.... It gives me the faollwoing output error....object reference. at Website_fla::MainTimeline/Website_fla::frame1()[Website_fla.MainTimel ine::frame1:13]
[Code]...
I have recently created a flash site and I am trying to update my online portfolio. How do I take a snapshot of the homepage of the flash site for my portfolio?
View 2 Repliesi want to make a new portfolio site in flash... i was thinking on using as much server-side scripting as possible, to make in easier to update and add some features like flash guestbook/mail form and some other stuff... I was wondering... is it possible using php and mysql to add content to the portfolio without modifying the flash itself? Is there a tutorial regarding this? WHat i want, exactly is to be able to add photos, sites, prints and other stuff to my portfolio like i would add a post to this forum... the title being the title, the message being the description of the project and the pic i can attach being the photo itself..
View 14 RepliesOk so I have bought books and watched hours of tutorials and its painfully obvious that I am not picking AS3 (or any scripting)up very well.
I am creating a Flash Portfolio site and I am curious about the correct architecture. If I have a central Nav with corresponding animations, should the whole site reside on one stage or a new stage per animation?
If there is a FAQ or tutorial on Kirupa that covers this (I might have missed it)feel free to simply direct me there.
Im trying to make two buttons for my artefact to link to facebook and twitter, but it doesn't work. I've got no error messages or anything, I just click the button and it doesn't do anything
The code is the following:
BTN_FACEBOOK.addEventListener(MouseEvent.CLICK, FacebookClick);
function FacebookClick(event:MouseEvent):void{
var getFacebook:URLRequest = new URLRequest("[URL]");
navigateToURL(getFacebook);
}
BTN_TWITTER.addEventListener(MouseEvent.CLICK, TwitterClick);
function TwitterClick(event:MouseEvent):void{
var getTwitter:URLRequest = new URLRequest("[URL]");
navigateToURL(getTwitter);
}
I've been working on my first full blown flash site for a few weeks, tackling problems as I encounter them, and I've learned a lot...but sometimes the simplest things I cannot figure out for the life of me. All I am trying to do is have some flash banner SWF files play within the portfolio page of my site. I don't want them to open in a pop up or anything just play within the page when the link on my site is clicked. I figured it would act like a movie clip and I could just drop it onto the stage, but when I do that it doesn't look right, loops continuously, and is not interactive. How can I make this work?
View 0 RepliesI am pretty rusty when it comes to action script. I am using CS3 and want to have an XML file that has the links likeimported into the flash so when a button is clicked it will go there...I have looked at numerous examples but all are too complicated for what i want to do.I will pay someone via paypal if they want to do this quick fix for me... I can send the file... should be strait forward for someone knowing waht they are doing
View 3 RepliesI am trying to figure out how to make buttons on my flash file link to URLs that appear in a window of fixed dimensions (with scroller bars) next to my Flash window. I am aware that Adobe has instructions for creating pop-up browser windows through Flash [URL]. However, what I'm trying to do is a bit more complicated, since I want to have multiple embedded invisible buttons in the Flash window that each take you to a specific URL when you click on them. Alternatively I'd be happy if any button click resulted in a link to a random selection from a pre-programmed list of URLs. This is for ActionScript 3.
View 5 RepliesI looked all over but I couldn't find what I would think is a pretty standard flash tutorial - so in sudden desperationI need a tutorial that teaches me a way you can make flash websites in as3 have an animation function when going to a page, as well as an animation function going to another page.
View 1 RepliesWhat I need is a code that sends the user to a speacific page, everytime that button is clicked. The way I have been trying to do this (which may be wrong) is to set up each page on a different keyframe in the timeline (with stop actions on each one) - surely its now just a matter of adding an action to link each button to their page?
View 2 RepliesI'm working on building a personal portfolio site right now. I wanted to add a scroll feature to one the pages. I wasn't sure how to build it, so I down loaded one off here [URL] and just plugged my own graphics into it. It scrolls up and down just fine, but when I try to put a mask over it, it doesn't work. In the content the author wrote for his movie he says "Note: If you want to have a mask over the content: copy MC:frame and make it a mask for MC:Page. If you do so, notice that "non-anti-alias text" is not possible anymore. This is a common thing in a Flash Movie. I keep trying that and it just blocks everything out all together. So what am I doing wrong?
View 1 RepliesI'm looking for a workaround to the "AdSense does not let you choose only images but no flash" issue. I'm rather a newbie to JS, but is there any way for one script to prevent other scripts embedded in a site from detecting the presence of the flash plugin? Even if it doesn't work with AdSense, it would be nice to know if there's a hack to do this that might work in other settings.By the way, I suppose I wouldn't care if it failed to work on IE or obsolete browser versions.
View 1 RepliesI am trying to build a portfolio site with a 3D rotating effect.I am new to Papervision so I might be doing something stupid with my code. Anyway, this is my code, but nothing shows up on stage when I load it:
Code:
private function init3D():void {
opaqueBackground = 0xFFFFFF;
camera.focus = 100;
camera.zoom = 11;
[code]....
note: assets is an array of movieclips that I created containing my images loaded from an XML file.
I have a asp.net master page that gets used by pages many /levels/deep/. I will put a link to a flash file in this template. I tried doing it like this but it did not work, what the best practice here?
<object width="924" height="200">
<param name="movie" value="/live.swf">
<embed src="/live.swf" width="924" height="200">
</object>
I have a website with a flex application. The flex application has no user input - except for clicks for navigation. The website also uses no scripting language - i.e. no php, asp, jsp or cfm.
The website just consists of one page which contains the flash file for the flex application. The source code of this page is here: [URL]
I have been advised (by a software program used by my client) that this website is vulnerable to a reflective type XSS attack and have been advised to 'sanitize' all user input.
respect to XSS and would respectfully like to ask that AFAIK there is no user input. What should I sanitize and how?
I'm working on creating a gallery for my portfolio site. I have thumbnails of all my work. I've turned them into button and made it so when you rollover it, a larger preview of it appears with a description of the piece, off to the side in a designated area. Instead of making my stage larger or creating more pages to contain all my thumbnails, I made a vertical scrollbar. The scrollbar works just fine. The problem is when the thumbnail is moved, the rollover that would be moves in relation to it.how can I absolutely make sure that any rollover I create with a button is where I want it to be, no matter where the thumbnail moves to?
View 10 Replieswhat is the easy to learn platform platform to create a colorful display and link it to hard coded some pages
View 1 Replies- I made a flash-based website using Flash CS3 and then embedded the file into a blank html page with Dreamweaver cs3.-All my buttons, linking, and content were made in Adobe Flash CS3 using ActionScript 2.0 (AS2).The issue I am encountering is that when i click on some buttons that have get URL codes, they will not load the html files assigned to the As2 code of the button. The html files are supposed to load in a separate browser window for each html page assigned to each button. The html files are located within subfolders in my Main Site Root Folder.All my AS2 code is Object-based; meaning I applied it directly to my button symbols.
View 4 RepliesI'm new to this CS4 world and I can't make my buttons work...I'm trying to make a portfolio. I have a button created named "books". I created a new layer just to insert the AS of that button and to stop the movie clip...the button is inside that movieclip.
Here is what that layer contains:
[Code]...
EDIT I took off the ":void" part and the compiler doesnt show me any errors. But still it doesn't go to the "design" frame.
I designed a flash banner with buttons. I am trying to get those buttons linked to other pages in my website. I have tried several methods but none appear to work. The first thing I tried to was to assign the buttons to my other webpages through using the behaviours under the windows tab in Flash CS4. It worked when using the publish preview option (preview in flash) and choosing Flash, but when I went to add the banner to my webpage through Dreamweaver, the buttons would not work. I tried another method and used actionscript 3.0. I kept getting errors.
[Code]....