AWESOME it works!
thanks a ton for the fast response. love this file
Posted 6 months ago
A simple base template using SWFAddress. For those unfamiliar with it, this will give your flash site full back, forward & reload functionality. For example, if you click one page then go to another you can use your browsers back button the way you would with any html based site. You can also deeplink directly into pages within the flash file.
The template is XML based. All titles, buttons, pages and SWFAdress sctions are generated from a single XML file. Simply made a node for each page, give it a title and the file will do the rest.
Posted about 1 year ago
In the XML file just put this;
<img src="clip.swf" id="mySwf"/>
That will load in an SWF called clip.swf.
The instance name for that swf will be whatever is in the “id” attribute. So in the case of the example above, the instance name would be mySwf. If you wanted to run a function in that swf you’d say textfield.mySwf.someFunction ().
Posted 6 months ago
Great to hear pdog.
Just for reference you should check Adobe’s docs on supported html tags. There are a bunch of other things you can do with the textfield. For example, you could add a width and height attribute to change the size of the swf. You could also load in movieclips from the library if that suits the situation better than external SWF ’s.
Posted 6 months ago
how easy would it be to make the “about us” text load initially, as a welcome/front page ?
instead of having a frontpage that is just blank,.
Posted 5 months ago
To get any initial page to load up just put SWFAddress.setValue(pageYouWantToLoad) somewhere at the bottom of your code.
Posted 5 months ago
Hi.
I am embedding different swf’s in textfields for each of my menu items, but stuff like mousewheel scrollbars and mouseover-effects do not work after embedding my swf in html.
It DOES work fine in the swf, but as soon as its hosted in an html, some functionality disappears..
Do you have any solution to this?
Thank you very much!
Posted 5 months ago
love this file, have a question…
How can i make the nav stacked on left side instead of across the top?
Posted 5 months ago
William, what version of AS are the SWF ’s you’re loading? I think it may be a problem with the scoping of the swf being loaded. I’ve sucessfully loaded external SWF ’s containing video players into the file and haven’t had any issues controlling them.
Posted 5 months ago
nsweeney, send me an email through my profile and I’ll send you a modified version of the FLA with the menu stacked on the side.
If you want to have a go at it yourself (and fully understand what changes were made) the following shows what needs to be changed (only 4 lines of code) http://pastie.org/221530
Posted 5 months ago
geoken, im using AS 3 .0. can I send you an email with an example of my code?
Posted 5 months ago
William, send me an email through the link in my profile (Only sellers have their email address visible in their profile).
Posted 5 months ago
Question before I purchase. Is it possible to add more pages as well as new menu items for the pages? And can the text be scrollable?
Still learning and growing my knowledge in web design so please excuse me if this is an obvious answer!
Clean and simple design and also very workable as it is! Just need a couple extra pages for it to work for me!
If not I will defenitly consider it for other clients requiring minmal content.
I appriciate your help as well as your talent in web design!
Posted 4 months ago
All you need to do is make a new ‘page’ entry in the XML and you’ll have a new page as well as a new menu entry for that page.
The text is already scrollable. In the demo, click the ‘Information’ category then resize your browser (width wise) until the textfield is too thin and the text exceeds the viewable area. You’ll see the scrollbar appaer.
Posted 4 months ago
Nice work. A small doubt…
I just bought the file, and I’m reading that TweenLite.as must be included in a flash installation folder. Will this mean that I also need to paste it somewhere in a similar location of my hosting server when I upload it?
If not, then why should I ever need to paste it on the actionscript classes subfolder in the first place?
I’m new to AS3 …
Posted 3 months ago
I bought the file and love the code but I’m having trouble setting the initial page, I saw the post above and it works fine when I compile in flash, but when I deploy it to a server the initial page doesn’t load, if you click on a menu item it works fine… any thoughts?
Posted 2 months ago
@Lozbo: The reason you need to paste it in your actionscript classes folder is because Flash needs to reference it when it compiles (aka. ‘publishes’
the SWF . When you compile/publish the file, the code in the external class gets embedded into the SWF so it doesn’t need to be included anywhere on your server.
@beaubarbour: The easiest way to set a default page is to use the SWFAddress.setAddress method and pass the page you want as the value.
Posted 2 months ago
hi, i have just bought it and it works correcly, very nice templat….. but how can i resize the principal text area by default to get it bigger ?, without to change the others parameters thanks…....
Posted 25 days ago
lou, are you referring to the size of the text or the actual dimensions of the box?
Posted 23 days ago
Great file! Curious how to change font on nav? Also- is it possible to do mouse over / highlight the font of the current page – or does that get too tricky with SWFAddress?
Posted 14 days ago
The main menu duplicates that black box you see on the left (a couple pixels off the side of the stage). Double click that MovieClip and inside it you’ll see 2 layers, the lower layer has a textfield on it named “tx”. For technical reasons this textfield is below another clip so you’ll have to hide the top layer to select it. Change that textfield to whatever you need and the changes will be duplicated throughout all the menu entries.
For mouse over/mouse out actions add the listeners in the createNav() function. You’ll see the part where I add the click listener, just add yours below this.
Posted 13 days ago