Create Pop Up And Setting Its View State Before It Displays?

Jun 29, 2009

I am a beginner developer in Flex, and I have been using viewstates lately. I had a couple of custom popup titlewindow components that are initialized using[code]...

They both contain view states already, and are very similar so I wanted to combione them into one popup titlewindow and change view state on initialisation of the popup to either the Create version of the popup or the Update.

I thought I was being smart haha, but I realized soon after refactoring my code that, I as far as I know I can't pass parameters to the popup to indicate which state I want, if it is created using the PopUpManager.

Does anyone know how to pass parameters to the PopupManager, or create the ContentCreate component(TitleWindow) in mxml or code so I can specify the view state?

View 1 Replies


Similar Posts:


Flex :: How To Change View State

Sep 22, 2010

Following is a simplified version of my mxml:

[Code]...

"A term is undefined and has no properties..." which points me to the line this.parent.currentState='edit'.

View 1 Replies

Actionscript :: Flex - Run A Function When View State Is Change

Apr 12, 2012

I am learning Flex and trying to make a simple RPG to practice. I am using view states to change between screens. right now I have a HomeView.mxml which displays my character information, InventoryView.mxml which shows my inventory items, and EquipmentView.mxml which shows the equipped items. They each have their respective view states.

in my main mxml file, i create a global variable for the character and an ArrayCollection of items in the game. it creates 2 labels in mxml for Inventory and Equipment and when i click on the label it calls a click handler which sets currentState="EquipmentView" or "InventoryView" This works and the state changes and the respective views are shown properly. My problem is in my EquipmentView state. When i enter the state the first time, it has a creationComplete function which displays images for my equipment and sets a click handler. when i click the item, it "unequips" it and removes it from the equipment list and removes the image. this also works fine, but when I go to my inventory view and "equip" an item and return to the EquipmentView, the image does not show. I have a label which counts the length of my equipmentList variable and that is accurate when i switch views, but i cant get the image to display again. Is there a way to call my displayEquippedItems() function (which is originally called on creationComplete) when the view is changed?

[Code]....

View 2 Replies

Flex :: View State Transitions Optimize For Mobile?

Jul 26, 2011

I have decided to go the route of using ViewNavigator and having one view with 3 states. Each state is a "page". It runs just fine on the desktop but when compiled for mobile, the transitions between the pages is really laggy, even for the Samsung Galaxy S. The phone has the 2.7 runtime and I recompiled my application with ADT 2.7, still no performance increase.

I have also tried cacheAsBitmapMatrix on all 3 pages, which are all contained in a VBox and that hasn't shown any significant performance bumps. All I'm changing is the y component of the VBox for each transition.

EDIT: I have done some more research and I am now to the point where I have hardware acceleration turned on and cacheAsBitmap = true and cacheAsBitmapMatrix = new Matrix(). I am also using Stats.as to see the FPS. I notice on my state changes I go from 25 FPS to 2 and then it goes back up again.

View 1 Replies

Flex :: Change The List ItemRender Depends Of The View State

Jan 11, 2011

