Access button inside MC on stage
I have a movieclip on the stage (MC_01) that has a button in it (btn_tip_ows). I need to to get it to work from the main timeline.
If I place the button on the main timeline, the following works.
btn_tip_ows.addEventListener(MouseEvent.ROLL_OVER, rOverowstip);
btn_tip_ows.addEventListener(MouseEvent.ROLL_OUT, rOutowstip);
function rOverowstip(event:MouseEvent):void {
Tweener.addTween(mc_tip_ows,{alpha:1, time:.5, transition:"easeInOutQuad"});
function rOutowstip(event:MouseEvent):void {
Tweener.addTween(mc_tip_ows,{alpha:0, time:.5, transition:"easeInOutQuad"});
I still get the error 1120. This is what I have:
On stage: MC_01 and mc_tip_ows
btn_tip_owsis inside MC_01
mc_tip_ows can go inside MC_01 if needed.
My current code:
mc_tip_ows.alpha=0;
MC_01.btn_tip_ows.addEventListener(MouseEvent.ROLL_OVER, rOverowstip);
MC_01.btn_tip_ows.addEventListener(MouseEvent.ROLL_OUT, rOutowstip);
function rOverowstip(event:MouseEvent):void {
Tweener.addTween(mc_tip_ows,{alpha:1, time:.5, transition:"easeInOutQuad"});
function rOutowstip(event:MouseEvent):void {
Tweener.addTween(mc_tip_ows,{alpha:0, time:.5, transition:"easeInOutQuad"});
Thank You for any help.
Similar Messages
-
Button inside movieclip on stage
What do I have to do to get the button to work? I view the swf and there is no active button.
I need the button inside the clip to be active. I can't find the answer. Thank you.no i put a button from the library inside the clip to see if i could access a button once movie played and i couldnt see the states of that library version if I viewed the scene I could.
I was going to create my own button, which I will, but I don't think I will be able to get to it once publised and I'm frustrated.
I think I have run into this before, it's been a while. Is it an enable thing? -
Accessing Button inside Movieclip/ScrollPane
Hello all,
I'm trying to understand how to build a button inside a movieclip. I have a template that has movieclips within movieclips, and when I create a button (all using AS2) the button will work if I test the scene, but in the whole flash movie it does not work. I also have some buttons located inside a ScrollPane that also do not call correctly.
For my button I am using this code:
facebookbtn.on (release) {
getURL("http://www.facebook.com/","_blank","GET");
^ This is placed on the button "facebookbtn". I also tried using: _root.bgPages.pg1.facebookbtn.on (release), to no avail.
For the one inside a ScrollPane I am attempting to call a javascript function:
on(release){
import flash.external.ExternalInterface;
ExternalInterface.call("GroupDelegate","dayone1");
^ This also does not work, with or without the button name before on(release).
I'm putting the FLA file here so that if anyone has the time, could help me with this quick problem. Thanks!
FLA: Download FLADo not place code inside objects with code on(blah2x). It will lead to unpredictable behaviors and besides it is bad practice. Centralize all your code on one frame in the timeline. Use this format on the main timeline:
import mx.utils.Delegate; //declare at top only ONCE
YourButton.onRelease = Delegate.create(this, YourFunctionCall);
or
YourButton.onRelease = function()
//do your stuff here
Do the same thing with the ExternalInterface. You can put the import at the top along with Delegate. -
Accessing buttons inside frame a movieClip
I understand that putting all code on the main timeline of
the main movie is the best way to do things; A button in my main
movie allows users to view a movieClip – this MC contains 2
frames: in frame 1 a ‘continue’ button takes users to
frame 2 of same movieClip – frame 2 has a close button
– this is the one that doesn’t work. It seems that
anything after the initial frame isn’t recognised when the
code is on main (root) timeline. This can’t be right?
For clarification, this is my code:
myMovieClip._visible = false;
/////////////////FUNCTIONS//////////////////
function fViewInfo() {
myMovieClip._visible = true;
function clearAll() {
_root.myMovieClip.gotoAndStop("frame1");
_root.myMovieClip._visible = false;
/////////////////BUTTON ACTIONS//////////////
viewInfo.onRelease = fViewInfo;
myMovieClip.continue_btn.onRelease = function() {
myMovieClip.gotoAndStop("frame2");
myMovieClip.close_btn.onRelease = clearAll;couple of things i'd check:
1) in myMovieClip, is there only ONE item per layer? two
items = bad juju, no workey.
2) make sure you have a hit area defined for the button.
seems dumb, but let's be sure... never know...
3) realize that once you move off of frame 1, there is no
code working. so park some code on frame 2 that will handle what
you want to happen. although, i'd handle it a bit differently by
altering the button itself to have 2 frames (minimum) that act like
a toggle from 'continue' to 'close'. much better that way and you
can still handle all your code in frame 1.
the code i'd put on the button (a movie clip) would look like
this (2 frames total):
on frame 1 (the one that says 'continue'):
stop();
this.onRelease = function()
doSomeStuff(); // this actually does some stuff, like play
or some other function
gotoAndStop(2); // go to the frame that has 'close' on it
on frame 2 (the one that says 'close):
stop();
this.onRelease = function()
doSomeOtherStuff(); // this actually does some stuff, like
play or some other function
//gotoAndStop(1); // optional return to frame 1 if you want
to make a toggle behaviour...
i hope this helps. if not... um... try to explain in other
words and i'll try again.
NB :) -
Access a button inside a movieclip
Hey...
Im pretty new to flash, I have a problem that have taken hours, only not to getting sorted out, so i'll try my luck here...
I've basicly made a rollover menu which is nested inside a movieclip. the movieclip is put on 1 st. frame on the main timeline and I want the buttons inside the movie clip to take the user to a different frame on the main timeline, but no matter what I do it's just not working...
here is some of he solutions i have tried to do:
function work1(e:Event)
//MovieClip(parent.parent).gotoAndStop("work1")
//gotoAndStop("work1")
//this.gotoAndStop("work1")
//parent(gotoAndStop("work1"))
//MovieClip(this.parent).gotoAndStop("work1")
//MovieClip(parent.gotoAndStop("work1"))
//this(gotoAndStop("work1"))
//main.gotoAndStop("work1")
//root.gotoAndStop("work1")
//MovieClip(root).gotoAndPlay("work1")
//MovieClip(stage).gotoAndPlay("work1")
//MovieClip(root.parent.parent).gotoAndStop("work1");
work1_btn.addEventListener(MouseEvent.CLICK, work1);
hope someone can help...sure, there are a zillion ways, that timeout function was more to demonstrate the problem than offer a valid solution...
Personally, with what you're doing, here's my first inclination for handling it:
Just add this bit, dumping that other stuff:
stage.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(event:MouseEvent):void{
if (event.target is SimpleButton&&event.target.name!=null){
gotoAndPlay(event.target.name);
That assumes you've given those buttons the same name as the frame you want them to go to. In your example, rename that first button as work1, and that code will send you to the frame with that name on click. That code will handle all the buttons, assuming you name the frame and button instances the same (like button work2 would take you to a frame named work2 etc).
Since it's a stage click handler, it can handle any click. Here's the breakdown:
//adding a global click listener.
stage.addEventListener(MouseEvent.CLICK, clickHandler);
//what to do with the click
function clickHandler(event:MouseEvent):void{
//here we're just checking to see what's clicked (from your example, they are SimpleButtons)
//and then the && means 'and' we're making sure that button has a name.
if (event.target is SimpleButton&&event.target.name!=null){
//goto the frame with the same name as the button
gotoAndPlay(event.target.name);
HTH,
-Ted -
How to access frame lable on main stage from a nested symbol
All-
I have two buttons
btnA on the main stage
btnB is nested inside btnA
How do I access a frame lable on the main stage from btnBok i figured this one out.
i created a button symbol 'BTN-NAV-INTRO' and placed it on the main stage.
i created a mouse over/out effect on it's timeline with an object on top called 'MC-HIT-AREA'
i placed the mouse over graphics inside the button and animated them on their own timelines
coded the MC-HIT-AREA to play those timelines 'MC-HIT-AREA' is nested inside the button
then on the main stage (this is what threw me) i set the button ('BTN-NAV-INTRO') to cursor and coded it to call the other button form the main stage. Nesting it wasn't necessary. I didn't realize you could have multiple mouse over/out effect below a mouse over effect from the main stage
Edge rocks when i get it to do my bidding! -
Problems with button inside draggable movie clip
I am building a click through presentation that has some small text in it. To maintain the design and allow for readability, I have added a zoom feature.
Here is the structure of the movie,
Stage - contains pages movie clip and forward/reverse click buttons for changing pages
pages_mc - contains 24 frames, one page per frame and buttons
There is a button at the _root level that uses a tweener to scale the pages_mc up to 170%. When this is clicked, it allows the pages to be dragged around the screen so you can look at different sections. When you click the button again, it returns the pages back to their original size stops drag.
My problem is, on the pages, there are buttons with links to external sites. Once startDrag has been invoked, I cannot touch the buttons inside the movie clip. Is there a way to make these buttons work?
I need the finished quickly so any assistance is welcome.
Code below
magUp_btn.onRelease = function() {
this._visible = false;
TweenLite.to(pages_mc, .25, {_x:-250, _y:-193, _xscale:170, _yscale:170});
TweenLite.to(magUp_mc, .75, {_alpha:0});
TweenLite.to(magDown_mc, .75, {_alpha:25});
magDown_btn._visible = true;
pages_mc.onPress = function(){
this.startDrag();
pages_mc.onRelease = function(){
this.stopDrag();
pages_mc.onReleaseOutside = function(){
this.stopDrag();
pages_mc.useHandCursor = false;
TweenLite.to(instr_mc, 1, {_alpha:100});
magDown_btn.onRelease = function() {
TweenLite.to(pages_mc, .25, {_x:0, _y:0, _xscale:100, _yscale:100});
TweenLite.to(magUp_mc, .75, {_alpha:25});
TweenLite.to(magDown_mc, .75, {_alpha:0});
this._visible = false;
magUp_btn._visible = true;
pages_mc.onPress = function(){
this.stopDrag();
TweenLite.to(instr_mc, 1, {_alpha:0});
I don't know how to turn drag off when I zoom out without using the onPress command, but I know that this is probably what is getting in the way of the button working?
Thanks!One option is to make the background of the pages be the draggable parts rather than the movieclips that contain the pages and buttons. That way, the buttons could be atop the background and not have their access blocked.
Instead of coding the pages_mc, you would essentially have the background coded for the drag...
pages_mc.bkgnd.onPress = function(){
startDrag(this._parent); -
Buttons inside moveiclip not accessible
Hi,
I am making this website, which contains a load file, which contains a movieclip holder, which holds all the different parts of the website.
Now within the portfolio.swf, which is within mcholdr, inside load.swf, there are several images, which are buttons. On clicking one image, I have code which dims, i.e. reduces _alpha for all the buttons and disables them. Now when I test portfolio.swf alone, this code works, but when I access portfolio.swf through load.swf, the code is not working.
The code within each image button inside portfolio.swf is:
while (i<=29) {
_root.folioholdermc["img"+i]._alpha = 20;
_root.folioholdermc["img"+i].enabled = false;
i++;
img1 to img20 are the image buttons. They are placed within folioholdermc, which in inside portfolio.swf.
Structure with portfolio.swf alone : Main timeline ------> folioholdermc -------> img1 to img20
Now through load.swf is : Main timeline --------> mc_load -----------> portfolio.swf (loaded with MovieClipLoader)
I tried everything from
_root.mc_load.folioholdermc[img....
folioholdermc[img.....
Nothing works. Is this a path problem??? How do I access these buttons?? I want to use the loop, as there are many buttons, so a simple img1._alpha will not work, as I will have to type this out for each button. How can I get the same effect using the loop??
ThanksIf I'm interpretting your posting correctly, it ilikely you have an issue using _root references. Unless specified otherwise, if you load an swf file that uses _root references, those _root references will target the main file's _root. To get around this you probably need to implement _lockroot in the files that you are loading. Look it up in the AS2 help files. In your case it may be as simple as adding the following to the main timeline of the file(s) you load...
this._lockroot = true; -
AS3 Putting Buttons Inside Movie Clip
I am practicing AS3 (after years of AS2) and am having trouble having a button inside a movie clip talk to another movie clip on the main timeline. Here is the code:
OneButton.addEventListener(MouseEvent.CLICK, OneButtonClicked);
function OneButtonClicked(event:MouseEvent):void
MovieTarget.gotoAndStop(1);
MovieDescription.gotoAndStop("One");
TwoButton.addEventListener(MouseEvent.CLICK, TwoButtonClicked);
function TwoButtonClicked(event:MouseEvent):void
MovieTarget.gotoAndStop(2);
MovieDescription.gotoAndStop("Two");
The code above works, but if I put OneButton and TwoButton inside a movie clip, I know longer can target MovieTarget and MovieDescription. The reason I want to put OneButton and TwoButton inside it's own MC is so I can dim each button after it is clicked by toggling the playhead inside that MC. Help? Thanks!Start over from the begining
press f8 and chose movieClip then draw your untoggled button call the movie button then create another movie and create your toggled button or greyed out button and call it greyedButton. Go to main stage add 2 button instances and 2 greyedButton instances( just drag from library). you have 4 instances on stage. give call instance names and place one them on top of each other so u can only see 2 buttons on stage. put the greyed button under the button.
now with action script
button1.addEventListener(MouseEvent.CLICK, OneButtonClicked);
function OneButtonClicked(event:MouseEvent):void
MovieTarget.gotoAndStop(1);
MovieDescription.gotoAndStop("One");
button1.visible = false; // here the greyed button will show
button2.addEventListener(MouseEvent.CLICK, TwoButtonClicked);
function TwoButtonClicked(event:MouseEvent):void
MovieTarget.gotoAndStop(2);
MovieDescription.gotoAndStop("Two");
button1.visible = true; // here button1 will go back to its orignal state
button2.visible = false // here the greyed button will show -
Accessing display objects via the stage var
I'm passing a stage reference to my class, but when I try to
access a movieclip on the stage I get an error.
this gives me an error:
var mc = targetStage.myMovieClip;
Thanks!var myClass = new MyClass (this.stage);
That would be the same thing, this.stage would refer to the
Stage instance. Each .swf has one Stage instance. In a Flash
project, the stage has one child, the MainTimeline instance.
MainTimeline is basically a big MovieClip, and it contains all your
objects, scenes and timelines you create in Flash.
So, if you instantiate from the main timeline itself (either
on a frame script or Document class) you are already inside
MainTimeline, which is what you want to pass along a reference to,
so you would pass in "this" as Colin said, or "root".
Colin mentioned that MovieClip(root) would work anyway; if I
understand he is referring to the fact that every DisplayObject
(such as MovieClips and SimpleButtons created in Flash) already
have a "root" property that usually refers to the MainTimeline
instance. However, your class "MyClass" does not extend
DisplayObject so there is no root property available, which is why
you need to manually pass in a reference to the root
timeline. -
Command button inside header column in ADF table
Hi all,
I want to insert two command buttons inside the header column of an ADF table.
In my mind these buttons should replace the two default buttons (small triangles) to sort the column in ascending order or descending order.
Do you know any solution ?? Because it is 2 days that i am trying , but no way .
Thanks in advance
StefanoUse as mentioned below:
<af:table value="#{bindings.AllEmployees.collectionModel}" var="row"
rows="#{bindings.AllEmployees.rangeSize}"
emptyText="#{bindings.AllEmployees.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.AllEmployees.rangeSize}" rowBandingInterval="0"
selectedRowKeys="#{bindings.AllEmployees.collectionModel.selectedRow}"
selectionListener="#{bindings.AllEmployees.collectionModel.makeCurrent}" rowSelection="single"
id="t1">
<af:column sortProperty="#{bindings.AllEmployees.hints.EmployeeId.name}" sortable="true"
headerText="#{bindings.AllEmployees.hints.EmployeeId.label}" id="c1">
<af:outputText value="#{row.EmployeeId}" id="ot1">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.AllEmployees.hints.EmployeeId.format}"/>
</af:outputText>
</af:column>
*<af:column id="c2">*
*<f:facet name="header">*
*<af:group id="g1">*
*<af:panelGroupLayout id="pgl1" layout="horizontal">*
*<af:commandButton text="Ascending" id="cb1" icon="" iconPosition="trailing"/>*
*<af:commandButton text="Descending" id="cb2" icon="" iconPosition="trailing"/>*
*</af:panelGroupLayout>*
*</af:group>*
*</f:facet>*
*<af:outputText value="#{row.FirstName}" id="ot2"/>*
*</af:column>*
</af:table>
Thanks,
Navaneeth -
Bug - Button inside scrollable frame
Hi,
I got a button bug in my folio.
I made a scrollable frame with buttons inside it and the buttons controls a multistate.
When I tap the buttons they don't perform the action, it just change the color (click state).
It only performs the action when I tap again the same button.
What can I do to fix this issue?
Thanks.Hi Bob,
I am using ID CC 2014 and testing on an iPad.
In my article, I made two objects a MSO and a scrollable frame with some buttons inside it.
My scrollable frame has buttons only and allows the user to slide these buttons horizontally.
The buttons has an action to change the states of my MSO (go to state).
The problem is when I test this folio on my iPad, If I tap any button, the state of my MSO keeps the same and the button goes to the Click State.
I can only access other state of my MSO clicking a second time on the same button.
So the button keeps on the Click State and my MSO change to the State that was scheduled.
What can I do to fix it?
Thanks. -
Flex SkinnableContainer skin access Group inside contentGroup
I have skin class in which I defined a Group inside my contentGroup:
<s:Group id="contentGroup" left="0" right="0" top="0" bottom="0" minWidth="475" minHeight="0">
<s:layout>
<s:HorizontalLayout paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" gap="2" />
</s:layout>
<s:Group id="group_nav_custom_comp_hgroup_prevnext" left="0" right="0" top="0" bottom="0" minWidth="100" minHeight="0">
<s:layout>
<s:HorizontalLayout paddingLeft="0" paddingRight="0" paddingTop="0" paddingBottom="0" gap="5" />
</s:layout>
<s:Button label="Test Button"/>
</s:Group>
</s:Group>
Now, in my CustomComponent that extends the skin class above I am trying to access the "group_nav_custom_comp_hgroup_prevnext" (which is the child group inside the contentGroup) so I can add elements to it at runtime:
public class GroupNavCustomContainer extends SkinnableContainer
private var m_group_prev_next:Group = null;
private var m_bAdded_btns:Boolean = true;
private var _prevbtn:UIComponent = null;
public function GroupNavCustomContainer()
super();
setStyle("skinClass", GroupNavCustomSkin);
public function set prevBtn(ui_comp_prev:UIComponent):void
if(m_group_prev_next)
_prevbtn = ui_comp_prev;
m_bAdded_btns = true;
invalidateProperties();
override protected function partAdded(partName:String, instance:Object):void
trace("In partAdded");
if(partName == "contentGroup")
var group:Group = instance as Group;
var visualElem:IVisualElement = group.getElementAt(0);
m_group_prev_next = visualElem as Group;
super.partAdded(partName, instance);
override protected function commitProperties():void
super.commitProperties();
if (m_bAdded_btns)
m_bAdded_btns = false;
m_group_prev_next.addElement(_prevbtn);
The result is my: group_nav_custom_comp_hgroup_prevnext is just not showing up at all, evidenced by the fact that the button present in it at compile time is not visible. Anyone know how to get it to show up? - thx in advance -MikeBased on Nikos tip, I rearranged my code and added 'group_nav_custom_comp_hgroup_prevnext' as a SkinPart, so now I have access to it, in other functions of the class, but still I do not see the button inside that nested group showing up.
@ drkstr_1 : Are you saying I cannot have a group inside my contentGroup? if so if then how can I have a group appear right next to it? --- do I have to add it programmatically in the parent component -- but doesn't that defeat the purpose of the skin?
thx - Mike
package com.viiv.digi.views.navigation
import mx.core.IVisualElement;
import mx.core.UIComponent;
import skins.GroupNavCustomSkin;
import spark.components.Group;
import spark.components.SkinnableContainer;
public class GroupNavCustomContainer extends SkinnableContainer
private var m_group_prev_next:Group = null;
private var m_bAdded_btns:Boolean = false;
private var _prevbtn:UIComponent = null;
[SkinPart(required="true")]
public var group_nav_custom_comp_hgroup_prevnext:Group;
public function GroupNavCustomContainer()
super();
setStyle("skinClass", GroupNavCustomSkin);
public function set prevBtn(ui_comp_prev:UIComponent):void
_prevbtn = ui_comp_prev;
m_bAdded_btns = true;
invalidateProperties();
public function get prevBtn():UIComponent
return _prevbtn;
override protected function partAdded(partName:String, instance:Object):void
trace("In partAdded");
super.partAdded(partName, instance);
override protected function commitProperties():void
super.commitProperties();
if (m_bAdded_btns)
m_bAdded_btns = false;
group_nav_custom_comp_hgroup_prevnext.addElement(_prevbtn); -
Sharepoint 2010 foundation list open(export) to Access button disable?
1. Why In sharepoint 2010 foundation list "Open with Access" button is disabled?
2. Some PCs don't even able to see the "Open with Access" button in datasheet view?It is a external list
Please firstly make sure you have installed Assess 2010 properly.
And please check if the issue occured in all lists or just one list.
Click File menu after you open the Access, you will see Open. There will open a windows, in the file type dropdownlist(the default value is "All Files(*.*)"), you can select "Microsoft SharePoint Foundation"
http://community.office365.com/en-us/f/154/t/201186.aspx
. Check if the add-on has been enabled by clicking
Internet Options of IE, then selecting Programs > Manage add-ons. Here’s the screenshot for your reference.
http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010general.aspx?ID=9afe0617-3dc0-49d2-919f-659bf80fde38
The problem stems from having done a custom installation of Office Professional Plus 2010 and only installing Access.
If you are doing a custom installation, you must expand Office Tools and Microsoft SharePoint Foundation Support. Under Microsoft SharePoint Foundation Support, there is another Microsoft SharePoint Foundation Support. Set this to Run from My Computer,
and the Open with Access button will work.
If this helped you resolve your issue, please mark it Answered -
Internet Access from Inside to Outside ASA 5510 ver 9.1
Hi everyone, I need help setting up an ASA 5510 to allow all traffic going from the inside to outside so I can get internet access through it. I have worked on this for days and I have finally got traffic moving between my router and my ASA, but that is it. Everything is blocked because of NAT rules I assume.
I get errors like this when I try Packet Tracer:
(nat-xlate-failed) NAT failed
(acl-drop) Flow is denied by configured rule
Version Information:
Cisco Adaptive Security Appliance Software Version 9.1(4)
Device Manager Version 7.1(5)
Compiled on Thu 05-Dec-13 19:37 by builders
System image file is "disk0:/asa914-k8.bin"
Here is my ASA config, all I want for this exercise is to pass traffic from the inside network to the outside to allow internet access so I can access the internet and then look for specific acl's or nat for specific services:
Thank You!
Config:
ASA5510# sh running-config
: Saved
ASA Version 9.1(4)
hostname ASA5510
domain-name
inside.int
enable password <redacted> encrypted
xlate per-session deny tcp any4 any4
xlate per-session deny tcp any4 any6
xlate per-session deny tcp any6 any4
xlate per-session deny tcp any6 any6
xlate per-session deny udp any4 any4 eq domain
xlate per-session deny udp any4 any6 eq domain
xlate per-session deny udp any6 any4 eq domain
xlate per-session deny udp any6 any6 eq domain
passwd <redacted> encrypted
names
dns-guard
interface Ethernet0/0
description LAN Interface
nameif Inside
security-level 100
ip address 10.10.1.1 255.255.255.252
interface Ethernet0/1
description WAN Interface
nameif Outside
security-level 0
ip address 199.199.199.123 255.255.255.240
boot system disk0:/asa914-k8.bin
ftp mode passive
dns domain-lookup Outside
dns server-group DefaultDNS
name-server 199.199.199.4
domain-name
inside.int
object network inside-net
subnet 10.0.0.0 255.255.255.0
description Inside Network Object
access-list USERS standard permit 10.10.1.0 255.255.255.0
access-list OUTSIDE-IN extended permit ip any any
access-list INSIDE-IN extended permit ip any any
pager lines 24
logging enable
logging asdm informational
mtu Inside 1500
mtu Outside 1500
mtu management 1500
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-715.bin
no asdm history enable
arp timeout 14400
no arp permit-nonconnected
nat (Inside,Outside) source dynamic any interface
object network inside-net
nat (Inside,Outside) dynamic interface
access-group INSIDE-IN in interface Inside
access-group OUTSIDE-IN in interface Outside
router rip
network 10.0.0.0
network 199.199.199.0
version 2
no auto-summary
route Outside 0.0.0.0 0.0.0.0 199.199.199.113 1
route Inside 172.16.10.0 255.255.255.0 10.10.1.2 1
route Inside 172.16.20.0 255.255.255.0 10.10.1.2 1
route Inside 192.168.1.0 255.255.255.0 10.10.1.2 1
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
user-identity default-domain LOCAL
aaa authentication ssh console LOCAL
http server enable
http 0.0.0.0 0.0.0.0 Inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec security-association pmtu-aging infinite
crypto ca trustpool policy
telnet timeout 5
ssh 0.0.0.0 0.0.0.0 Inside
ssh timeout 60
ssh version 2
ssh key-exchange group dh-group1-sha1
console timeout 0
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
username <redacted> password <redacted> encrypted privilege 15
class-map inspection_default
match default-inspection-traffic
policy-map type inspect dns migrated_dns_map_1
parameters
message-length maximum client auto
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns migrated_dns_map_1
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect ip-options
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
call-home
profile CiscoTAC-1
no active
destination address http
https://tools.cisco.com/its/service/oddce/services/DDCEService
destination address email
[email protected]
destination transport-method http
subscribe-to-alert-group diagnostic
subscribe-to-alert-group environment
subscribe-to-alert-group inventory periodic monthly
subscribe-to-alert-group configuration periodic monthly
subscribe-to-alert-group telemetry periodic daily
password encryption aes
Cryptochecksum:
<redacted>
: end
SH NAT:
ASA5510# sh nat
Manual NAT Policies (Section 1)
1 (Inside) to (Outside) source dynamic any interface
translate_hits = 0, untranslate_hits = 0
Auto NAT Policies (Section 2)
1 (Inside) to (Outside) source dynamic inside-net interface
translate_hits = 0, untranslate_hits = 0
SH RUN NAT:
ASA5510# sh run nat
nat (Inside,Outside) source dynamic any interface
object network inside-net
nat (Inside,Outside) dynamic interface
SH RUN OBJECT:
ASA5510(config)# sh run object
object network inside-net
subnet 10.0.0.0 255.255.255.0
description Inside Network Object
Hi all,Hello everyone, I need some help before my head explodes. IddddddddHello Mitchell,
First of all how are you testing this:
interface Ethernet0/0
description LAN Interface
nameif Inside
security-level 100
ip address 10.10.1.1 255.255.255.252
Take in consideration that the netmask is /30
The Twice NAT is good, ACLs are good.
do the following and provide us the result
packet-tracer input inside tcp 10.10.1.2 1025 4.2.2.2 80
packet-tracer input inside tcp 192.168.1.100 1025 4.2.2.2 80
And provide us the result!
Looking for some Networking Assistance?
Contact me directly at [email protected]
I will fix your problem ASAP.
Cheers,
Julio Carvajal Segura
Note: Check my website, there is a video about this that might help you.
http://laguiadelnetworking.com
Maybe you are looking for
-
Can I install OS X 10.6 on a USB drive after the Mac HD dies?
I don't have a bootable backup HD for my Mac, nor a complete backup copy of my HD. So, if the Mac hard drive suddenly fails one day, would I be able to still turn on the Mac, plug in a USB drive, insert the OS install CD, and install the OS on the US
-
Black ink only & double side printing
This is regarding a printing issue using my newly bought printer. I wish to print double sided using the option black ink cartrige only under grayscale printing. However, when I select double side printing, there were only 2 options under the grey sc
-
Installing windows 7 on bootcamp questions?
So because I'd like to be able to play a few games on my iMac, I've decided to install windows 7 in bootcamp and have it as a second operating system to use when I play games. However, I have some questions. 1) In every tutorial I've seen, at some po
-
Opening ivew in Popup with no TLD and DN.
Hi, Can you please let me know how can i open an ivew in a popup window with no top level and detailed level navigation. This ivew will be opened from another ivew where i cannot set any permissions like anonymous or allow access to all users. It sho
-
Whenever I attempt to sign in to Facebook using Firefox, I get a message that states that I must enable my cookies. I have gone to the security settings on my P.C. an attempted to o this, with no success