I have one list, which the item render it`s like this:link. But now I need to enable or disable the button delete depends the view state which my List is inside. This is my view(which contains the list):

[Code]...

View 2 Replies

ActionScript 3.0 :: Flex Accessing Applications View State From Component?

Sep 26, 2009

In Flex Builder 3, I am trying to access the main applications view state from within a component.On initialize I show the Loginpage-component. When I click the login button I want to hide the loginpage and show my "controlpanel" page, which also is a component.I try with this, and also placing this function in the main application.[code]

View 1 Replies

Flex :: Changing View States - Making Group Incurrent State

Sep 26, 2011

my problem is when i create a button in state 1 and click on it according to code it should make a group in another state named as expand. However according to my code it is still making group in current state 1.

[Code]....

View 1 Replies

ActionScript 3.0 :: Setting Up Enemy Spawn State Machine?

Apr 5, 2011

I'm currently developing my own 2D shoot em-up and using a book called  "The essential guide to Flash games" as reference to create my own enemy spawn state machine where the game keep spawning enemies (game goes on forever till player dies). I attempted to trigger each enemy spawn occuring to the game's level with an variable called "chance".
 
With my current attempts, the game either only spawns one enemy and spawns no others or doesn't spawn any enemies at all. I was wondering anyone here has any suggestions/tips for this issue I'm having?

[Code]...

View 3 Replies

ActionScript 3.0 :: Setting SWFAddress Value With Internal State Of External Clips

May 3, 2010

My project consists of various external SWF files and also uses SWFAddress. What I want is the internal state of some external clips to set the SWFAddress value.

View 1 Replies

ActionScript 2.0 :: Create A Button Which Displays An Animation When The Mouse Hovers Over It?

Feb 9, 2009

I'm trying to create a button which displays an animation when the mouse hovers over it, and then performs an exit animation when it hovers out. I've looked at many of the major tutorials for this without success.The one I'm looking at right now, basically gets the user to create a movie clip containing an animation of a button at different states ('up', 'over' and 'out'). It then uses actionscript to play some of the sequence on rollOver, and the rest of the sequence on rollOUT. It then asks for this code to be pasted on an actions layer on the main stage:

1. btn1_mc.buttonMode = true;
2. btn1_mc.addEventListener(MouseEvent.ROLL_OVER,onBu ttonOver);
3. btn1_mc.addEventListener(MouseEvent.ROLL_OUT,onBut tonOut);

[code]....

But the error I get when I try and use it is:

"Location: Line 5. Description: The class or interface 'MouseEvent' could not be loaded. Source: function onButtonOver(e:MouseEvent):void
Location: Line 10. Description: The class or interface 'MouseEvent' could not be loaded. Source: function onButtonOut(e:MouseEvent):void"

The weird thing is that I downloaded the .fla file from the tutorial page and managed to get my button working by pasting it in there, but when pasting that back into my movie, this error returned.

View 9 Replies

ActionScript 2.0 :: Create A Projector File That Displays At 150% Of The Movie Size?

Dec 6, 2005

I need to create a projector file that displays at 150% of the movie size.I have looked at fscommand:

fscommand("fullscreen", "true");
fscommand("allowscale", "true");

but I want the projcetor to show the presentation at 150% of its current size, not fullscreen.

View 7 Replies

ActionScript 3.0 :: Using Lightwindow To Create An Overlay That Displays The Links / Images / Video / Firefox

Mar 5, 2009

i have an swf placed into a html doc - the swf creates thumbnails and links that create a sort of videowall effect - the links come via xml. i am using lightwindow to create an overlay that displays the links/images/video etc... so here is the problem - if i open it with firefox on a mac - and choose say the youtube link - it opens lightwindow brings in the flv briefly - then the flv vanishes leaving a white void where the player should.

but if i add the same link to the html and click it, that works as it should do - ie the youtube flv apprears and you can click and play it etc... Safari on a mac works a treat - and loads and then plays the flv. is this just a bug in FF for the mac - or mac&pc? doesn't FF like flash and youtube together or something? or is there a work around? my tester is here could any pc heads tell me if the lightwindow works at all on their windows browsers? and tell me what versions you are on?

View 2 Replies

Actionscript 3 :: Create A Main Menu And A Hud Within The Application That Stores And Displays User Information?

Mar 6, 2010

I would like to create a main menu and a hud within the application that stores and displays user information. Buttons like sound and main menu options should exist.. Now i cant seem to find any examples of how to create this user interface / hud.

View 3 Replies

ActionScript 3.0 :: How To Create A 360 Degree View

Sep 1, 2009

creating 360 degree views? know nothing but Flash and Flex. Is there any tutorial available for beginners? to create thease kind of view using Flash and AS3

I need something like this:[URL]

View 9 Replies

Flex :: Create And View Flash Log?

Apr 5, 2012

I want to create log file for my flex application. That is the file should contain all the trace prints in it when I run my flex application. How can I configure flex to do this?

View 3 Replies

Professional :: Can't View Or Create TLF Text In Flash CS5

Jun 3, 2011

I'm using some Lynda.com tutorial files for Flash CS5. When I open a file that contains a box with TLF text, I don't see any text; what I see is an empty blue box at the upper left corner of the stage. Same thing if I try to draw a TLF text box.I am new to Flash, so please be kind. Is there maybe a component I should have installed with the CS5 suite that I didn't install? I didn't install everything since I didn't need it all and don't have the disk space.

View 3 Replies

Actionscript 3 :: Create A Viewer In Flash That Allows To View The Map

Feb 8, 2012

I have a very big map (pixeldata, not vector) and i want to create a viewer in flash that allows to view the map. The map is stored (in some way, to be decided) on a server. Probably the map will be stored in different resolutions on the server. The viewer should download the currently needed parts in the proper resolution at the current zoomlevel from the server to display it - similarily to google maps for example. Now - i already have some ideas on how to do this - but maybe there is already a framework available for exactly this or some good article describing it (client as well as server-vise).

View 2 Replies

Professional :: Create A Drill Down Map Of The State Of Wisconsin

Oct 29, 2010

I am trying to create a drill down map of the state of Wisconsin. I would like to be able to see a map of the state as well as the counties, I would then like to be able to click on a county to obtain more information. How can I create a map that does this?

View 3 Replies

Flex :: Create A State That Includes Other States?

Jan 22, 2012

I have a mobile app where I have 3 states in it. There is the default portrait and landscape and I would to add a third state that includes the other two.

<s:states>
<s:State name="portrait"/>
<s:State name="landscape"/>

[code].....

View 1 Replies

ActionScript 3.0 :: Sniper Game - How To Create Scope View

Aug 30, 2011

I'm trying to make a sniper game, but I'm having trouble creating the scope view (you can only see a part of the screen i.e. the scope, the rest is black). Now, I'm pretty sure bitmapdata is somehow involved, but I've never really worked with the class and therefore am not sure how to do it.

View 2 Replies

ActionScript 3.0 :: FireFox Displays "some" Flash File - IE Displays All

Feb 17, 2009

I've hit a brick wall here. I have a Flash file that displays fine in IE. It also displays fine when ran as a SWF. However, in FireFox, it does not display my scroller. I developed the Scroller component dynamically... everything is drawn from scratch, no library movieClips, etc. I'm starting to think that could be the cause? I've tried many different things:

[Code]...

View 5 Replies

ActionScript 3.0 :: FireFox Displays "some" Flash File But IE Displays All

Feb 15, 2009

I've hit a brick wall here. I have a Flash file that displays fine in IE. It also displays fine when ran as a SWF. However, in FireFox, it does not display my scroller. I developed the Scroller component dynamically... everything is drawn from scratch, no library movieClips, etc. I'm starting to think that could be the cause? I've tried many different things: Changed the HTML code to bare bones embedding code.Recompiled in Flex.... same result!Tested on another computer... it worked fine! However, I tested on another computer with FireFox... same problem.

It's so weird.I seperated the Image Slide show component from the Scroller... the scroller had the same effect... didn't display in FF.Played around with WmodeChecked my code for addChild problems, visibilty, alpha properties... nothing out of the ordinary.Asked God.Drank some Gin.Took a break and came back to it.I've reseached Google and the most I could come up with is to compile using FP10. It is FP10. I'm using CS3 and FlashDevelop. When I right click on my Flash file, it does indeed display FP10. Same with Flex.

[Code]...

View 6 Replies

ActionScript 2.0 :: Merging Two SWF To Create A Google Street View Of School?

Jan 7, 2010

Basically at my school we are doing a project that allows you to walk around the school like you can on "Google Street View". Me being a geek, the teacher asked me to make a prototype using my house to see if this idea would work. So today I went on Flash and made two working Flash/SWF files, one being a "Google Street View"type of thing of my upstairs and one of my downstairs of my house. I made two SWFs because at school there are many different people working on the project so there will be many different SWFs to combine.

So after making the two SWFs (the upstairs one called Untitled-2 and the downstairs called downstairs) I tried to merge them together. Each one of the SWFs have action script on these" Arrows" that allows you to guide around my house. The action script on all the arrows is:

on (Release) {
gotoAndStop(Frame Number);
}

I made a new Flash Document and one the first scene I had a Button That Said "Begin". Once Pressed, it takes you to scene 2. On scene two I went to File > Import > Import to Library and Selected Untitled-2.swf. Untitled-2.swf was then in my library. I clicked and dragged it into the stage of Scene 2 and in the timeline only 1 keyframe pooped up. I thought it would work so I previewed the Flash Movie. The Begin Button show up, and when I clicked it preview file Flashed each Keyframe in Untitled-2.swf even though the first frame in Untitled-2.swf has the action script: stop(); The whole thing is uncontrollable and I dont know what to do. I hope you understood what I wrote (Im not the best with spelling and grammar). So in a nut shell, how can I combine 2 SWF files In Flash, whilst maintaining all the action script in each file.

View 1 Replies

Flex :: Create Tree View (like Expandable List ) In Builder For Mobile?

Sep 16, 2011

I want to create a tree view (expandable list ) in flex 4.5 builder mobile,Is it possible for web projects in flex builder for web [URL]

View 1 Replies

ActionScript 3.0 :: Create An Rollover And Rollout State That Utilized The NextFrame() And PrevFrame() Commands

Apr 9, 2011

In AS2, I was able to create an rollover and rollout state that utilized the nextFrame() and prevFrame() commands. When hovering over the hit target, a specific movie clip would continuously advance to the next frame using an onEnterFrame command. Conversely, in a rollout state, the movieclip would play backwards until it reached the first frame.

I could specifically use some help with how to implement the onEnterFrame command so that the nextFrames and prevFrames constantly run.

[Code]...

View 7 Replies

Media Server :: Use NetStreamPlayTransitions.SWITCH To Create A Multi Angle View That Switches Between Video Streams?

Feb 21, 2010

Hi,I'm trying to use NetStreamPlayTransitions.SWITCH to create a multi angle view that switches between video streams. The issue I'm having is that NetStream.Play.TransitionComplete is called only after the buffer for the video before it is used up(this makes sense when using SWITCH to go between bandwidths but that's not what i'm using it for). Is there a way to force this switch before the buffer of the previous video is used up?
 
I've looked into SWAP but I can't really find any documentation on it. What I ideally would have happen is the next video in the array is triggered, that video is buffered and when there is enough to play it the stream switches to that one. SWITCH works really nice because there is no jump in switching when it's played but I just don't want the buffer to play out before the switch.Is there a way of maybe clearing the buffer of the playing video before i call SWITCH so it transitions quickly?

View 4 Replies

Java :: View Part Of A Web Application - What Technology For A Pretty Intensive Grid View

Aug 3, 2010

I'm about to have to write a web page/app that will serve the agenda for circa 100 people on a page. One line per person, one column per day with 3 clickable zones in each cell. In HTML, the page is way complex for the browser to load quick and there is no possibility to click on a border between 2 cells to for example split an event that spreads among several cells. So I search an not too overkilling technology to render this kind of view. I begun with a PHP generated HTML page but the number of elements in the page make the mouse move jerky.

Moving to JAVA would give me better performances regarding the reuse of the generator of the view but it will still be an HTML page. So, here is my question: do you think that going forward with JAVA and its graphical capability is the simple solution or is Flash a better option for this part of a Web App? I'm afraid of the code I'll have to write in JAVA to handle the GUI presentation as well as the events generated by the 1000's cells plus borders of the page. In Flash, the graphical part seems simpler even if the actions handling is still huge.

View 2 Replies

Flex :: Presentation Model Pattern Can View Specific Logic Reside In View?

Aug 15, 2011

I'm currently using RobotLegs with the Presentation Model pattern to develop a Flex 4 project. I understand that all business logic related to a View resides in the Presentation Model associated with that view, however, I am confused when it comes to View specific logic.For example, I have an indicator that needs to be positioned relatively to list items depending on which list item is selected. Is it acceptable in the Presentation pattern to put the logic that will position the indicator in the View and simply have that logic run in reaction to a selectedIndex property changing in the presentation model?The reason I am considering this is that since the Presentation Model does not have a reference to the view it is difficult to come up with an ideal solution for manipulating view components.

View 1 Replies

ActionScript 1/2 :: Dynamic InstanceName - Link The State Id's In The Xml Record To The State MovieClips That Make Up The Map?

May 12, 2009

I have a flash map that contains 51 movieClips, one for each state.Sample instanceName for a state (Alabama) would be: S_01
 
I have a XML record that contains specific info for each state.<stateID>01</stateID
 
I am trying to link the stateID's in the XML record to the state movieClips that make up the map.var stateInstanceName = 'S_' + stateID;
 
I was just trying to do a simple trace command to see if I could pull the _width of each state clip to see if I was linked up:
 
trace(mapInstance.stateInstanceName._width)

View 7 Replies

ActionScript 3.0 :: Flex - Loading Page As One State And The Main Application Design In Another State?

Apr 9, 2011

It's my understanding that view states can be useful when switching the layout of design elements. Such as, a loading page as one state and the main application design in another state. Is this the correct use of them? Additionally, I have a label in State1 and I cannot figure out how to access that label via actionscript. labelID.text = "New Text"; is not working.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved